diff --git a/Dockerfile b/Dockerfile index ad2e22c..1cb8461 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,3 +4,4 @@ COPY installation-scripts /sal-scripts/installation-scripts 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 diff --git a/installation-scripts-onm/MASTER_START_SCRIPT.sh b/installation-scripts-onm/MASTER_START_SCRIPT.sh index 27b0235..fbd59c4 100644 --- a/installation-scripts-onm/MASTER_START_SCRIPT.sh +++ b/installation-scripts-onm/MASTER_START_SCRIPT.sh @@ -108,4 +108,16 @@ if [ "$SERVERLESS_ENABLED" == "yes" ]; then kubectl apply -f https://raw.githubusercontent.com/kubevela/samples/master/06.Knative_App/componentdefinition-knative-serving.yaml echo "Serverless installation completed." +fi + +if [ "$WORKFLOW_ENABLED" == "yes" ]; then + echo "Workflow installation."; + + helm install argo-workflows argo-workflows --repo https://argoproj.github.io/argo-helm --namespace argo --create-namespace --values workflow/workflow.yaml; + + 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; + + echo "Workflow installation completed."; fi \ No newline at end of file diff --git a/workflow/workflow.yaml b/workflow/workflow.yaml new file mode 100644 index 0000000..b3f7595 --- /dev/null +++ b/workflow/workflow.yaml @@ -0,0 +1,14 @@ +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