File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
charts/aws-pca-issuer/templates Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,31 @@ spec:
1414 apiVersion : apps/v1
1515 kind : Deployment
1616 name : {{ include "aws-privateca-issuer.fullname" . }}
17- namespace : {{ .Release.Namespace }}
1817 minReplicas : {{ .Values.autoscaling.minReplicas }}
1918 maxReplicas : {{ .Values.autoscaling.maxReplicas }}
2019 metrics :
2120 {{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
2221 - type : Resource
2322 resource :
2423 name : cpu
24+ {{- if .Capabilities.APIVersions.Has "autoscaling/v2" }}
25+ target :
26+ type : Utilization
27+ averageUtilization : {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
28+ {{- else }}
2529 targetAverageUtilization : {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
30+ {{- end }}
2631 {{- end }}
2732 {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
2833 - type : Resource
2934 resource :
3035 name : memory
36+ {{- if .Capabilities.APIVersions.Has "autoscaling/v2" }}
37+ target :
38+ type : Utilization
39+ averageUtilization : {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
40+ {{- else }}
3141 targetAverageUtilization : {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
42+ {{- end }}
3243 {{- end }}
3344{{- end }}
You can’t perform that action at this time.
0 commit comments