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

feat: Enable argo client auth mode and add service account for argo api usage #122

Closed
wants to merge 4 commits into from
Closed
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
53 changes: 53 additions & 0 deletions components/argo-events/argo-api-user.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: argoapi
namespace: argo-events
rules:
- apiGroups:
- argoproj.io
resources:
- workflows
verbs:
- list
- update
- create
- patch
- apiGroups:
- argoproj.io
resources:
- workflowtemplates
verbs:
- list
- update
- create
- patch
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: argoapi
namespace: argo-events
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: argoapi
namespace: argo-events
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: argoapi
subjects:
- kind: ServiceAccount
name: argoapi
namespace: argo-events
---
apiVersion: v1
kind: Secret
metadata:
name: argoapi.service-account-token
annotations:
kubernetes.io/service-account.name: argoapi
type: kubernetes.io/service-account-token
3 changes: 3 additions & 0 deletions components/argo-events/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ resources:
- workflow-role.yaml

- configmaps.yaml

# adds argoapi service account user
- argo-api-user.yaml
1 change: 1 addition & 0 deletions components/argo-workflows/patch-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
value:
- server
- --auth-mode=sso
- --auth-mode=client
- --namespaced
- --managed-namespace
- argo-events
Loading