Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow executor #29

Merged
merged 3 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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']