feat(argo-rollouts): Allow customizing additional RBAC rules for other providers (#2556)

* Allow customizing additional RBAC rules for other providers

Signed-off-by: Alvaro.Camina <alvaro.camina@alteryx.com>

* Changing additionalRules from dict to list

Signed-off-by: Alvaro.Camina <alvaro.camina@alteryx.com>

* Changing additionalRules from dict to list and addressing comment

Signed-off-by: Alvaro.Camina <alvaro.camina@alteryx.com>

* Runing `./scripts/helm-docs.sh` to update the README

Signed-off-by: Alvaro.Camina <alvaro.camina@alteryx.com>

---------

Signed-off-by: Alvaro.Camina <alvaro.camina@alteryx.com>
Co-authored-by: Alvaro.Camina <alvaro.camina@alteryx.com>
Co-authored-by: Aikawa <yu.croco@gmail.com>
Co-authored-by: Jason Meridth <jmeridth@gmail.com>
pull/2594/head^2 argo-rollouts-2.34.4
amcamina 2024-03-22 17:09:43 +01:00 committed by GitHub
parent e248b6b316
commit 8a4c875295
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 18 additions and 12 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v1.6.6 appVersion: v1.6.6
description: A Helm chart for Argo Rollouts description: A Helm chart for Argo Rollouts
name: argo-rollouts name: argo-rollouts
version: 2.34.3 version: 2.34.4
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://argoproj.github.io/argo-rollouts/assets/logo.png icon: https://argoproj.github.io/argo-rollouts/assets/logo.png
keywords: keywords:
@ -18,5 +18,5 @@ annotations:
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252 fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
url: https://argoproj.github.io/argo-helm/pgp_keys.asc url: https://argoproj.github.io/argo-helm/pgp_keys.asc
artifacthub.io/changes: | artifacthub.io/changes: |
- kind: changed - kind: added
description: Bump argo-rollouts to v1.6.6 description: Allow customizing additional RBAC rules for other providers

View File

@ -60,6 +60,7 @@ For full list of changes please check ArtifactHub [changelog].
| notifications.secret.items | object | `{}` | Generic key:value pairs to be inserted into the notifications secret | | notifications.secret.items | object | `{}` | Generic key:value pairs to be inserted into the notifications secret |
| notifications.templates | object | `{}` | Notification templates | | notifications.templates | object | `{}` | Notification templates |
| notifications.triggers | object | `{}` | The trigger defines the condition when the notification should be sent | | notifications.triggers | object | `{}` | The trigger defines the condition when the notification should be sent |
| providerRBAC.additionalRules | list | `[]` | Additional RBAC rules for others providers |
| providerRBAC.enabled | bool | `true` | Toggles addition of provider-specific RBAC rules to the controller Role and ClusterRole | | providerRBAC.enabled | bool | `true` | Toggles addition of provider-specific RBAC rules to the controller Role and ClusterRole |
| providerRBAC.providers.ambassador | bool | `true` | Adds RBAC rules for the Ambassador provider | | providerRBAC.providers.ambassador | bool | `true` | Adds RBAC rules for the Ambassador provider |
| providerRBAC.providers.apisix | bool | `true` | Adds RBAC rules for the Apisix provider | | providerRBAC.providers.apisix | bool | `true` | Adds RBAC rules for the Apisix provider |

View File

@ -258,23 +258,26 @@ rules:
{{- if .Values.providerRBAC.providers.contour }} {{- if .Values.providerRBAC.providers.contour }}
# Access needed when using the Contour provider # Access needed when using the Contour provider
- apiGroups: - apiGroups:
- projectcontour.io - projectcontour.io
resources: resources:
- httpproxies - httpproxies
verbs: verbs:
- get - get
- list - list
- watch - watch
- update - update
{{- end }} {{- end }}
{{- if .Values.providerRBAC.providers.glooPlatform }} {{- if .Values.providerRBAC.providers.glooPlatform }}
# Access needed when using the Gloo Platform provider # Access needed when using the Gloo Platform provider
- apiGroups: - apiGroups:
- networking.gloo.solo.io - networking.gloo.solo.io
resources: resources:
- routetables - routetables
verbs: verbs:
- '*' - '*'
{{- end }}
{{- with .Values.providerRBAC.additionalRules }}
{{ toYaml . }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -273,6 +273,8 @@ providerRBAC:
contour: true contour: true
# -- Adds RBAC rules for the Gloo Platform provider, see `https://github.com/argoproj-labs/rollouts-plugin-trafficrouter-glooplatform/blob/main/README.md` # -- Adds RBAC rules for the Gloo Platform provider, see `https://github.com/argoproj-labs/rollouts-plugin-trafficrouter-glooplatform/blob/main/README.md`
glooPlatform: true glooPlatform: true
# -- Additional RBAC rules for others providers
additionalRules: []
dashboard: dashboard:
# -- Deploy dashboard server # -- Deploy dashboard server