Skip to content

Commit 1ee576c

Browse files
committed
fix: use correct mongo user password to instance config
SE-6524
1 parent 8ebf93c commit 1ee576c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/phd-mongodb-provision-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ spec:
177177
-H "Authorization: $K8s_API_BEARER_TOKEN" \
178178
--cacert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt \
179179
-d "{\"apiVersion\": \"v1\",\"kind\": \"Secret\",\"metadata\": {\"name\": \"phd-mongodb-user-password\",\"namespace\": \"$NAMESPACE\"},\"type\": \"Opaque\",\"stringData\": {\"phd-mongodb-user-password\": \"$PASSWORD\"}}" \
180-
"https://kubernetes.default.svc/api/v1/namespaces/$NAMESPACE/secrets")
180+
"https://kubernetes.default.svc/api/v1/namespaces/default/secrets")
181181
182182
if echo "$K8S_RESPONSE" | grep -q "\"kind\": \"Secret\""; then
183183
echo "MongoDB user password saved to kubernetes secret \"phd-mongodb-user-password\" in namespace $NAMESPACE"

0 commit comments

Comments
 (0)