From d06264984e7c2a32f9347e7831332c218042d4d3 Mon Sep 17 00:00:00 2001 From: Chris Knowles Date: Thu, 6 Jul 2017 05:12:23 +0800 Subject: [PATCH] [stable/kube2iam] Rolling updates (#1276) * [stable/kube2iam] Rolling updates Also bump to latest image version * Allow further update strategies --- stable/kube2iam/Chart.yaml | 2 +- stable/kube2iam/README.md | 1 + stable/kube2iam/templates/daemonset.yaml | 4 ++++ stable/kube2iam/values.yaml | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/stable/kube2iam/Chart.yaml b/stable/kube2iam/Chart.yaml index f404e8c9336d..f44ea296f20d 100644 --- a/stable/kube2iam/Chart.yaml +++ b/stable/kube2iam/Chart.yaml @@ -1,5 +1,5 @@ name: kube2iam -version: 0.2.1 +version: 0.3.0 description: Provide IAM credentials to pods based on annotations. keywords: - kube2iam diff --git a/stable/kube2iam/README.md b/stable/kube2iam/README.md index ce9b9996a1e9..ff76f25af3e0 100644 --- a/stable/kube2iam/README.md +++ b/stable/kube2iam/README.md @@ -52,6 +52,7 @@ Parameter | Description | Default `podAnnotations` | annotations to be added to pods | `{}` `resources` | pod resource requests & limits | `{}` `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, diff --git a/stable/kube2iam/templates/daemonset.yaml b/stable/kube2iam/templates/daemonset.yaml index e0fb0504f356..ee3380378b3a 100644 --- a/stable/kube2iam/templates/daemonset.yaml +++ b/stable/kube2iam/templates/daemonset.yaml @@ -52,3 +52,7 @@ spec: nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} {{- end }} + {{- if .Values.updateStrategy }} + updateStrategy: + type: {{ .Values.updateStrategy }} + {{- end }} diff --git a/stable/kube2iam/values.yaml b/stable/kube2iam/values.yaml index 578c81fd47ea..87fe9d2ad372 100644 --- a/stable/kube2iam/values.yaml +++ b/stable/kube2iam/values.yaml @@ -11,7 +11,7 @@ host: image: repository: jtblin/kube2iam - tag: 0.2.2 + tag: 0.6.3 pullPolicy: IfNotPresent ## Node labels for pod assignment