Skip to content

Define role per organization in the User CR #39

Description

@angelbarrera92

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: angelbarrera92@yopmail.com
  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: angelbarrera92@yopmail.com
  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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions