@@ -71,7 +71,7 @@ func TestRunCmdRun(t *testing.T) {
71
71
},
72
72
},
73
73
expectedCmds : []provisioning.Cmd {
74
- {Cmd : "/bin/sh" , Args : []string {"-c" , "kubeadm init --ignore-preflight-errors=SystemVerification,Swap,FileContent--proc-sys-net-bridge-bridge-nf-call-iptables --config /run/kubeadm/kubeadm.yaml" }},
74
+ {Cmd : "/bin/sh" , Args : []string {"-c" , "kubeadm init --ignore-preflight-errors=SystemVerification,Swap,FileContent--proc-sys-net-bridge-bridge-nf-call-iptables,FileContent--proc-sys-net-bridge-bridge-nf-call-ip6tables --config /run/kubeadm/kubeadm.yaml" }},
75
75
},
76
76
},
77
77
}
@@ -101,11 +101,11 @@ runcmd:
101
101
102
102
r .Cmds [0 ] = hackKubeadmIgnoreErrors (r .Cmds [0 ])
103
103
104
- expected0 := provisioning.Cmd {Cmd : "/bin/sh" , Args : []string {"-c" , "kubeadm init --ignore-preflight-errors=SystemVerification,Swap,FileContent--proc-sys-net-bridge-bridge-nf-call-iptables --config=/run/kubeadm/kubeadm.yaml" }}
104
+ expected0 := provisioning.Cmd {Cmd : "/bin/sh" , Args : []string {"-c" , "kubeadm init --ignore-preflight-errors=SystemVerification,Swap,FileContent--proc-sys-net-bridge-bridge-nf-call-iptables,FileContent--proc-sys-net-bridge-bridge-nf-call-ip6tables --config=/run/kubeadm/kubeadm.yaml" }}
105
105
g .Expect (r .Cmds [0 ]).To (BeComparableTo (expected0 ))
106
106
107
107
r .Cmds [1 ] = hackKubeadmIgnoreErrors (r .Cmds [1 ])
108
108
109
- expected1 := provisioning.Cmd {Cmd : "kubeadm" , Args : []string {"join" , "--ignore-preflight-errors=SystemVerification,Swap,FileContent--proc-sys-net-bridge-bridge-nf-call-iptables" , "--config=/run/kubeadm/kubeadm-controlplane-join-config.yaml" }}
109
+ expected1 := provisioning.Cmd {Cmd : "kubeadm" , Args : []string {"join" , "--ignore-preflight-errors=SystemVerification,Swap,FileContent--proc-sys-net-bridge-bridge-nf-call-iptables,FileContent--proc-sys-net-bridge-bridge-nf-call-ip6tables " , "--config=/run/kubeadm/kubeadm-controlplane-join-config.yaml" }}
110
110
g .Expect (r .Cmds [1 ]).To (BeComparableTo (expected1 ))
111
111
}
0 commit comments