File tree Expand file tree Collapse file tree 5 files changed +5
-10
lines changed
wiz-admission-controller/templates Expand file tree Collapse file tree 5 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,7 @@ scaleDown:
282282
283283{ {- define " autoUpdate.deployments" -} }
284284{ {- $list := list -} }
285+ { {- if eq (include " wiz-admission-controller.isEnforcerEnabled" . | trim | lower) " true" } }
285286{ {- if or .Values.opaWebhook.enabled .Values.imageIntegrityWebhook.enabled .Values.debugWebhook.enabled -} }
286287{ {- $list = append $list (include " wiz-admission-controller.fullname" . ) -} }
287288{ {- end -} }
Original file line number Diff line number Diff line change 1- {{- $isEnabled := include "wiz-admission-controller.isEnforcerEnabled" . | trim | lower }}
2- {{- if eq $isEnabled "true" }}
1+ {{- if eq (include "wiz-admission-controller.isEnforcerEnabled" . | trim | lower) "true" }}
32apiVersion : apps/v1
43kind : Deployment
54metadata :
Original file line number Diff line number Diff line change 1- {{- if .Values.hpa.enabled }}
2- {{- $isEnabled := include "wiz-admission-controller.isEnforcerEnabled" . | trim | lower }}
3- {{- if eq $isEnabled "true" }}
1+ {{- if and .Values.hpa.enabled (eq (include "wiz-admission-controller.isEnforcerEnabled" . | trim | lower) "true") }}
42apiVersion : autoscaling/v2
53kind : HorizontalPodAutoscaler
64metadata :
7573 {{- end }}
7674 behavior : {{ include "wiz-admission-controller.hpaBehavior" . | nindent 4 }}
7775{{- end }}
78- {{- end }}
Original file line number Diff line number Diff line change @@ -163,8 +163,7 @@ webhooks:
163163 failurePolicy : {{ .Values.debugWebhook.failurePolicy }}
164164 sideEffects : {{ .Values.debugWebhook.sideEffects }}
165165{{- end }}
166- {{- $isEnabled := include "wiz-admission-controller.isEnforcerEnabled" . | trim | lower }}
167- {{- if and (eq $isEnabled "true") (not $useCertManagerCerts) }}
166+ {{- if and (eq (include "wiz-admission-controller.isEnforcerEnabled" . | trim | lower) "true") (not $useCertManagerCerts) }}
168167---
169168apiVersion : v1
170169kind : Secret
Original file line number Diff line number Diff line change 1- {{- $isEnabled := include "wiz-admission-controller.isEnforcerEnabled" . | trim | lower }}
2- {{- if eq $isEnabled "true" }}
1+ {{- if eq (include "wiz-admission-controller.isEnforcerEnabled" . | trim | lower) "true" }}
32---
43apiVersion : v1
54kind : Service
You can’t perform that action at this time.
0 commit comments