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

Define role per organization in the User CR #39

Open
angelbarrera92 opened this issue Sep 27, 2022 · 0 comments
Open

Define role per organization in the User CR #39

angelbarrera92 opened this issue Sep 27, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@angelbarrera92
Copy link
Member

It would be nice to add a new feature in the User CRD to allow defining a different role other than viewer.

---
apiVersion: grafana.k8spin.cloud/v1
kind: User
metadata:
  name: angelbarrera92
  namespace: monitoring
spec:
  email: [email protected]
  organizations:
    - k8spin.cloud

Could be nice to have a new structure in the organizations list other than a list of strings:

---
apiVersion: grafana.k8spin.cloud/v1
kind: User
metadata:
  name: angelbarrera92
  namespace: monitoring
spec:
  email: [email protected]
  organizations:
    - name: k8spin.cloud
      role: admin
    - name: example.com
      role: viewer
    - name: default.io

If no role is set, viewer should be the default one. Consider that a User could be viewer in an organization and admin in a different one.

@angelbarrera92 angelbarrera92 added enhancement New feature or request good first issue Good for newcomers labels Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant