diff --git a/Dockerfile b/Dockerfile index ceaab77..5ebd1a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,5 +2,4 @@ FROM busybox:1.36.1-musl COPY installation-scripts-onm /sal-scripts/installation-scripts-onm COPY k8s /sal-scripts/k8s -COPY serverless /sal-scripts/serverless -COPY workflow /sal-scripts/workflow \ No newline at end of file +COPY serverless /sal-scripts/serverless \ No newline at end of file diff --git a/installation-scripts-onm/MASTER_START_SCRIPT.sh b/installation-scripts-onm/MASTER_START_SCRIPT.sh index 3be134e..1870837 100644 --- a/installation-scripts-onm/MASTER_START_SCRIPT.sh +++ b/installation-scripts-onm/MASTER_START_SCRIPT.sh @@ -103,13 +103,24 @@ fi if [ "$WORKFLOW_ENABLED" == "yes" ]; then echo "Workflow installation."; - wget https://raw.githubusercontent.com/eu-nebulous/sal-scripts/main/workflow/workflow.yaml - - helm install argo-workflows argo-workflows --repo https://argoproj.github.io/argo-helm --namespace argo --create-namespace --values workflow.yaml; + $dau bash -c 'helm install argo-workflows argo-workflows \ + --repo https://argoproj.github.io/argo-helm \ + --namespace argo \ + --create-namespace \ + --set crds.install=true \ + --set crds.keep=false \ + --set workflow.serviceAccount.create=true \ + --set workflow.serviceAccount.name="argo" \ + --set workflow.rbac.create=true \ + --set "controller.workflowNamespaces={argo}" \ + --set controller.metricsConfig.enabled=true \ + --set controller.telemetryConfig.enabled=true \ + --set controller.serviceMonitor.enabled=true \ + --set "server.authModes={server}"' - kubectl -n argo create rolebinding argo-workflows-server --role=argo-workflows-workflow --serviceaccount=argo:argo-workflows-server; - kubectl -n argo create rolebinding argo-workflows-workflow-controller --role=argo-workflows-workflow --serviceaccount=argo:argo-workflows-workflow-controller; - kubectl -n argo create rolebinding default --role=argo-workflows-workflow --serviceaccount=argo:default; + $dau bash -c 'kubectl -n argo create rolebinding argo-workflows-server --role=argo-workflows-workflow --serviceaccount=argo:argo-workflows-server' + $dau bash -c 'kubectl -n argo create rolebinding argo-workflows-workflow-controller --role=argo-workflows-workflow --serviceaccount=argo:argo-workflows-workflow-controller' + $dau bash -c 'kubectl -n argo create rolebinding default --role=argo-workflows-workflow --serviceaccount=argo:default' echo "Workflow installation completed."; fi diff --git a/workflow/workflow.yaml b/workflow/workflow.yaml deleted file mode 100644 index b3f7595..0000000 --- a/workflow/workflow.yaml +++ /dev/null @@ -1,14 +0,0 @@ -crds: - install: true - keep: false -workflow: - serviceAccount: - create: true - name: "argo" - rbac: - create: true -controller: - workflowNamespaces: - - argo -server: - authModes: ['server'] \ No newline at end of file