Skip to content

Commit

Permalink
Merge pull request #335 from bbensky/hpa-apiversion-update
Browse files Browse the repository at this point in the history
fix: hpa v2 api update
  • Loading branch information
cert-manager-prow[bot] authored Aug 20, 2024
2 parents 7cf59b5 + e22061f commit 1b9aff7
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 1b9aff7

Please sign in to comment.