Skip to content

Commit 7bf9f75

Browse files
committed
Fix spec tests to match change
1 parent f25c424 commit 7bf9f75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/classes/kube_addons_spec.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
it {
4242
expect(subject).to contain_exec('Install cni network provider').with({
43-
command: ['kubectl', 'apply', '-f', 'https://foo.test'],
43+
command: ['kubectl', 'create', '-f', 'https://foo.test'],
4444
onlyif: ['kubectl get nodes']
4545
})
4646
}
@@ -73,7 +73,7 @@
7373
when 'calico-tigera'
7474
it {
7575
expect(subject).to contain_exec('Install cni network (preinstall)').with({
76-
command: ['kubectl', 'apply', '-f', 'https://foo.test/tigera-operator'],
76+
command: ['kubectl', 'create', '-f', 'https://foo.test/tigera-operator'],
7777
onlyif: 'kubectl get nodes'
7878
})
7979
}
@@ -86,7 +86,7 @@
8686
expect(subject).to contain_exec('Install cni network provider').with(
8787
{
8888
onlyif: ['kubectl get nodes'],
89-
command: ['kubectl', 'apply', '-f', "https://#{provider}.test"],
89+
command: ['kubectl', 'create', '-f', "https://#{provider}.test"],
9090
unless: ['kubectl -n kube-flannel get daemonset | egrep "^kube-flannel"']
9191
},
9292
)
@@ -95,7 +95,7 @@
9595
it {
9696
expect(subject).to contain_exec('Install cni network provider').with({
9797
onlyif: ['kubectl get nodes'],
98-
command: ['kubectl', 'apply', '-f', "https://#{provider}.test"],
98+
command: ['kubectl', 'create', '-f', "https://#{provider}.test"],
9999
unless: ['kubectl -n kube-system get daemonset | egrep "(flannel|weave|calico-node|cilium)"']
100100
})
101101
}

0 commit comments

Comments
 (0)