Skip to content

Commit

Permalink
fix: improve CONTEXT and CLUSTER_REF handling in Taskfile helper
Browse files Browse the repository at this point in the history
Signed-off-by: Jeromy Cannon <[email protected]>
  • Loading branch information
jeromy-cannon committed Feb 14, 2025
1 parent 5ec89a2 commit 9bbc5b5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Taskfile.helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,17 @@ tasks:
- task: "init"
cmds:
- |
if [[ "${CONTEXT}" == "" ]]; then
export CONTEXT=kind-{{ .SOLO_CLUSTER_NAME }}
if [[ "${CONTEXT}" != "" ]]; then
echo "CONTEXT=${CONTEXT}"
else
export CONTEXT="kind-${SOLO_CLUSTER_NAME}"
fi
if [[ "${CLUSTER_REF}" == "" ]]; then
export CLUSTER_REF=kind-{{ .SOLO_CLUSTER_NAME }}
if [[ "${CLUSTER_REF}" != "" ]]; then
echo "CLUSTER_REF=${CLUSTER_REF}"
else
export CLUSTER_REF="kind-${SOLO_CLUSTER_NAME}"
fi
SOLO_HOME_DIR=${SOLO_HOME_DIR} npm run solo -- deployment create -n {{ .SOLO_NAMESPACE }} --context {{ .CONTEXT }} --email {{ .SOLO_EMAIL }} --deployment-clusters {{ .CLUSTER_REF }} --cluster-ref {{ .CLUSTER_REF }} --deployment "${SOLO_DEPLOYMENT}" --node-aliases {{.node_identifiers}} --dev
SOLO_HOME_DIR=${SOLO_HOME_DIR} npm run solo -- deployment create -n {{ .SOLO_NAMESPACE }} --context ${CONTEXT} --email {{ .SOLO_EMAIL }} --deployment-clusters ${CLUSTER_REF} --cluster-ref ${CLUSTER_REF} --deployment "${SOLO_DEPLOYMENT}" --node-aliases {{.node_identifiers}} --dev
solo:keys:
silent: true
Expand Down

0 comments on commit 9bbc5b5

Please sign in to comment.