Skip to content

Commit

Permalink
[HOTFIX] conditional for HPA API version (#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrvan authored Jan 2, 2024
1 parent 0602e77 commit 812faec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/relayproxy/helm-charts/relay-proxy/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1
apiVersion: {{ ternary "autoscaling/v2" "autoscaling/v2beta1" (.Capabilities.APIVersions.Has "autoscaling/v2") }}
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "relay-proxy.fullname" . }}
Expand Down

0 comments on commit 812faec

Please sign in to comment.