diff --git a/charts/agent/Chart.yaml b/charts/agent/Chart.yaml index a334ec1e3..d8441fb73 100644 --- a/charts/agent/Chart.yaml +++ b/charts/agent/Chart.yaml @@ -30,4 +30,4 @@ sources: - https://app.sysdigcloud.com/#/settings/user - https://github.com/draios/sysdig type: application -version: 1.17.2 +version: 1.17.3 diff --git a/charts/agent/templates/_helpers.tpl b/charts/agent/templates/_helpers.tpl index 6a03915eb..bcf0c54c4 100644 --- a/charts/agent/templates/_helpers.tpl +++ b/charts/agent/templates/_helpers.tpl @@ -513,9 +513,11 @@ true {{- end }} {{- define "agent.enableHttpProbes" }} +{{- if not (include "agent.gke.autopilot" .) }} {{- if regexMatch "^v?([0-9]+)(\\.[0-9]+)?(\\.[0-9]+)?(-([0-9A-Za-z\\-]+(\\.[0-9A-Za-z\\-]+)*))?(\\+([0-9A-Za-z\\-]+(\\.[0-9A-Za-z\\-]+)*))?$" .Values.image.tag }} {{- if semverCompare ">= 12.18.0-0" .Values.image.tag }} {{- printf "true" -}} {{- end }} {{- end }} {{- end }} +{{- end }} diff --git a/charts/agent/tests/readiness_probe_test.yaml b/charts/agent/tests/readiness_probe_test.yaml index 3e43eb13d..a937eb8b3 100644 --- a/charts/agent/tests/readiness_probe_test.yaml +++ b/charts/agent/tests/readiness_probe_test.yaml @@ -179,3 +179,38 @@ tests: - equal: path: spec.template.spec.containers[0].readinessProbe.periodSeconds value: 3 + + - it: "Do not use the HTTP Readiness Probe on GKE Autopilot" + set: + global: + gke: + autopilot: true + template: templates/daemonset.yaml + asserts: + - equal: + path: spec.template.spec.containers[*].readinessProbe + value: + exec: + command: + - test + - -e + - /opt/draios/logs/running + initialDelaySeconds: 90 + periodSeconds: 3 + + - it: "Do not use the HTTP Readiness Probe on GKE Autopilot" + set: + gke: + autopilot: true + template: templates/daemonset.yaml + asserts: + - equal: + path: spec.template.spec.containers[*].readinessProbe + value: + exec: + command: + - test + - -e + - /opt/draios/logs/running + initialDelaySeconds: 90 + periodSeconds: 3