ci/integration-tests: Install fixed versions of SPOv0.4.2 and CertManagerv1.7.2
Use the latest releases and do not patch the
security-profiles-operator-webhook was removed in
@@ -92,9 +92,9 @@ var deploySPO *command = &command{
// security-profiles-operator-webhook to be started, hence the long
// timeout
cmd: `
- kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.7.1/cert-manager.yaml
+ kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.7.2/cert-manager.yaml
kubectl --namespace cert-manager wait --for condition=ready pod -l app.kubernetes.io/instance=cert-manager
- curl https://raw.githubusercontent.com/kubernetes-sigs/security-profiles-operator/main/deploy/operator.yaml | \
+ curl https://raw.githubusercontent.com/kubernetes-sigs/security-profiles-operator/v0.4.2/deploy/operator.yaml | \
sed 's/replicas: 3/replicas: 1/'|grep -v cpu: | \
kubectl apply -f -
for i in $(seq 1 120); do
@@ -103,8 +103,6 @@ var deploySPO *command = &command{
fi
sleep 1
done
- kubectl patch deploy -n security-profiles-operator security-profiles-operator-webhook --type=json \
- -p='[{"op": "remove", "path": "/spec/template/spec/containers/0/resources"}]'
kubectl patch ds -n security-profiles-operator spod --type=json \
-p='[{"op": "remove", "path": "/spec/template/spec/containers/0/resources"}, {"op": "remove", "path": "/spec/template/spec/containers/1/resources"}, {"op": "remove", "path": "/spec/template/spec/initContainers/0/resources"}]'
kubectl --namespace security-profiles-operator wait --for condition=ready pod -l app=security-profiles-operator || (kubectl get pod -n security-profiles-operator ; kubectl get events -n security-profiles-operator ; false)
@@ -129,8 +127,8 @@ var cleanupSPO *command = &command{
name: "Remove Security Profiles Operator (SPO)",
cmd: `
kubectl delete seccompprofile -n security-profiles-operator --all
- kubectl delete -f https://raw.githubusercontent.com/kubernetes-sigs/security-profiles-operator/main/deploy/operator.yaml
- kubectl delete -f https://github.com/jetstack/cert-manager/releases/download/v1.7.1/cert-manager.yaml
+ kubectl delete -f https://raw.githubusercontent.com/kubernetes-sigs/security-profiles-operator/v0.4.2/deploy/operator.yaml
+ kubectl delete -f https://github.com/jetstack/cert-manager/releases/download/v1.7.2/cert-manager.yaml
`,
cleanup: true,
}
