idp

package
v1.2.11 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ClusterAdminUsername = "cluster-admin"
View Source
const HTPasswdIDPName = "htpasswd"

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, r *rosa.Runtime) (
	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
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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