Skip to content

Commit

Permalink
fix: add namespace to kubectl commands in Taskfile.yml (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmooreio authored Jan 29, 2025
1 parent 2c3e043 commit a9b555c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ vars:
sh: echo "{{.OPEN_SEARCH_PREFIX}}.{{.NAMESPACE}}.svc.cluster.local"
MESSAGEBROKER_URL:
sh: |
kubectl get secrets amazon-mq-broker-secret -o json | \
kubectl get secrets amazon-mq-broker-secret -o json -n {{.NAMESPACE}} | \
jq -r ".data | map_values(@base64d) | .BROKER_URL" | \
sed -e 's/(/\\(/g' -e 's/)/\\)/g' -e 's/,/\\,/g'
ALLOWLIST:
Expand Down Expand Up @@ -72,7 +72,7 @@ tasks:
internal: true
cmds:
- |
export BUCKET_NAME=$(kubectl get secrets s3-bucket-output -o jsonpath='{.data.BUCKET_NAME}' | base64 -d)
export BUCKET_NAME=$(kubectl get secrets s3-bucket-output -n {{.NAMESPACE}} -o jsonpath='{.data.BUCKET_NAME}' | base64 -d)
if [ "${ENV}" = "poc" ]; then
export NAMESPACE=hmpps-delius-alfrsco-${ENV}
else
Expand Down

0 comments on commit a9b555c

Please sign in to comment.