From abbbd4da0d64187d85626b1aa69e820fb9f4be58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Bergstr=C3=B6m?= Date: Tue, 20 Nov 2018 17:03:43 +0100 Subject: [PATCH] gocd: add deploy strategy (#8524) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gocd: add deploy strategy value Able to set your own deployment strategy Signed-off-by: Johnny Bergström * gocd: bump release Correct version might conflict with other PRs Signed-off-by: Johnny Bergström * gocd: value comment for agent.deployStrategy Signed-off-by: Johnny Bergström * Update git ref in CHANGELOG Rebased on latest master to resolve conflicts Signed-off-by: Johnny Bergström --- stable/gocd/CHANGELOG.md | 5 +++++ stable/gocd/Chart.yaml | 2 +- stable/gocd/README.md | 1 + stable/gocd/templates/gocd-agent-deployment.yaml | 4 ++++ stable/gocd/values.yaml | 2 ++ 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/stable/gocd/CHANGELOG.md b/stable/gocd/CHANGELOG.md index 86f39ebc6f..1c20d11808 100644 --- a/stable/gocd/CHANGELOG.md +++ b/stable/gocd/CHANGELOG.md @@ -1,3 +1,8 @@ +### 1.5.6 + +* [32de4923](https://github.com/kubernetes/charts/commit/32de4923) + - Deployment strategy value + ### 1.5.5 * [22f3354](https://github.com/helm/charts/commit/22f3354): diff --git a/stable/gocd/Chart.yaml b/stable/gocd/Chart.yaml index 72040d02e5..5f2affa173 100644 --- a/stable/gocd/Chart.yaml +++ b/stable/gocd/Chart.yaml @@ -1,6 +1,6 @@ name: gocd home: https://www.gocd.org/ -version: 1.5.5 +version: 1.5.6 appVersion: 18.10.0 description: GoCD is an open-source continuous delivery server to model and visualize complex workflows with ease. icon: https://gocd.github.io/assets/images/go-icon-black-192x192.png diff --git a/stable/gocd/README.md b/stable/gocd/README.md index ec381c7f30..d8bfd5eea2 100644 --- a/stable/gocd/README.md +++ b/stable/gocd/README.md @@ -156,6 +156,7 @@ $ kubectl create secret generic gocd-server-ssh \ | Parameter | Description | Default | | ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | | `agent.replicaCount` | GoCD Agent replicas Count. By default, no agents are provided. | `0` | +| `agent.deployStrategy` | GoCD Agent [deployment strategy](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy). | `{}` | | `agent.image.repository` | GoCD agent image | `gocd/gocd-agent-alpine-3.6` | | `agent.image.tag` | GoCD agent image tag | `.Chart.appVersion` | | `agent.image.pullPolicy` | Image pull policy | `IfNotPresent` | diff --git a/stable/gocd/templates/gocd-agent-deployment.yaml b/stable/gocd/templates/gocd-agent-deployment.yaml index c24f5d2465..3d89357678 100644 --- a/stable/gocd/templates/gocd-agent-deployment.yaml +++ b/stable/gocd/templates/gocd-agent-deployment.yaml @@ -10,6 +10,10 @@ metadata: component: agent spec: replicas: {{ .Values.agent.replicaCount }} + {{- if .Values.agent.deployStrategy }} + strategy: +{{ toYaml .Values.agent.deployStrategy | indent 4 }} + {{- end }} selector: matchLabels: app: {{ template "gocd.name" . }} diff --git a/stable/gocd/values.yaml b/stable/gocd/values.yaml index 187b9ab82e..24c720586a 100644 --- a/stable/gocd/values.yaml +++ b/stable/gocd/values.yaml @@ -172,6 +172,8 @@ server: agent: # agent.replicaCount is the GoCD Agent replicas Count. Specify the number of GoCD agents to run replicaCount: 0 + # agent.deployStrategy is the strategy explained in detail at https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy + deployStrategy: {} image: # agent.image.repository is the GoCD Agent image name repository: "gocd/gocd-agent-alpine-3.6"