Skip to content

Commit 3228b43

Browse files
committed
changes during deployment attempts:
- db password secret changes - google load balance prob url fix - create-secrets tool should save file content to data field
1 parent 9c4bf69 commit 3228b43

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

deploy/helm/magda/charts/gateway/templates/deployment.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ spec:
1515
- name: gateway
1616
image: {{ template "dockerimage" . }}
1717
imagePullPolicy: {{ .Values.image.pullPolicy | default .Values.global.image.pullPolicy }}
18+
ports:
19+
- containerPort: {{ .Values.service.internalPort }}
1820
command: [
1921
"node",
2022
"/usr/src/app/component/dist/index.js",

deploy/helm/magda/templates/_helpers.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
4444
valueFrom:
4545
secretKeyRef:
4646
name: cloudsql-db-credentials
47-
key: password
47+
key: postgres-password
4848
{{- else if not .Values.global.noDbAuth }}
4949
- name: PGPASSWORD
5050
valueFrom:

scripts/create-secrets/k8sExecution.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function doK8sExecution(config, shouldNotAsk = false) {
9696
namespace,
9797
"cloudsql-instance-credentials",
9898
"credentials.json",
99-
configData["cloudsql-instance-credentials"]
99+
configData["cloudsql-instance-credentials"]["data"]
100100
);
101101
}
102102

@@ -106,7 +106,7 @@ function doK8sExecution(config, shouldNotAsk = false) {
106106
namespace,
107107
"storage-account-credentials",
108108
"db-service-account-private-key.json",
109-
configData["storage-account-credentials"]
109+
configData["storage-account-credentials"]["data"]
110110
);
111111
}
112112

0 commit comments

Comments
 (0)