diff --git a/charts/admission-controller/templates/webhook/deployment.yaml b/charts/admission-controller/templates/webhook/deployment.yaml index 4deffe7e6..339f1ede2 100644 --- a/charts/admission-controller/templates/webhook/deployment.yaml +++ b/charts/admission-controller/templates/webhook/deployment.yaml @@ -83,13 +83,16 @@ spec: value: {{ include "webhook.httpsProxy" . }} - name: NO_PROXY value: {{ include "webhook.noProxy" . }},{{ include "admissionController.scanner.fullname" . }} + - name: AC_NAMESPACE + value: {{ include "admissionController.namespace" . }} {{- end }} {{- if or .Values.webhook.ssl.ca.cert (eq (include "sysdig.custom_ca.enabled" (dict "global" .Values.global.ssl "component" .Values.webhook.ssl)) "true") }} - name: SSL_CERT_DIR value: /ca-certs {{- end }} - {{- if .Values.webhook.extraEnvVars }} - {{- toYaml .Values.webhook.extraEnvVars | nindent 12 }} + {{- if .Values.webhook.acConfig }} + - name: VM_ENGINE_V2_ENABLED + value: true {{- end }} ports: - name: http