Documentation ¶
Index ¶
- Constants
- Variables
- func CreateHTPasswdUser(username, password string) *cmv1.HTPasswdUserBuilder
- func FindExistingHTPasswdIDP(cluster *cmv1.Cluster, ocmClient *ocm.Client) (htpasswdIDP *cmv1.IdentityProvider, userList *cmv1.HTPasswdUserList)
- func GenerateIdpName(idpType string, idps []IdentityProvider) string
- func HasClusterAdmin(userList *cmv1.HTPasswdUserList) bool
- type IdentityProvider
Constants ¶
View Source
const ClusterAdminUsername = "cluster-admin"
Variables ¶
View Source
var Cmd = &cobra.Command{
Use: "idp",
Short: "Add IDP for cluster",
Long: "Add an Identity providers to determine how users log into the cluster.",
Example: ` # Add a GitHub identity provider to a cluster named "mycluster"
rosa create idp --type=github --cluster=mycluster
# Add an identity provider following interactive prompts
rosa create idp --cluster=mycluster --interactive`,
Run: run,
}
Functions ¶
func CreateHTPasswdUser ¶ added in v1.1.12
func CreateHTPasswdUser(username, password string) *cmv1.HTPasswdUserBuilder
func FindExistingHTPasswdIDP ¶ added in v1.1.12
func FindExistingHTPasswdIDP(cluster *cmv1.Cluster, ocmClient *ocm.Client) ( htpasswdIDP *cmv1.IdentityProvider, userList *cmv1.HTPasswdUserList)
func GenerateIdpName ¶
func GenerateIdpName(idpType string, idps []IdentityProvider) string
func HasClusterAdmin ¶ added in v1.1.12
func HasClusterAdmin(userList *cmv1.HTPasswdUserList) bool
Types ¶
type IdentityProvider ¶
type IdentityProvider interface {
Name() string
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.