Skip to content

Commit

Permalink
namespace update
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre committed Oct 21, 2024
1 parent 94f5b1b commit acf1969
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
17 changes: 9 additions & 8 deletions gen3/bin/kube-setup-gen3-workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ setup_funnel_infra() {
gen3_log_info "Funnel cluster IP: $funnelClusterIp"
tempWorkerConfig="$(mktemp "$XDG_RUNTIME_DIR/funnel-worker-config.yml_XXXXXX")"
sed "s/FUNNEL_SERVICE_CLUSTER_IP_PLACEHOLDER/$funnelClusterIp/" ${GEN3_HOME}/kube/services/funnel/funnel-worker-config.yml > $tempWorkerConfig
sed "s/FUNNEL_SERVICE_NAMESPACE_PLACEHOLDER/$namespace/" $tempWorkerConfig > $tempServerConfig

# set the namespace in the server config
tempServerConfig="$(mktemp "$XDG_RUNTIME_DIR/funnel-server-config.yml_XXXXXX")"
Expand Down Expand Up @@ -87,14 +88,6 @@ setup_funnel_infra() {
# gen3 s3 attach-bucket-policy "$bucket_name" --read-write --role-name ${username} || true
}

if ! setup_gen3_workflow_infra; then
gen3_log_err "kube-setup-gen3-workflow bailing out - failed to set up gen3-workflow infrastructure"
exit 1
fi
gen3 roll gen3-workflow
g3kubectl apply -f "${GEN3_HOME}/kube/services/gen3-workflow/gen3-workflow-service.yaml"
gen3_log_info "The gen3-workflow service has been deployed onto the kubernetes cluster."

if g3k_manifest_lookup .versions.funnel 2> /dev/null; then
if ! setup_funnel_infra; then
gen3_log_err "kube-setup-gen3-workflow bailing out - failed to set up funnel infrastructure"
Expand All @@ -106,3 +99,11 @@ if g3k_manifest_lookup .versions.funnel 2> /dev/null; then
else
gen3_log_warn "not deploying funnel - no manifest entry for .versions.funnel. The gen3-workflow service may not work!"
fi

if ! setup_gen3_workflow_infra; then
gen3_log_err "kube-setup-gen3-workflow bailing out - failed to set up gen3-workflow infrastructure"
exit 1
fi
gen3 roll gen3-workflow
g3kubectl apply -f "${GEN3_HOME}/kube/services/gen3-workflow/gen3-workflow-service.yaml"
gen3_log_info "The gen3-workflow service has been deployed onto the kubernetes cluster."
2 changes: 1 addition & 1 deletion kube/services/funnel/funnel-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ spec:
volumes:
- name: funnel-deployment-storage
persistentVolumeClaim:
claimName: funnel-storage-pvc
claimName: storage-pvc
- name: config-volume
configMap:
name: funnel-config
2 changes: 1 addition & 1 deletion kube/services/funnel/funnel-server-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Kubernetes:
metadata:
## DO NOT CHANGE NAME
name: {{.TaskId}}
namespace: {{.Namespace}}
namespace: FUNNEL_SERVICE_NAMESPACE_PLACEHOLDER
spec:
backoffLimit: 0
completions: 1
Expand Down
1 change: 1 addition & 0 deletions kube/services/funnel/funnel-worker-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Compute: kubernetes
Kubernetes:
# The executor used to execute tasks. Available executors: docker, kubernetes
Executor: "kubernetes"
Namespace: FUNNEL_SERVICE_NAMESPACE_PLACEHOLDER

Logger:
Level: debug
Expand Down
2 changes: 1 addition & 1 deletion kube/services/funnel/pvc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: funnel-storage-pvc
name: storage-pvc
spec:
storageClassName: standard
resources:
Expand Down

0 comments on commit acf1969

Please sign in to comment.