From 1cfa75adeb432bbfab7a72c2dbb0f4b97b0553bc Mon Sep 17 00:00:00 2001 From: Pedro Miranda <20952412+pedromiranda17@users.noreply.github.com> Date: Tue, 30 Jun 2020 12:57:42 -0500 Subject: [PATCH] Add support for specifying deployment strategy (#95) * Add support for specifying deployment strategy * Cgart version bumped Co-authored-by: Pedro Miranda --- stable/gcloud-sqlproxy/Chart.yaml | 2 +- stable/gcloud-sqlproxy/README.md | 1 + stable/gcloud-sqlproxy/templates/deployment.yaml | 2 ++ stable/gcloud-sqlproxy/values.yaml | 3 +++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stable/gcloud-sqlproxy/Chart.yaml b/stable/gcloud-sqlproxy/Chart.yaml index 150a413..75ba8d0 100755 --- a/stable/gcloud-sqlproxy/Chart.yaml +++ b/stable/gcloud-sqlproxy/Chart.yaml @@ -18,4 +18,4 @@ maintainers: name: gcloud-sqlproxy sources: - https://github.com/rimusz/charts -version: 0.19.11 +version: 0.19.12 diff --git a/stable/gcloud-sqlproxy/README.md b/stable/gcloud-sqlproxy/README.md index 6caf409..bd51f61 100755 --- a/stable/gcloud-sqlproxy/README.md +++ b/stable/gcloud-sqlproxy/README.md @@ -63,6 +63,7 @@ The following table lists the configurable parameters of the `gcloud-sqlproxy` c | `imageTag` | SQLProxy image tag | `1.16` | | `imagePullPolicy` | Image pull policy | `IfNotPresent` | | `replicasCount` | Replicas count | `1` | +| `deploymentStrategy` | Deployment strategy for pods | `{}` | | `serviceAccountKey` | Service account key JSON file | Must be provided and base64 encoded when no existing secret is used, in this case a new secret will be created holding this service account | | `existingSecret` | Name of an existing secret to be used for the cloud-sql credentials | `""` | | `existingSecretKey` | The key to use in the provided existing secret | `""` | diff --git a/stable/gcloud-sqlproxy/templates/deployment.yaml b/stable/gcloud-sqlproxy/templates/deployment.yaml index 6c1bc39..79ef6f9 100755 --- a/stable/gcloud-sqlproxy/templates/deployment.yaml +++ b/stable/gcloud-sqlproxy/templates/deployment.yaml @@ -13,6 +13,8 @@ spec: selector: matchLabels: {{- include "gcloud-sqlproxy.selectorLabels" . | nindent 6 }} + strategy: +{{ toYaml .Values.deploymentStrategy | indent 4 }} template: metadata: labels: diff --git a/stable/gcloud-sqlproxy/values.yaml b/stable/gcloud-sqlproxy/values.yaml index dbdca99..70480ae 100755 --- a/stable/gcloud-sqlproxy/values.yaml +++ b/stable/gcloud-sqlproxy/values.yaml @@ -13,6 +13,9 @@ imagePullPolicy: IfNotPresent ## Replicas Set count replicasCount: 1 +## Specify the deployment strategy for pods +deploymentStrategy: {} + ## Set the GCP service account key JSON file. ## Service account has access be set to Cloud SQL instances ## the key must be encoded with base64