From b3c184acd3317e6a1253ba4d3fb0416be5841ceb Mon Sep 17 00:00:00 2001 From: Jo Rhett Date: Sat, 2 Dec 2023 23:41:35 -0800 Subject: [PATCH] Fix spec tests to match change --- spec/classes/kube_addons_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/classes/kube_addons_spec.rb b/spec/classes/kube_addons_spec.rb index 880f4ff1..9338cefc 100644 --- a/spec/classes/kube_addons_spec.rb +++ b/spec/classes/kube_addons_spec.rb @@ -73,7 +73,7 @@ when 'calico-tigera' it { expect(subject).to contain_exec('Install cni network (preinstall)').with({ - command: ['kubectl', 'apply', '-f', 'https://foo.test/tigera-operator'], + command: ['kubectl', 'create', '-f', 'https://foo.test/tigera-operator'], onlyif: 'kubectl get nodes' }) } @@ -86,7 +86,7 @@ expect(subject).to contain_exec('Install cni network provider').with( { onlyif: ['kubectl get nodes'], - command: ['kubectl', 'apply', '-f', "https://#{provider}.test"], + command: ['kubectl', 'create', '-f', "https://#{provider}.test"], unless: ['kubectl -n kube-flannel get daemonset | egrep "^kube-flannel"'] }, )