identity

package
v1.109.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 28 Imported by: 2

Documentation

Index

Constants

View Source
const KotsFaviconBase64 = "" /* 2248-byte string literal not displayed */
View Source
const KotsLogoBase64 = "" /* 8256-byte string literal not displayed */
View Source
const KotsLogoURL = "" /* 8278-byte string literal not displayed */
View Source
const KotsStyleCSSBase64 = "" /* 14384-byte string literal not displayed */
View Source
const (
	KotsadmNamePrefix = "kotsadm"
)
View Source
const (
	WildcardGroupID = "*"
)

Variables

View Source
var (
	ConfigConfigMapName = "kotsadm-identity-config"
	ConfigSecretName    = "kotsadm-identity-secret"
	ConfigSecretKeyName = "dexConnectors"
)

Functions

func Configure

func Configure(ctx context.Context, clientset kubernetes.Interface, namespace string, identityConfig kotsv1beta1.IdentityConfig, ingressConfig kotsv1beta1.IngressConfig, proxyEnv map[string]string, applyAppBranding bool) error

func Deploy

func Deploy(
	ctx context.Context,
	clientset kubernetes.Interface,
	namespace string,
	identityConfig kotsv1beta1.IdentityConfig,
	ingressConfig kotsv1beta1.IngressConfig,
	registryConfig *kotsadmtypes.RegistryConfig,
	proxyEnv map[string]string,
	applyAppBranding bool,
) error

func DexCallbackURL

func DexCallbackURL(identityConfigSpec kotsv1beta1.IdentityConfigSpec) string

func DexIssuerURL

func DexIssuerURL(identityConfigSpec kotsv1beta1.IdentityConfigSpec) string

func GetConfig

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

func GetKotsadmOAuth2Config

func GetKotsadmOAuth2Config(ctx context.Context, clientset kubernetes.Interface, namespace string, provider oidc.Provider) (*oauth2.Config, error)

func GetKotsadmOIDCProvider

func GetKotsadmOIDCProvider(ctx context.Context, clientset kubernetes.Interface, namespace string) (*oidc.Provider, error)

func SetConfig

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

func Undeploy

func Undeploy(ctx context.Context, 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

Jump to

Keyboard shortcuts

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