fix(argo-applicationset): Fix leader election rbac

Signed-off-by: Matteo Ruina <matteo.ruina@gmail.com>
This commit is contained in:
Matteo Ruina 2021-04-14 09:54:07 +02:00
parent 84120e6da3
commit 4e3f4be909
No known key found for this signature in database
GPG key ID: 8F558D438714A98F
3 changed files with 36 additions and 2 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v2
name: argocd-applicationset name: argocd-applicationset
description: A Helm chart for installing ArgoCD ApplicationSet description: A Helm chart for installing ArgoCD ApplicationSet
type: application type: application
version: 0.1.1 version: 0.1.2
appVersion: "v0.1.0" appVersion: "v0.1.0"
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png

View file

@ -27,6 +27,17 @@ NAME: my-release
Users of Helm v3 should set the `installCRDs` value to `false` to avoid warnings about nonexistent webhooks. Users of Helm v3 should set the `installCRDs` value to `false` to avoid warnings about nonexistent webhooks.
### Testing
Users can test the chart with [kind](https://kind.sigs.k8s.io/) and [ct](https://github.com/helm/chart-testing).
```console
kind create cluster
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
ct install --namespace argocd
```
## Values ## Values
| Key | Type | Default | Description | | Key | Type | Default | Description |

View file

@ -44,11 +44,22 @@ rules:
- "" - ""
resources: resources:
- secrets - secrets
- configmaps
verbs: verbs:
- get - get
- list - list
- watch - watch
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups: - apiGroups:
- apps - apps
- extensions - extensions
@ -58,6 +69,18 @@ rules:
- get - get
- list - list
- watch - watch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding kind: RoleBinding