Skip to content

Commit 928d1a0

Browse files
committed
Allow to customize the scaling policy behavior
1 parent 968f584 commit 928d1a0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

wiz-admission-controller/templates/hpa.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ spec:
3535
{{- if hasKey .Values.hpa "customMetrics" }}
3636
{{- toYaml .Values.hpa.customMetrics | nindent 4 }}
3737
{{- end }}
38+
{{- if hasKey .Values.hpa "behavior" }}
39+
behavior:
40+
{{- toYaml .Values.hpa.behavior | nindent 4 }}
41+
{{- end }}
3842
---
3943
{{- end }}
4044
{{ if .Values.kubernetesAuditLogsWebhook.enabled -}}
@@ -72,5 +76,9 @@ spec:
7276
{{- if hasKey .Values.hpa "customMetrics" }}
7377
{{- toYaml .Values.hpa.customMetrics | nindent 4 }}
7478
{{- end }}
79+
{{- if hasKey .Values.hpa "behavior" }}
80+
behavior:
81+
{{- toYaml .Values.hpa.behavior | nindent 4 }}
82+
{{- end }}
7583
{{- end }}
7684
{{- end }}

wiz-admission-controller/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,9 @@ hpa:
438438
enableMemory: false
439439
targetMemoryUtilizationPercentage: 50
440440
customMetrics: []
441+
# Uncomment to customize the behavior.
442+
# If not set, the default HPAScalingRules for scale up and scale down are used.
443+
#behavior: {}
441444

442445
# Global values to override chart values.
443446
global:

0 commit comments

Comments
 (0)