[stable/aws-iam-authenticator] Add apps/v1 support (#22326)

* add apps/v1 support

Signed-off-by: Tuan Anh Nguyen <tuananh.nguyen-ext@commercetools.de>

* add label selector

Signed-off-by: Tuan Anh Nguyen <tuananh.nguyen-ext@commercetools.de>
This commit is contained in:
Tuan Anh Nguyen
2020-05-13 13:12:28 -07:00
committed by GitHub
parent 15839f5638
commit 4533674357
3 changed files with 17 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.0"
description: A Helm chart for aws-iam-authenticator
name: aws-iam-authenticator
version: 0.1.2
version: 0.1.3
home: https://github.com/kubernetes-sigs/aws-iam-authenticator
maintainers:
- name: plumdog
@@ -30,3 +30,14 @@ Create chart name and version as used by the chart label.
{{- define "aws-iam-authenticator.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Return the apiVersion of daemonset.
*/}}
{{- define "daemonset.apiVersion" -}}
{{- if .Capabilities.APIVersions.Has "apps/v1" -}}
{{- print "apps/v1" -}}
{{- else -}}
{{- print "extensions/v1beta1" -}}
{{- end -}}
{{- end -}}
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: {{ template "daemonset.apiVersion" . }}
kind: DaemonSet
metadata:
name: {{ template "aws-iam-authenticator.fullname" . }}
@@ -8,6 +8,10 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
selector:
matchLabels:
app: {{ template "aws-iam-authenticator.name" . }}
release: {{ .Release.Name }}
updateStrategy:
type: RollingUpdate
template: