Skip to content

Commit af2c99a

Browse files
committed
Add explicit enabled for script pod clusterrole
1 parent 4400dd7 commit af2c99a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

charts/kubernetes-agent/templates/pod-clusterroles.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if not .Values.scriptPods.serviceAccount.useNamespacedRoles }}
1+
{{- if and .Values.scriptPods.serviceAccount.clusterRole.enabled (not .Values.scriptPods.serviceAccount.useNamespacedRoles)}}
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:

charts/kubernetes-agent/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ scriptPods:
233233
# @section -- Script pod values
234234
# @default -- `[{"apiGroups":["*"],"resources":["*"],"verbs":["*"]},{"nonResourceURLs":["*"],"verbs":["*"]}]`
235235
clusterRole:
236+
enabled: true
236237
rules: []
237238

238239
# -- if defined, overrides the default Role rules when using namespace-scoped roles

0 commit comments

Comments
 (0)