Skip to content

Commit

Permalink
feat: argo-wrapper-namespace-config update
Browse files Browse the repository at this point in the history
  • Loading branch information
m0nhawk authored Feb 13, 2024
1 parent e081b23 commit 816f1b4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gen3/bin/kube-setup-argo-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,13 @@ if [[ -z "$GEN3_SOURCE_ONLY" ]]; then
gen3 roll argo-wrapper
g3kubectl apply -f "${GEN3_HOME}/kube/services/argo-wrapper/argo-wrapper-service.yaml"

if g3k_manifest_lookup .argo.argo_server_service_url 2> /dev/null; then
argo_server_service_url=$(g3k_manifest_lookup .argo.argo_server_service_url)

export ARGO_HOST=${argo_server_service_url}
export ARGO_NAMESPACE=argo-$(gen3 db namespace)
envsubst <"${GEN3_HOME}/kube/services/argo-wrapper/config.ini" | g3kubectl apply -f -
fi

gen3_log_info "the argo-wrapper service has been deployed onto the kubernetes cluster"
fi
4 changes: 4 additions & 0 deletions kube/services/argo-wrapper/config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[DEFAULT]
ARGO_ACCESS_METHOD = access
ARGO_HOST = $ARGO_HOST
ARGO_NAMESPACE = $ARGO_NAMESPACE

0 comments on commit 816f1b4

Please sign in to comment.