feat(argo-workflows): Allow controller to whitelist secrets (#1646)
* allow users to whitelist secrets Signed-off-by: emmayylu <84873428+yolu-kxs@users.noreply.github.com> * remove unnecessary if-statement Signed-off-by: emmayylu <44856279+emmayylu@users.noreply.github.com> * use square bracket for array Signed-off-by: emmayylu <44856279+emmayylu@users.noreply.github.com> * fix typo and update readme Signed-off-by: emmayylu <44856279+emmayylu@users.noreply.github.com> Signed-off-by: emmayylu <84873428+yolu-kxs@users.noreply.github.com> Signed-off-by: emmayylu <44856279+emmayylu@users.noreply.github.com> Co-authored-by: emmayylu <84873428+yolu-kxs@users.noreply.github.com>
This commit is contained in:
parent
7105de193a
commit
16cf7af98b
4 changed files with 16 additions and 2 deletions
|
@ -3,7 +3,7 @@ appVersion: v3.4.3
|
||||||
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.20.8
|
version: 0.20.9
|
||||||
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,4 +13,4 @@ maintainers:
|
||||||
url: https://argoproj.github.io/
|
url: https://argoproj.github.io/
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- "[Fixed]: add missing attribute for sso"
|
- "[Fixed]: allow users to optionally whitelist secrets"
|
||||||
|
|
|
@ -107,6 +107,7 @@ Fields to note:
|
||||||
| 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.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.replicas | int | `1` | The number of controller pods to run |
|
| controller.replicas | int | `1` | The number of controller pods to run |
|
||||||
| controller.resourceRateLimit | object | `{}` | Globally limits the rate at which pods are created. This is intended to mitigate flooding of the Kubernetes API server by workflows with a large amount of parallel nodes. |
|
| controller.resourceRateLimit | object | `{}` | Globally limits the rate at which pods are created. This is intended to mitigate flooding of the Kubernetes API server by workflows with a large amount of parallel nodes. |
|
||||||
| controller.resources | object | `{}` | Resource limits and requests for the controller |
|
| controller.resources | object | `{}` | Resource limits and requests for the controller |
|
||||||
|
|
|
@ -164,6 +164,17 @@ rules:
|
||||||
resourceNames:
|
resourceNames:
|
||||||
{{/* for HTTP templates */}}
|
{{/* for HTTP templates */}}
|
||||||
- argo-workflows-agent-ca-certificates
|
- argo-workflows-agent-ca-certificates
|
||||||
|
{{- with .Values.controller.rbac.secretWhitelist }}
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- secrets
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
resourceNames: {{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.controller.clusterWorkflowTemplates.enabled }}
|
{{- if .Values.controller.clusterWorkflowTemplates.enabled }}
|
||||||
---
|
---
|
||||||
|
|
|
@ -70,6 +70,8 @@ controller:
|
||||||
rbac:
|
rbac:
|
||||||
# -- Adds Role and RoleBinding for the controller.
|
# -- Adds Role and RoleBinding for the controller.
|
||||||
create: true
|
create: true
|
||||||
|
# -- Allows controller to get, list, and watch certain k8s secrets
|
||||||
|
secretWhitelist: []
|
||||||
|
|
||||||
# -- Limits the maximum number of incomplete workflows in a namespace
|
# -- Limits the maximum number of incomplete workflows in a namespace
|
||||||
namespaceParallelism:
|
namespaceParallelism:
|
||||||
|
|
Loading…
Reference in a new issue