Skip to content

Commit

Permalink
ci: add local gitlab at localhost:8080 (quickube#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
GoshaDo authored and omri2001 committed Dec 2, 2024
1 parent e04c95b commit e65d39e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions scripts/init-argo-workflows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,31 @@ else
echo "Workflows release exists, skipping installation"
fi


cat <<EOF | kubectl apply -n workflows -f -
apiVersion: v1
kind: ServiceAccount
metadata:
name: argo-workflows-sa
automountServiceAccountToken: true
---
apiVersion: v1
kind: Secret
metadata:
name: argo-workflows-sa.service-account-token
annotations:
kubernetes.io/service-account.name: argo-workflows-sa
type: kubernetes.io/service-account-token
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: argo-workflows-sa
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: argo-workflow-argo-workflows-workflow
subjects:
- kind: ServiceAccount
name: argo-workflows-sa
EOF

0 comments on commit e65d39e

Please sign in to comment.