mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user