mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/kube2iam] Update strategy (#1510)
* Set UpdateStrategy using .Capabilities * Bump chart version
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user