Open ogirardot opened 9 months ago
Create role and rolebinding.
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: default
namespace: vault-secrets-operator-system
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- get
- delete
- deletecollection
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- watch
- list
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: default
namespace: vault-secrets-operator-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: default
subjects:
- kind: ServiceAccount
name: default
namespace: vault-secrets-operator-system
Works for me.
I have the same issue. I agree that it would be much better if the test used the same SA as VSO
Describe the bug When launching the helm tests, they do not run as a service account with the proper credentials and they fail with :
To Reproduce Steps to reproduce the behavior:
Expected behavior Maybe the test should use the same SA that vso uses ?