Documentation ¶
Index ¶
Constants ¶
View Source
const ClusterAdminGroupname = "cluster-admins"
View Source
const ClusterAdminIDPname = "cluster-admin"
View Source
const ClusterAdminUsername = "cluster-admin"
View Source
const DedicatedAdminGroupname = "dedicated-admins"
View Source
const GeneratingRandomPasswordString = "Generating random password"
View Source
const MaxPasswordLength = 23
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "admin", Short: "Creates an admin user to login to the cluster", Long: "Creates a cluster-admin user with an auto-generated password to login to the cluster", Example: ` # Create an admin user to login to the cluster rosa create admin -c mycluster -p MasterKey123`, Run: run, Args: cobra.NoArgs, }
Functions ¶
func FindClusterAdminIDP ¶ added in v1.2.37
find the htpasswd idp "cluster-admin"
func FindIDPWithAdmin ¶ added in v1.2.37
func FindIDPWithAdmin(cluster *cmv1.Cluster, r *rosa.Runtime) ( *cmv1.IdentityProvider, *cmv1.HTPasswdUserList, error)
find the idp which contains "cluster-admin" user
func HasClusterAdmin ¶ added in v1.2.24
func HasClusterAdmin(userList *cmv1.HTPasswdUserList) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.