Skip to content

Commit b3f8ac9

Browse files
committed
fix a hardcoded namespace in cncluster psql
[static] Signed-off-by: Mateusz Błażejewski <mateusz.blazejewski@digitalasset.com>
1 parent 031e074 commit b3f8ac9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build-tools/cncluster

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2175,6 +2175,8 @@ EOF
21752175
_update_cluster_config "$deployment_config" "operatorDeployment"
21762176
}
21772177

2178+
###
2179+
21782180
subcommand_whitelist[psql]=""
21792181
function subcmd_psql() {
21802182
_cluster_must_exist
@@ -2268,7 +2270,7 @@ function subcmd_psql() {
22682270
local PASSWORD_REF
22692271
PASSWORD_REF=$(
22702272
kubectl get deployment \
2271-
--namespace sv-1 \
2273+
--namespace "${NAMESPACE}" \
22722274
--output 'jsonpath={.spec.template.spec.initContainers[].env[?(@.name == "PGPASSWORD")].valueFrom.secretKeyRef}' \
22732275
"${APPLICATION}"
22742276
)

0 commit comments

Comments
 (0)