-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RBAC manifest creation for Hosted Cluster admin personas (#1014)
* RBAC manifest creation for Hosted Cluster admin personas introduce RBAC artifact generation for hypershift admin personas / services those artifacts are generated when the `--enable-admin-rbac-generation` flag is provided during `hypershift install` persona: hypershift-client used by a client leveraging hypershift as a service to create hosted clusters * hypershift-client ClusterRole full permissions on the hostedcluster and nodepool CRs * hypershift-client ServiceAccount * hypershift-client ClusterRoleBinding binds the hypershift-client ClusterRole to hypershift-client SA and Group Ref the groups itself must be provided by other means persona: hypershift-reader used by admins to investigate hosted clusters and the hypershift operator. * hypershift-reader ClusterRole same permission subjects as the hypershift-operator ClusterRole but restricted to get, list, watch. access to secrets is not granted * hypershift-reader ClusterRoleBinding binds the hypershift-reader ClusterRole to a Group called hypershift-readers the group itself must be provided by other means Refs: * https://issues.redhat.com/browse/HOSTEDCP-306 * https://issues.redhat.com/browse/APPSRE-4335 Signed-off-by: Gerd Oberlechner <goberlec@redhat.com> * renamed hypershift-reader -> hypershift-readers * list hypershift-readers clusterrole permissions explicitely instead of copy+modify the hypershift-operator cluster role, list the permissions required for the hypershift-readers cluster role explicitely Signed-off-by: Gerd Oberlechner <goberlec@redhat.com>
- Loading branch information
Showing
4 changed files
with
435 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.