Skip to content

Commit

Permalink
chore: allow arbitary args in chart rbac
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored and moshloop committed Oct 28, 2024
1 parent e8774db commit 7a7c95b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chart/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ rules:
verbs:
- "*"
{{- end}}
{{- if .Values.serviceAccount.rbac.extra }}
{{ .Values.serviceAccount.rbac.extra | toYaml | nindent 2 }}
{{- end}}
- apiGroups:
- "metrics.k8s.io"
resources:
Expand Down Expand Up @@ -159,4 +162,4 @@ subjects:
- kind: ServiceAccount
name: {{ .Values.serviceAccount.name }}
namespace: {{ .Release.Namespace }}
{{- end}}
{{- end}}
10 changes: 10 additions & 0 deletions chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,16 @@
"title": "exec",
"type": "boolean"
},
"extra": {
"default": [],
"items": {
"required": [],
"type": "object"
},
"required": [],
"title": "extra",
"type": "array"
},
"ingressCreateAndDelete": {
"default": true,
"description": "for pod canary",
Expand Down
9 changes: 9 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,15 @@ serviceAccount:
# -- for namespace canary
namespaceCreateAndDelete: true

# @schema
# required: false
# default: []
# type: array
# items:
# type: object
# @schema
extra: []

# @schema
# type: array
# required: false
Expand Down

0 comments on commit 7a7c95b

Please sign in to comment.