Skip to content

Commit

Permalink
test wrong api version
Browse files Browse the repository at this point in the history
  • Loading branch information
michalziobro committed Apr 19, 2024
1 parent 2214189 commit 3954109
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{{- if .Values.autoscaling.enabled }}
{{- if semverCompare ">=1.23-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: autoscaling/v2
{{- else -}}
# {{- if semverCompare ">=1.23-0" .Capabilities.KubeVersion.GitVersion -}}
# apiVersion: autoscaling/v2
# {{- else -}}
# apiVersion: autoscaling/v2beta2
# {{- end }}
apiVersion: autoscaling/v2beta2
{{- end }}
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "microservice.fullname" . }}
Expand Down

0 comments on commit 3954109

Please sign in to comment.