We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e528c3 commit dd862d9Copy full SHA for dd862d9
charts/nginx-ingress/templates/controller-hpa.yaml
@@ -13,7 +13,11 @@ metadata:
13
spec:
14
scaleTargetRef:
15
apiVersion: apps/v1
16
+{{- if eq .Values.controller.kind "deployment" }}
17
kind: Deployment
18
+{{- else if eq .Values.controller.kind "statefulset" }}
19
+ kind: StatefulSet
20
+{{- end }}
21
name: {{ include "nginx-ingress.controller.fullname" . }}
22
minReplicas: {{ .Values.controller.autoscaling.minReplicas }}
23
maxReplicas: {{ .Values.controller.autoscaling.maxReplicas }}
0 commit comments