diff --git a/packages/system/kubevirt-cdi-operator/Makefile b/packages/system/kubevirt-cdi-operator/Makefile index 7232216fc..8d12f4e8d 100644 --- a/packages/system/kubevirt-cdi-operator/Makefile +++ b/packages/system/kubevirt-cdi-operator/Makefile @@ -10,3 +10,4 @@ update: wget https://github.com/kubevirt/containerized-data-importer/releases/download/$$VERSION/cdi-operator.yaml -O templates/cdi-operator.yaml sed -i 's/namespace: cdi/namespace: cozy-kubevirt-cdi/g' templates/cdi-operator.yaml awk -i inplace -v RS="---" '!/kind: Namespace/{printf "%s", $$0 RS}' templates/cdi-operator.yaml + patch --no-backup-if-mismatch -p1 < patches/startupProbe.diff diff --git a/packages/system/kubevirt-cdi-operator/patches/startupProbe.diff b/packages/system/kubevirt-cdi-operator/patches/startupProbe.diff new file mode 100644 index 000000000..85d86e849 --- /dev/null +++ b/packages/system/kubevirt-cdi-operator/patches/startupProbe.diff @@ -0,0 +1,19 @@ +diff --git a/packages/system/kubevirt-cdi-operator/templates/cdi-operator.yaml b/packages/system/kubevirt-cdi-operator/templates/cdi-operator.yaml +index f46ba09e6..03ac3b3a2 100644 +--- a/packages/system/kubevirt-cdi-operator/templates/cdi-operator.yaml ++++ b/packages/system/kubevirt-cdi-operator/templates/cdi-operator.yaml +@@ -5782,6 +5782,14 @@ spec: + scheme: HTTP + initialDelaySeconds: 5 + timeoutSeconds: 10 ++ startupProbe: ++ httpGet: ++ path: /healthz ++ port: 8444 ++ scheme: HTTP ++ periodSeconds: 5 ++ failureThreshold: 30 ++ timeoutSeconds: 10 + resources: + requests: + cpu: 100m diff --git a/packages/system/kubevirt-cdi-operator/templates/cdi-operator.yaml b/packages/system/kubevirt-cdi-operator/templates/cdi-operator.yaml index f46ba09e6..03ac3b3a2 100644 --- a/packages/system/kubevirt-cdi-operator/templates/cdi-operator.yaml +++ b/packages/system/kubevirt-cdi-operator/templates/cdi-operator.yaml @@ -5782,6 +5782,14 @@ spec: scheme: HTTP initialDelaySeconds: 5 timeoutSeconds: 10 + startupProbe: + httpGet: + path: /healthz + port: 8444 + scheme: HTTP + periodSeconds: 5 + failureThreshold: 30 + timeoutSeconds: 10 resources: requests: cpu: 100m