Skip to content

Commit 1ee5de0

Browse files
committed
Add statefulset support to hpa
1 parent 08cea12 commit 1ee5de0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/nginx-ingress/templates/controller-hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.controller.autoscaling.enabled (eq .Values.controller.kind "deployment") (.Capabilities.APIVersions.Has "autoscaling/v2") -}}
1+
{{- if and .Values.controller.autoscaling.enabled (or (eq .Values.controller.kind "deployment") (eq .Values.controller.kind "statefulset")) (.Capabilities.APIVersions.Has "autoscaling/v2") -}}
22
apiVersion: autoscaling/v2
33
kind: HorizontalPodAutoscaler
44
metadata:

0 commit comments

Comments
 (0)