Skip to content

Commit

Permalink
Feat/argo wrapper namespace config (#2468)
Browse files Browse the repository at this point in the history
* feat: argo-wrapper-namespace-config update

* feat: some extra updates

* fix: name for file

* feat: updates
  • Loading branch information
m0nhawk authored Feb 13, 2024
1 parent e081b23 commit 11b94fb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
13 changes: 12 additions & 1 deletion gen3/bin/kube-setup-argo-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,16 @@ 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" > /tmp/config.ini

g3kubectl delete configmap argo-wrapper-namespace-config
g3kubectl create configmap argo-wrapper-namespace-config --from-file /tmp/config.ini
fi

gen3_log_info "the argo-wrapper service has been deployed onto the kubernetes cluster"
fi
fi
9 changes: 8 additions & 1 deletion kube/services/argo-wrapper/argo-wrapper-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ spec:
configMap:
name: manifest-argo
optional: true

- name: argo-wrapper-namespace-config
configMap:
name: argo-wrapper-namespace-config

containers:
- name: argo-wrapper
GEN3_ARGO-WRAPPER_IMAGE
Expand All @@ -70,3 +73,7 @@ spec:
readOnly: true
mountPath: /argo.json
subPath: argo.json
- name: argo-wrapper-namespace-config
readOnly: true
mountPath: /src/config.ini
subPath: config.ini
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 11b94fb

Please sign in to comment.