File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ If release name contains chart name it will be used as a full name.
4242
4343{ {- define " wiz-hpa-enforcer.name" -} }
4444{ {- $name := printf " %s-hpa" (include " wiz-admission-controller.fullname" .) } }
45- { {- default $name .Values.hpa.enforcerNameOverride | trunc 63 | trimSuffix " -" } }
45+ { {- printf " %s " $name | trunc 63 | trimSuffix " -" } }
4646{ {- end } }
4747
4848{ {- define " wiz-hpa-audit-logs.name" -} }
49- { {- $name := " wiz -hpa- audit-logs " } }
50- { {- default $name .Values.hpa.auditLogsNameOverride | trunc 63 | trimSuffix " -" } }
49+ { {- $name := printf " %s -hpa" ( include " wiz-kubernetes- audit-log-collector.name " .) } }
50+ { {- printf " %s " $name | trunc 63 | trimSuffix " -" } }
5151{ {- end } }
5252
5353{ {/*
Original file line number Diff line number Diff line change 3232 type : Utilization
3333 averageUtilization : {{ .Values.hpa.targetMemoryUtilizationPercentage }}
3434 {{- end }}
35- {{- if hasKey .Values.hpa " customMetrics" }}
36- {{- toYaml .Values.hpa.customMetrics | nindent 4 }}
35+ {{- with .Values.hpa. customMetrics }}
36+ {{- toYaml . | nindent 4 }}
3737 {{- end }}
3838 {{- if hasKey .Values.hpa "behavior" }}
3939 behavior :
7373 type : Utilization
7474 averageUtilization : {{ .Values.hpa.targetMemoryUtilizationPercentage }}
7575 {{- end }}
76- {{- if hasKey .Values.hpa " customMetrics" }}
77- {{- toYaml .Values.hpa.customMetrics | nindent 4 }}
76+ {{- with .Values.hpa. customMetrics }}
77+ {{- toYaml . | nindent 4 }}
7878 {{- end }}
7979 {{- if hasKey .Values.hpa "behavior" }}
8080 behavior :
Original file line number Diff line number Diff line change @@ -431,8 +431,6 @@ probes: # Probes config for the container
431431# Horizontal Pod Autoscaling support.
432432hpa :
433433 enabled : false
434- enforcerNameOverride : " " # Override the HPA name for the Wiz Admission Controller deployment.
435- auditLogsNameOverride : " " # Override the HPA name for the Wiz Audit Log Collector deployment.
436434 minReplicas : 2
437435 maxReplicas : 5
438436 enableCPU : true
You can’t perform that action at this time.
0 commit comments