Skip to content

Commit

Permalink
feat(helm): adds a flag for tokengen rbac components so that they can…
Browse files Browse the repository at this point in the history
… be disabled optionally
  • Loading branch information
drew0ps committed Jan 22, 2025
1 parent 81940c8 commit 3d6616e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 3 deletions.
17 changes: 17 additions & 0 deletions docs/sources/setup/install/helm/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -3106,6 +3106,9 @@ null
"labels": {},
"nodeSelector": {},
"priorityClassName": "",
"rbac": {
"create": true
},
"securityContext": {
"fsGroup": 10001,
"runAsGroup": 10001,
Expand Down Expand Up @@ -3475,6 +3478,9 @@ null
"labels": {},
"nodeSelector": {},
"priorityClassName": "",
"rbac": {
"create": true
},
"securityContext": {
"fsGroup": 10001,
"runAsGroup": 10001,
Expand Down Expand Up @@ -3584,6 +3590,17 @@ true
<td><pre lang="json">
""
</pre>
</td>
</tr>
<tr>
<td>enterprise.tokengen.rbac</td>
<td>object</td>
<td>Whether to create a ServiceAccount, a (Cluster)Role and a (Cluster)RoleBinding for the tokengen Job - this allows the components to be created externally when needed</td>
<td><pre lang="json">
{
"create": true
}
</pre>
</td>
</tr>
<tr>
Expand Down
2 changes: 2 additions & 0 deletions production/helm/loki/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Entries should include a reference to the pull request that introduced the chang

[//]: # (<AUTOMATED_UPDATES_LOCATOR> : do not remove this line. This locator is used by the CI pipeline to automatically create a changelog entry for each new Loki release. Add other chart versions and respective changelog entries bellow this line.)

- [FEATURE] Added a Helm Chart value to disable the rbac resource creation for the tokengen job.

## 6.25.0

- [BUGFIX] Removed minio-mc init container from admin-api.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if and .Values.enterprise.tokengen.enabled .Values.enterprise.enabled }}
{{ if and .Values.enterprise.tokengen.enabled .Values.enterprise.enabled .Values.enterprise.tokengen.rbac.create }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: {{ if not .Values.rbac.namespaced }}Cluster{{ end }}Role
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if and .Values.enterprise.tokengen.enabled .Values.enterprise.enabled }}
{{ if and .Values.enterprise.tokengen.enabled .Values.enterprise.tokengen.rbac.create .Values.enterprise.enabled }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: {{ if not .Values.rbac.namespaced }}Cluster{{ end }}RoleBinding
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if and .Values.enterprise.tokengen.enabled .Values.enterprise.enabled }}
{{ if and .Values.enterprise.tokengen.enabled .Values.enterprise.tokengen.rbac.create .Values.enterprise.enabled }}
---
apiVersion: v1
kind: ServiceAccount
Expand Down
3 changes: 3 additions & 0 deletions production/helm/loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,9 @@ enterprise:
targetModule: "tokengen"
# -- Additional CLI arguments for the `tokengen` target
extraArgs: []
# -- Whether to create a ServiceAccount, a (Cluster)Role and a (Cluster)RoleBinding for the tokengen Job - this allows the components to be created externally when needed
rbac:
create: true
# -- Additional Kubernetes environment
env: []
# -- Additional labels for the `tokengen` Job
Expand Down

0 comments on commit 3d6616e

Please sign in to comment.