RBAC
Appears in
.Values.rbac
Naming scheme
- Primary:
$FullName
(release-name-chart-name) - Non-Primary:
$FullName-$RBACName
(release-name-chart-name-RBACName)
Target Selector
allServiceAccounts
(bool): Whether to assign all service accounts or not to the (Cluster)RoleBindingserviceAccounts
(list): Define the service account(s) to assign the (Cluster)RoleBindingserviceAccounts
(empty): Assign the primary service account to the primary rbac
rbac
Create rbac objects
Key | rbac |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | {} |
Example
$name
Define rbac
Key | rbac.$name |
Type | map |
Required | ✅ |
Helm tpl | ❌ |
Default | {} |
Example
enabled
Enables or Disables the rbac
Key | rbac.$name.enabled |
Type | bool |
Required | ✅ |
Helm tpl | ✅ |
Default | false |
Example
primary
Sets the rbac as primary
Key | rbac.$name.primary |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | false |
Example
namespace
Define the namespace for this object (Only when clusterWide is false)
Key | rbac.$name.namespace |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | "" |
Example
clusterWide
Sets the rbac as cluster wide (ClusterRole, ClusterRoleBinding)
Key | rbac.$name.clusterWide |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | false |
Example
labels
Additional labels for rbac
Key | rbac.$name.labels |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | {} |
Example
annotations
Additional annotations for rbac
Key | rbac.$name.annotations |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | {} |
Example
allServiceAccounts
Whether to assign all service accounts or not to the (Cluster)RoleBinding
Key | rbac.$name.allServiceAccounts |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | unset |
Example
serviceAccounts
Define the service account(s) to assign the (Cluster)RoleBinding
Key | rbac.$name.serviceAccounts |
Type | list |
Required | ❌ |
Helm tpl | ❌ |
Default | [] |
Example
rules
Define the rules
for the (Cluster)Role
Key | rbac.$name.rules |
Type | list |
Required | ✅ |
Helm tpl | ❌ |
Default | [] |
Example
rules[].apiGroups
Define the apiGroups
list for the rules
for the (Cluster)Role
Key | rbac.$name.rules[].apiGroups |
Type | list of string |
Required | ✅ |
Helm tpl | ✅ (On entries only) |
Default | [] |
Example
rules[].resources
Define the resources
list for the rules
for the (Cluster)Role
Key | rbac.$name.rules[].resources |
Type | list of string |
Required | ✅ |
Helm tpl | ✅ (On entries only) |
Default | [] |
Example
rules[].resourceNames
Define the resourceNames
list for the rules
for the (Cluster)Role
Key | rbac.$name.rules[].resourceNames |
Type | list of string |
Required | ❌ |
Helm tpl | ✅ (On entries only) |
Default | [] |
Example
rules[].verbs
Define the verbs
list for the rules
for the (Cluster)Role
Key | rbac.$name.rules[].verbs |
Type | list of string |
Required | ✅ |
Helm tpl | ✅ (On entries only) |
Default | [] |
Example
subjects
Define subjects
for (Cluster)RoleBinding
Key | rbac.$name.subjects |
Type | list of map |
Required | ❌ |
Helm tpl | ❌ |
Default | [] |
Example
subjects[].kind
Define the kind
of subjects
entry
Key | rbac.$name.subjects[].kind |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Example
subjects[].name
Define the name
of subjects
entry
Key | rbac.$name.subjects[].name |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Example
subjects[].apiGroup
Define the apiGroup
of subjects
entry
Key | rbac.$name.subjects[].apiGroup |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Example