Skip to content

Commit

Permalink
Add support for specifying deployment strategy (#95)
Browse files Browse the repository at this point in the history
* Add support for specifying deployment strategy

* Cgart version bumped

Co-authored-by: Pedro Miranda <pedromiranda@seven4n.com>
  • Loading branch information
pedromctech and Pedro Miranda committed Jun 30, 2020
1 parent 198c736 commit 1cfa75a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/gcloud-sqlproxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ maintainers:
name: gcloud-sqlproxy
sources:
- https://github.com/rimusz/charts
version: 0.19.11
version: 0.19.12
1 change: 1 addition & 0 deletions stable/gcloud-sqlproxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | `""` |
Expand Down
2 changes: 2 additions & 0 deletions stable/gcloud-sqlproxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
selector:
matchLabels:
{{- include "gcloud-sqlproxy.selectorLabels" . | nindent 6 }}
strategy:
{{ toYaml .Values.deploymentStrategy | indent 4 }}
template:
metadata:
labels:
Expand Down
3 changes: 3 additions & 0 deletions stable/gcloud-sqlproxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1cfa75a

Please sign in to comment.