Skip to content

Commit 814fae2

Browse files
committed
Discard memory utilization for HPA
1 parent c1a38f7 commit 814fae2

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

wiz-admission-controller/templates/hpa.yaml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@ spec:
2222
type: Utilization
2323
averageUtilization: {{ .Values.hpa.targetCPUUtilizationPercentage }}
2424
{{- end }}
25-
{{- if .Values.hpa.enableMemory }}
26-
- type: Resource
27-
resource:
28-
name: memory
29-
target:
30-
type: Utilization
31-
averageUtilization: {{ .Values.hpa.targetMemoryUtilizationPercentage }}
32-
{{- end }}
3325
{{- with .Values.hpa.customMetrics }}
3426
{{- toYaml . | nindent 4 }}
3527
{{- end }}
@@ -60,14 +52,6 @@ spec:
6052
type: Utilization
6153
averageUtilization: {{ .Values.hpa.targetCPUUtilizationPercentage }}
6254
{{- end }}
63-
{{- if .Values.hpa.enableMemory }}
64-
- type: Resource
65-
resource:
66-
name: memory
67-
target:
68-
type: Utilization
69-
averageUtilization: {{ .Values.hpa.targetMemoryUtilizationPercentage }}
70-
{{- end }}
7155
{{- with .Values.hpa.customMetrics }}
7256
{{- toYaml . | nindent 4 }}
7357
{{- end }}

wiz-admission-controller/values.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,6 @@ hpa:
443443
maxReplicas: 5
444444
enableCPU: true
445445
targetCPUUtilizationPercentage: 80
446-
enableMemory: false
447-
targetMemoryUtilizationPercentage: 80
448446
customMetrics: []
449447
# Uncomment the `behavior` section below to specify custom scaling policies and behavior.
450448
# If left blank, the following default settings are applied:

0 commit comments

Comments
 (0)