Skip to content

Commit

Permalink
fix: HPA syntax, allow v2 API
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesús Fernández committed Sep 28, 2023
1 parent bfa944c commit b588e7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/aws-pca-issuer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: aws-privateca-issuer
description: An addon for cert-manager to sign certificates using AWS PCA
type: application
version: v1.2.5
version: v1.2.6
appVersion: v1.2.5
5 changes: 4 additions & 1 deletion charts/aws-pca-issuer/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{- 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" . }}
Expand All @@ -11,7 +15,6 @@ spec:
apiVersion: apps/v1
kind: Deployment
name: {{ include "aws-privateca-issuer.fullname" . }}
namespace: {{ .Release.Namespace }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
Expand Down

0 comments on commit b588e7e

Please sign in to comment.