Skip to content

Commit

Permalink
Merge pull request #271 from fivesheep/main
Browse files Browse the repository at this point in the history
remove namespace field from scaleTargetRef for hpa
  • Loading branch information
cert-manager-prow[bot] authored Nov 25, 2024
2 parents 235aa48 + 326adfd commit 3456e43
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion charts/aws-pca-issuer/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,31 @@ spec:
apiVersion: apps/v1
kind: Deployment
name: {{ include "aws-privateca-issuer.fullname" . }}
namespace: {{ .Release.Namespace }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
{{- if .Capabilities.APIVersions.Has "autoscaling/v2" }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- else }}
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
{{- if .Capabilities.APIVersions.Has "autoscaling/v2" }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- else }}
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 3456e43

Please sign in to comment.