Skip to content

Commit

Permalink
Add Role/ClusterRole validation, fix CLI flag:
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Oct 15, 2024
1 parent 92a5cd7 commit d2d9e9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions tinkerbell/tink/templates/tink-controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ spec:
containers:
- image: {{ .Values.controller.image }}
imagePullPolicy: {{ .Values.controller.imagePullPolicy }}
{{- if .Values.controller.args }}
args:
{{- if eq .Values.controller.rbac.type "Role" }}
- --kube-namespace={{ .Release.Namespace }}
- --namespace={{ .Release.Namespace }}
{{- end }}
{{- range .Values.controller.args }}
- {{ . }}
{{- end }}
{{- end }}
name: {{ .Values.controller.name }}
resources:
limits:
Expand Down
3 changes: 2 additions & 1 deletion tinkerbell/tink/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
"type": "object",
"properties": {
"type": {
"type": "string"
"type": "string",
"enum": ["Role", "ClusterRole"]
},
"name": {
"type": "string"
Expand Down

0 comments on commit d2d9e9d

Please sign in to comment.