apiVersion apps/v1 support for cluster autoscaler (#13960)

Default to the current version (extensions/v1beta1) but allow
overriding it on a release.

Signed-off-by: Ergin Babani <ergin@autonomic.ai>
This commit is contained in:
Ergin Babani
2019-05-20 04:09:25 -07:00
committed by Kubernetes Prow Robot
parent 05e16981cc
commit d571a997af
4 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
description: Scales worker nodes within autoscaling groups.
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
name: cluster-autoscaler
version: 0.13.1
version: 0.13.2
appVersion: 1.13.1
home: https://github.com/kubernetes/autoscaler
sources:
+1
View File
@@ -139,6 +139,7 @@ Parameter | Description | Default
`extraEnv` | additional container environment variables | `{}`
`nodeSelector` | node labels for pod assignment | `{}`
`podAnnotations` | annotations to add to each pod | `{}`
`deployment.apiVersion` | apiVersion for the deployment | `extensions/v1beta1`
`rbac.create` | If true, create & use RBAC resources | `false`
`rbac.serviceAccountName` | existing ServiceAccount to use (ignored if rbac.create=true) | `default`
`rbac.pspEnabled` | Must be used with `rbac.create` true. If true, creates & uses RBAC resources required in the cluster with [Pod Security Policies](https://kubernetes.io/docs/concepts/policy/pod-security-policy/) enabled. | `false`
@@ -1,6 +1,6 @@
{{- if or .Values.autoDiscovery.clusterName .Values.autoscalingGroups }}
{{/* one of the above is required */}}
apiVersion: extensions/v1beta1
apiVersion: {{ .Values.deployment.apiVersion }}
kind: Deployment
metadata:
labels:
@@ -11,6 +11,13 @@ metadata:
name: {{ template "cluster-autoscaler.fullname" . }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ template "cluster-autoscaler.name" . }}
release: {{ .Release.Name }}
{{- if .Values.podLabels }}
{{ toYaml .Values.podLabels | indent 8 }}
{{- end }}
template:
metadata:
{{- if .Values.podAnnotations }}
+3
View File
@@ -93,6 +93,9 @@ podAnnotations: {}
podLabels: {}
replicaCount: 1
deployment:
apiVersion: "extensions/v1beta1"
rbac:
## If true, create & use RBAC resources
##