Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What RBAC permissions does helmtester need? #563

Open
hobbsh opened this issue Apr 23, 2020 · 3 comments
Open

What RBAC permissions does helmtester need? #563

hobbsh opened this issue Apr 23, 2020 · 3 comments
Labels
question Further information is requested

Comments

@hobbsh
Copy link
Contributor

hobbsh commented Apr 23, 2020

Hi,

Really impressed with Flagger and everything it can do! I'm wondering what the minimum RBAC policy required is for helmtester. Does this depend on the chart being tested?

@stefanprodan
Copy link
Member

It depends on how you define the tests, if they are pods then helmtester needs access to create, get, list, delete pods as well as fetching the logs from those pods. You can determine the right RBAC by creating an account and run helm test under that account.

@stefanprodan stefanprodan added the question Further information is requested label Apr 23, 2020
@hobbsh
Copy link
Contributor Author

hobbsh commented Apr 24, 2020

Thanks for the quick response! I'll see what I can figure out.

@kobellem
Copy link

kobellem commented May 12, 2023

I've got the helm test to work with the following ClusterRole:

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: flagger-loadtester
rules:
- apiGroups: [""]
  resources: ["pods"]
  verbs: ["create", "get", "list", "watch", "delete"]
- apiGroups: [""]
  resources: ["secrets"]
  verbs: ["list", "update"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants