Skip to content

Commit

Permalink
Make it possible to override secretRef for configConnector
Browse files Browse the repository at this point in the history
  • Loading branch information
amnk committed Apr 6, 2022
1 parent 0c095fa commit 1d80e22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/helm-microservice/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.0"
description: A Helm chart for Kubernetes
name: helm-microservice
version: 0.1.19
version: 0.1.20
home: https://github.com/skaeladmin/infra
sources:
- https://github.com/skaeladmin/infra/charts/helm-microservice
Expand Down
4 changes: 2 additions & 2 deletions charts/helm-microservice/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ spec:
- name: CONNECTION_NAME
valueFrom:
secretKeyRef:
name: cloudsql-db-credentials
name: "{{ .Values.useConfigConnector.secretRef }}"
key: connectionName
- name: PROJECT_ID
valueFrom:
secretKeyRef:
name: cloudsql-db-credentials
name: "{{ .Values.useConfigConnector.secretRef }}"
key: projectId
command: ["/cloud_sql_proxy",
"-instances=$(PROJECT_ID):$(CONNECTION_NAME)=tcp:3306"]
Expand Down
1 change: 1 addition & 0 deletions charts/helm-microservice/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ useConfigConnector:
google:
region: us-east1-c
projectId: skael-hydra
secretRef: cloudsql-db-credentials

minikube:
enabled: false
Expand Down

0 comments on commit 1d80e22

Please sign in to comment.