fix(hpa): deprecated api version, bump to v2 (#9348)
* fix(hpa): deprecated api version, bump to v2 * chore(hpa): abstract hpa apiVersion to helm value * feat(hpa): add controller.autoscaling.apiVersion docs in README * docs(hpa): quotes around apiVersion string type * chore(hpa): run helm-docs in repo * chore(hpa): remove local helm-docs module install and output * docs(helm): add hpa controller.autoscaling.apiVersion description * docs(hpa): remove autoscaling.apiVersion description as it fails ci
This commit is contained in:
parent
8a5eaa63a9
commit
27ffeeb18f
3 changed files with 3 additions and 1 deletions
|
@ -277,6 +277,7 @@ Kubernetes: `>=1.20.0-0`
|
||||||
| controller.affinity | object | `{}` | Affinity and anti-affinity rules for server scheduling to nodes # Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity # |
|
| controller.affinity | object | `{}` | Affinity and anti-affinity rules for server scheduling to nodes # Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity # |
|
||||||
| controller.allowSnippetAnnotations | bool | `true` | This configuration defines if Ingress Controller should allow users to set their own *-snippet annotations, otherwise this is forbidden / dropped when users add those annotations. Global snippets in ConfigMap are still respected |
|
| controller.allowSnippetAnnotations | bool | `true` | This configuration defines if Ingress Controller should allow users to set their own *-snippet annotations, otherwise this is forbidden / dropped when users add those annotations. Global snippets in ConfigMap are still respected |
|
||||||
| controller.annotations | object | `{}` | Annotations to be added to the controller Deployment or DaemonSet # |
|
| controller.annotations | object | `{}` | Annotations to be added to the controller Deployment or DaemonSet # |
|
||||||
|
| controller.autoscaling.apiVersion | string | `"autoscaling/v2"` | |
|
||||||
| controller.autoscaling.behavior | object | `{}` | |
|
| controller.autoscaling.behavior | object | `{}` | |
|
||||||
| controller.autoscaling.enabled | bool | `false` | |
|
| controller.autoscaling.enabled | bool | `false` | |
|
||||||
| controller.autoscaling.maxReplicas | int | `11` | |
|
| controller.autoscaling.maxReplicas | int | `11` | |
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{- if and .Values.controller.autoscaling.enabled (or (eq .Values.controller.kind "Deployment") (eq .Values.controller.kind "Both")) -}}
|
{{- if and .Values.controller.autoscaling.enabled (or (eq .Values.controller.kind "Deployment") (eq .Values.controller.kind "Both")) -}}
|
||||||
{{- if not .Values.controller.keda.enabled }}
|
{{- if not .Values.controller.keda.enabled }}
|
||||||
|
|
||||||
apiVersion: autoscaling/v2beta2
|
apiVersion: {{ .Values.controller.autoscaling.apiVersion }}
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
|
|
|
@ -364,6 +364,7 @@ controller:
|
||||||
|
|
||||||
# Mutually exclusive with keda autoscaling
|
# Mutually exclusive with keda autoscaling
|
||||||
autoscaling:
|
autoscaling:
|
||||||
|
apiVersion: autoscaling/v2
|
||||||
enabled: false
|
enabled: false
|
||||||
minReplicas: 1
|
minReplicas: 1
|
||||||
maxReplicas: 11
|
maxReplicas: 11
|
||||||
|
|
Loading…
Reference in a new issue