diff --git a/argo-workflows-rbac/Chart.yaml b/argo-workflows-rbac/Chart.yaml new file mode 100644 index 0000000..23930ff --- /dev/null +++ b/argo-workflows-rbac/Chart.yaml @@ -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" diff --git a/argo-workflows-rbac/README.md b/argo-workflows-rbac/README.md new file mode 100644 index 0000000..5e77047 --- /dev/null +++ b/argo-workflows-rbac/README.md @@ -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 + diff --git a/argo-workflows-rbac/templates/rbac.yaml b/argo-workflows-rbac/templates/rbac.yaml new file mode 100644 index 0000000..47f3438 --- /dev/null +++ b/argo-workflows-rbac/templates/rbac.yaml @@ -0,0 +1,6 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: {{ .Values.clusterRole.name }} +rules: +{{ toYaml .Values.clusterRole.rules | indent 2 }} \ No newline at end of file diff --git a/argo-workflows-rbac/values.schema.json b/argo-workflows-rbac/values.schema.json new file mode 100644 index 0000000..6ed452e --- /dev/null +++ b/argo-workflows-rbac/values.schema.json @@ -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" + } + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/argo-workflows-rbac/values.yaml b/argo-workflows-rbac/values.yaml new file mode 100644 index 0000000..57278ab --- /dev/null +++ b/argo-workflows-rbac/values.yaml @@ -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 \ No newline at end of file