Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ac542f

Browse files
authored
chore(argo-cd): Provide Casbin matcher explicitly (#2445)
Signed-off-by: yu-croco <[email protected]>
1 parent 53620e3 commit 5ac542f

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

charts/argo-cd/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: v2.9.5
33
kubeVersion: ">=1.23.0-0"
44
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
55
name: argo-cd
6-
version: 5.53.5
6+
version: 5.53.6
77
home: https://github.com/argoproj/argo-helm
88
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
99
sources:
@@ -26,5 +26,5 @@ annotations:
2626
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
2727
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
2828
artifacthub.io/changes: |
29-
- kind: fixed
30-
description: Fix fail to render `.Values.configs.secret.azureDevops`
29+
- kind: added
30+
description: Provide Casbin matcher explicitly

charts/argo-cd/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@ NAME: my-release
485485
| configs.params.create | bool | `true` | Create the argocd-cmd-params-cm configmap If false, it is expected the configmap will be created by something else. |
486486
| configs.rbac."policy.csv" | string | `''` (See [values.yaml]) | File containing user-defined policies and role definitions. |
487487
| configs.rbac."policy.default" | string | `""` | The name of the default role which Argo CD will falls back to, when authorizing API requests (optional). If omitted or empty, users may be still be able to login, but will see no apps, projects, etc... |
488+
| configs.rbac."policy.matchMode" | string | `"glob"` | Matcher function for Casbin, `glob` for glob matcher and `regex` for regex matcher. |
488489
| configs.rbac.annotations | object | `{}` | Annotations to be added to argocd-rbac-cm configmap |
489490
| configs.rbac.create | bool | `true` | Create the argocd-rbac-cm configmap with ([Argo CD RBAC policy]) definitions. If false, it is expected the configmap will be created by something else. Argo CD will not work if there is no configmap created with the name above. |
490491
| configs.rbac.scopes | string | `"[groups]"` | OIDC scopes to examine during rbac enforcement (in addition to `sub` scope). The scope value can be a string, or a list of strings. |

charts/argo-cd/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ configs:
303303
# The scope value can be a string, or a list of strings.
304304
scopes: "[groups]"
305305

306+
# -- Matcher function for Casbin, `glob` for glob matcher and `regex` for regex matcher.
307+
policy.matchMode: "glob"
308+
306309
# GnuPG public keys for commit verification
307310
## Ref: https://argo-cd.readthedocs.io/en/stable/user-guide/gpg-verification/
308311
gpg:

0 commit comments

Comments
 (0)