space-cloud
space-cloud copied to clipboard
Deprecated API for HPA in higher versions of Kubernetes (1.26+)
Describe the bug
Deprecated API for the kind: HorizontalPodAutoscaler
in a newer versions of Kubernetes.
- https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-26
Expected behavior
Change from autoscaling/v2beta2
на apiVersion: autoscaling/v2
The best way is to make it variable according to the needs of users.
Steps to reproduce
Using kubernetes version higher than 1.26
Steps to take
apiVersion: {{ .Values.hpa.apiVersion | default "autoscaling/v2beta2" }}
or if you want to make it extensible to a kubernetes cluster, you can make it with the helm Capabilities
.Capabilities.KubeVersion.Version
Your environment
- Space Cloud version: latest
- OS: macOS
- Kubernetes or Docker: 1.27
- Browser (if applicable): 121.0.6167.85