Documentation ¶
Index ¶
Constants ¶
View Source
const ( MonoskopeDomain = "monoskope.io" ClusterRoleBindingKind = "ClusterRoleBinding" ClusterRoleKind = "ClusterRole" )
Variables ¶
View Source
var AvailableRoles = []K8sRole{ DefaultRole, AdminRole, OnCallRole, }
A list of all existing cluster roles.
Functions ¶
func GetK8sName ¶ added in v0.4.13
GetK8sName returns a sanitized version of the input string which is allowed to be used as a kubernetes namespace or username.
func NewClusterRoleBinding ¶ added in v0.4.13
func NewClusterRoleBinding(clusterRoleName, userName, userNamePrefix string, labels map[string]string) *rbac.ClusterRoleBinding
NewClusterRoleBinding creates a new K8s API ClusterRoleBinding resource
func ValidateRole ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.