[stable/kube2iam] Update strategy (#1510)

* Set UpdateStrategy using .Capabilities

* Bump chart version
This commit is contained in:
Michael Goodness
2017-07-19 11:22:22 -05:00
committed by GitHub
parent a82b9f4e00
commit 74dda6cdc5
4 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: kube2iam
version: 0.4.0
version: 0.5.0
description: Provide IAM credentials to pods based on annotations.
keywords:
- kube2iam
+1 -1
View File
@@ -53,8 +53,8 @@ Parameter | Description | Default
`rbac.create` | If true, create & use RBAC resources | `false`
`rbac.serviceAccountName` | existing ServiceAccount to use (ignored if rbac.create=true) | `default`
`resources` | pod resource requests & limits | `{}`
`updateStrategy` | Strategy for DaemonSet updates (requires Kubernetes 1.6+) | `OnDelete`
`verbose` | Enable verbose output | `false`
`updateStrategy` | The strategy for daemon set updates, e.g. `RollingUpdate` (requires Kubernetes 1.6+) | not set
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
+2 -2
View File
@@ -53,7 +53,7 @@ spec:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
serviceAccountName: {{ if .Values.rbac.create }}{{ template "fullname" . }}{{ else }}"{{ .Values.rbac.serviceAccountName }}"{{ end }}
{{- if .Values.updateStrategy }}
{{- if and (eq .Capabilities.KubeVersion.Major "1") (gt .Capabilities.KubeVersion.Minor "5") }}
updateStrategy:
type: {{ .Values.updateStrategy }}
{{- end }}
{{- end }}
+4
View File
@@ -40,5 +40,9 @@ resources: {}
# cpu: 4m
# memory: 16Mi
## Strategy for DaemonSet updates (requires Kubernetes 1.6+)
## Ref: https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/
##
updateStrategy: OnDelete
verbose: false