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

Expose apiGroup property #84

Open
stan-sz opened this issue Feb 17, 2022 · 0 comments
Open

Expose apiGroup property #84

stan-sz opened this issue Feb 17, 2022 · 0 comments

Comments

@stan-sz
Copy link
Contributor

stan-sz commented Feb 17, 2022

For k8s resources like see how apiGroup could be used in a real-world scenario:

resource clusterRole 'rbac.authorization.k8s.io/ClusterRole@v1' = {
  metadata: {
    name: 'cluster-role'
  }
   rules: [
     {
       apiGroups: [
       ]
       resources: [
        ]
       verbs: [
        ]
     }
   ]
}

resource crb 'rbac.authorization.k8s.io/ClusterRoleBinding@v1' = {
  roleRef: {
    apiGroup: 'rbac.authorization.k8s.io' // ideally: clusterRole.apiGroup
    kind: clusterRole.kind
    name: clusterRole.metadata.name
  }
  metadata: {
    name: 'cluster-rolebinding'
  }
  subjects: [
    {
      kind: 'Group'
      name: clusterReaderGroupId
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant