Skip to content

Commit

Permalink
Fix image values (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
horjulf authored Aug 27, 2021
1 parent ae815f1 commit df93393
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion stable/gcloud-sqlproxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ name: gcloud-sqlproxy
sources:
- https://github.com/rimusz/charts
type: application
version: 0.22.0
version: 0.22.1
4 changes: 4 additions & 0 deletions stable/gcloud-sqlproxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ GCP does not support more than 5 endpoints on an Internal Load Balancer. To work

## Upgrading

**From < 0.22.0 to >= 0.22.1**

Please note, as of `0.22.1` image `repository`, `tag` and `pullPolicy` values use new variables, if not using the defaults, you will need to rename them.

**From < 0.10.0 to >= 0.10.0**

Please note, if chart name is included in release name, it will now be used as full name.
Expand Down
4 changes: 2 additions & 2 deletions stable/gcloud-sqlproxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ spec:
{{- end }}
containers:
- name: sqlproxy
image: "{{ .Values.image }}:{{ default .Chart.AppVersion .Values.image.tag }}"
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }}
image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"
imagePullPolicy: {{ default "" .Values.image.pullPolicy | quote }}
resources:
{{ toYaml .Values.resources | indent 10 }}
command:
Expand Down
13 changes: 6 additions & 7 deletions stable/gcloud-sqlproxy/values.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
## Google Cloud SQL Proxy image
## ref: https://cloud.google.com/sql/docs/mysql/sql-proxy
## ref: https://cloud.google.com/sql/docs/postgres/sql-proxy
image: gcr.io/cloudsql-docker/gce-proxy
image:
repository: gcr.io/cloudsql-docker/gce-proxy
# Note that by default we use appVersion to get image tag
# tag:

## Specify a imagePullPolicy
## 'Always' if imageTag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
##
imagePullPolicy: IfNotPresent
## Specify a imagePullPolicy
## 'Always' if imageTag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
pullPolicy: IfNotPresent

## Replicas Set count
replicasCount: 1
Expand Down

0 comments on commit df93393

Please sign in to comment.