Skip to content

Commit

Permalink
Add workflow executor (#29)
Browse files Browse the repository at this point in the history
* Added workflow executor
  • Loading branch information
Iqqdd99 authored Oct 2, 2024
1 parent ed6a197 commit db85253
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions installation-scripts-onm/MASTER_START_SCRIPT.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,17 @@ 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.";

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;

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
14 changes: 14 additions & 0 deletions workflow/workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
crds:
install: true
keep: false
workflow:
serviceAccount:
create: true
name: "argo"
rbac:
create: true
controller:
workflowNamespaces:
- argo
server:
authModes: ['server']

0 comments on commit db85253

Please sign in to comment.