Closed Tanemahuta closed 1 year ago
Since the HorizontalPodAutoscaler
v2beta2
is deprecated since 1.23, I have taken the shortcut and replaced the group version.
Hi,
I suggest to use the following to be backward compatible:
apiVersion: {{ ternary "autoscaling/v2" "autoscaling/v2beta2" (.Capabilities.APIVersions.Has "autoscaling/v2") }}
Downside: some IDEs (e.g. IntelliJ IDEA in my case) will not properly recognize GVK If you plan to use beta features and support previous API versions, you might want to create a helper for this. Pushed a new commit.
What's in this PR?
Changed resource version of HorizontalPodAutoscaler to v2
Why?
Group deprecation in k8s 1.27
Additional context
none
Checklist