Skip to content

Commit

Permalink
feat: avoid using extraEnvVars
Browse files Browse the repository at this point in the history
  • Loading branch information
hayk99 committed Aug 18, 2023
1 parent 1d3ec61 commit ba09291
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions charts/admission-controller/templates/webhook/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba09291

Please sign in to comment.