feat(argo-workflows): Add option for controller to read all secrets (#1967)
This commit is contained in:
parent
dfe36fbde9
commit
22356c77af
4 changed files with 16 additions and 3 deletions
|
@ -3,7 +3,7 @@ appVersion: v3.4.7
|
||||||
name: argo-workflows
|
name: argo-workflows
|
||||||
description: A Helm chart for Argo Workflows
|
description: A Helm chart for Argo Workflows
|
||||||
type: application
|
type: application
|
||||||
version: 0.24.0
|
version: 0.24.1
|
||||||
icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png
|
icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
sources:
|
sources:
|
||||||
|
@ -13,5 +13,5 @@ maintainers:
|
||||||
url: https://argoproj.github.io/
|
url: https://argoproj.github.io/
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: fixed
|
- kind: added
|
||||||
description: Add namespace field to all namespace scoped resources because `helm template` doesn't add the namespace filed automatically.
|
description: Add option for workflow controller to read all secrets.
|
||||||
|
|
|
@ -174,6 +174,7 @@ Fields to note:
|
||||||
| controller.podLabels | object | `{}` | Optional labels to add to the controller pods |
|
| controller.podLabels | object | `{}` | Optional labels to add to the controller pods |
|
||||||
| controller.podSecurityContext | object | `{}` | SecurityContext to set on the controller pods |
|
| controller.podSecurityContext | object | `{}` | SecurityContext to set on the controller pods |
|
||||||
| controller.priorityClassName | string | `""` | Leverage a PriorityClass to ensure your pods survive resource shortages. |
|
| controller.priorityClassName | string | `""` | Leverage a PriorityClass to ensure your pods survive resource shortages. |
|
||||||
|
| controller.rbac.accessAllSecrets | bool | `false` | Allows controller to get, list and watch all k8s secrets. Can only be used if secretWhitelist is empty. |
|
||||||
| controller.rbac.create | bool | `true` | Adds Role and RoleBinding for the controller. |
|
| controller.rbac.create | bool | `true` | Adds Role and RoleBinding for the controller. |
|
||||||
| controller.rbac.secretWhitelist | list | `[]` | Allows controller to get, list, and watch certain k8s secrets |
|
| controller.rbac.secretWhitelist | list | `[]` | Allows controller to get, list, and watch certain k8s secrets |
|
||||||
| controller.rbac.writeConfigMaps | bool | `false` | Allows controller to create and update ConfigMaps. Enables memoization feature |
|
| controller.rbac.writeConfigMaps | bool | `false` | Allows controller to create and update ConfigMaps. Enables memoization feature |
|
||||||
|
|
|
@ -187,6 +187,16 @@ rules:
|
||||||
- watch
|
- watch
|
||||||
resourceNames: {{- toYaml . | nindent 4 }}
|
resourceNames: {{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if and (not .Values.controller.rbac.secretWhitelist) (.Values.controller.rbac.accessAllSecrets) }}
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- secrets
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.controller.clusterWorkflowTemplates.enabled }}
|
{{- if .Values.controller.clusterWorkflowTemplates.enabled }}
|
||||||
---
|
---
|
||||||
|
|
|
@ -74,6 +74,8 @@ controller:
|
||||||
create: true
|
create: true
|
||||||
# -- Allows controller to get, list, and watch certain k8s secrets
|
# -- Allows controller to get, list, and watch certain k8s secrets
|
||||||
secretWhitelist: []
|
secretWhitelist: []
|
||||||
|
# -- Allows controller to get, list and watch all k8s secrets. Can only be used if secretWhitelist is empty.
|
||||||
|
accessAllSecrets: false
|
||||||
# -- Allows controller to create and update ConfigMaps. Enables memoization feature
|
# -- Allows controller to create and update ConfigMaps. Enables memoization feature
|
||||||
writeConfigMaps: false
|
writeConfigMaps: false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue