surahman commented on pull request #3710: URL: https://github.com/apache/incubator-heron/pull/3710#issuecomment-932461676
If it so happens that a Role is required it might [not be feasible](https://unofficial-kubernetes.readthedocs.io/en/latest/admin/authorization/rbac/) to set it up programmatically: > A user can only create/update a role if they already have all the permissions contained in the role, at the same scope as the role (cluster-wide for a `ClusterRole`, within the same namespace or cluster-wide for a `Role`). There is an example of a Role that can read a specific ConfigMap: ```yaml rules: - apiGroups: [""] resources: ["configmaps"] resourceNames: ["my-config"] verbs: ["get"] ``` It might also be better to require the user to manually configure the Role in K8s than silently forcing it upon them. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
