admin

package
v1.2.48-rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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

func FindClusterAdminIDP(cluster *cmv1.Cluster, r *rosa.Runtime) (*cmv1.IdentityProvider, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL