Skip to content

Commit

Permalink
fix: hpa v2 api update
Browse files Browse the repository at this point in the history
Signed-off-by: bbensky <[email protected]>

fix: end conditional

Signed-off-by: bbensky <[email protected]>
  • Loading branch information
bbensky committed Aug 15, 2024
1 parent 7cf59b5 commit e22061f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion charts/aws-pca-issuer/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{{- if .Values.autoscaling.enabled }}
{{- if .Capabilities.APIVersions.Has "autoscaling/v2" }}
apiVersion: autoscaling/v2
{{- else }}
apiVersion: autoscaling/v2beta1
{{- end }}
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "aws-privateca-issuer.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "aws-privateca-issuer.labels" . | nindent 4 }}
spec:
Expand Down

0 comments on commit e22061f

Please sign in to comment.