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: Argo workflows RBAC chart #165

Merged
merged 2 commits into from
Nov 7, 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
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
Loading