Skip to content

Commit

Permalink
feat: Argo workflows RBAC chart (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlokshin-czi authored Nov 7, 2024
1 parent 41b0d93 commit 8ba95db
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 0 deletions.
9 changes: 9 additions & 0 deletions argo-workflows-rbac/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v2
name: argo-workflows-rbac
description: A Helm chart for creating an Argo Workflows rbac resources to allow access to workflow templates.

type: application

version: 0.0.1

appVersion: "0.0.1"
6 changes: 6 additions & 0 deletions argo-workflows-rbac/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Argo Workflows RBAC helm chart

A Helm chart for creating an Argo Workflows rbac resources to allow access to workflow templates.

## Parameters

6 changes: 6 additions & 0 deletions argo-workflows-rbac/templates/rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ .Values.clusterRole.name }}
rules:
{{ toYaml .Values.clusterRole.rules | indent 2 }}
46 changes: 46 additions & 0 deletions argo-workflows-rbac/values.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"title": "Chart Values",
"type": "object",
"properties": {
"clusterRole": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Cluster Role name to create",
"default": "czi-argo-workflows-server-cluster-template"
},
"rules": {
"type": "array",
"description": "ApiGroups API groups to apply the rules to",
"items": {
"type": "object",
"properties": {
"apiGroups": {
"type": "array",
"description": "ApiGroups API groups to apply the rules to",
"items": {
"type": "string"
}
},
"resources": {
"type": "array",
"description": "Resources to apply the rules to",
"items": {
"type": "string"
}
},
"verbs": {
"type": "array",
"description": "Verbs to apply the rules to",
"items": {
"type": "string"
}
}
}
}
}
}
}
}
}
19 changes: 19 additions & 0 deletions argo-workflows-rbac/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
clusterRole:
## @param clusterRole.name Cluster Role name to create
name: czi-argo-workflows-server-cluster-template
rules:
## @param clusterRole.rules[0].apiGroups ApiGroups API groups to apply the rules to
- apiGroups:
- argoproj.io
## @param clusterRole.rules[0].resources Resources to apply the rules to
resources:
- clusterworkflowtemplates
## @param clusterRole.rules[0].verbs Verbs to apply the rules to
verbs:
- get
- list
- watch
- create
- update
- patch
- delete

0 comments on commit 8ba95db

Please sign in to comment.