identity

package
v1.25.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 43 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DexDeploymentName, DexServiceName, DexIngressName      = "kotsadm-dex", "kotsadm-dex", "kotsadm-dex"
	DexServiceAccountName, DexRoleName, DexRoleBindingName = "kotsadm-dex", "kotsadm-dex", "kotsadm-dex"
	DexSecretName                                          = "kotsadm-dex"
	DexPostgresSecretName                                  = "kotsadm-dex-postgres"
)
View Source
const (
	WildcardGroupID = "*"
)

Variables

View Source
var (
	ConfigConfigMapName = "kotsadm-identity-config"
	ConfigSecretName    = "kotsadm-identity-secret"
	ConfigSecretKeyName = "dexConnectors"
)
View Source
var (
	KotsIdentityLabelKey   = "kots.io/identity"
	KotsIdentityLabelValue = "true"

	DefaultGroups = []kotsv1beta1.IdentityGroup{DefaultGroup}
	DefaultGroup  = kotsv1beta1.IdentityGroup{
		ID:      WildcardGroupID,
		RoleIDs: []string{rbac.ClusterAdminRole.ID},
	}
)
View Source
var (
	AdditionalLabels = map[string]string{
		KotsIdentityLabelKey: KotsIdentityLabelValue,
	}
)

Functions

func Configure

func Configure(ctx context.Context, clientset kubernetes.Interface, namespace string, identityConfig kotsv1beta1.IdentityConfig, ingressConfig kotsv1beta1.IngressConfig) error

func Deploy

func Deploy(ctx context.Context, clientset kubernetes.Interface, namespace string, identityConfig kotsv1beta1.IdentityConfig, ingressConfig kotsv1beta1.IngressConfig, registryOptions *kotsadmtypes.KotsadmOptions) error

func DexCallbackURL

func DexCallbackURL(identitySpec kotsv1beta1.IdentityConfigSpec) string

func DexIssuerURL

func DexIssuerURL(identitySpec kotsv1beta1.IdentityConfigSpec) string

func EnsurePostgresSecret added in v1.25.0

func EnsurePostgresSecret(ctx context.Context, clientset kubernetes.Interface, namespace string) error

func GetConfig

func GetConfig(ctx context.Context, namespace string) (*kotsv1beta1.IdentityConfig, error)

func HTTPClient added in v1.25.0

func HTTPClient(ctx context.Context, namespace string, identityConfig kotsv1beta1.IdentityConfig) (*http.Client, error)

func IdentityDexConnectorsToDexTypeConnectors added in v1.25.0

func IdentityDexConnectorsToDexTypeConnectors(conns []kotsv1beta1.DexConnector) ([]dextypes.Connector, error)

func SetConfig

func SetConfig(ctx context.Context, namespace string, identityConfig kotsv1beta1.IdentityConfig) error

func Undeploy

func Undeploy(ctx context.Context, log *logger.Logger, clientset kubernetes.Interface, namespace string) error

func ValidateConfig

func ValidateConfig(ctx context.Context, namespace string, identityConfig kotsv1beta1.IdentityConfig, ingressConfig kotsv1beta1.IngressConfig) error

func ValidateConnection

func ValidateConnection(ctx context.Context, namespace string, identityConfig kotsv1beta1.IdentityConfig, ingressConfig kotsv1beta1.IngressConfig) error

Types

type ErrorConnection

type ErrorConnection struct {
	Message string
}

func (*ErrorConnection) Error

func (e *ErrorConnection) Error() string

Directories

Path Synopsis
types
dex

Jump to

Keyboard shortcuts

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