key

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppLabel                     = "app.kubernetes.io/name"
	AdminRoleName                = "cluster-admin"
	DexAppLabelValue             = "dex-app"
	AuthConfigName               = "default-auth-config"
	DexConfigName                = "default-dex-config"
	DexOperatorFinalizer         = "dex-operator.finalizers.giantswarm.io/app-controller"
	DexOperatorLabelValue        = "dex-operator"
	ClusterValuesConfigmapSuffix = "cluster-values"
	ValuesConfigMapKey           = "values"
	MCDexAppDefaultName          = "dex-app"
	MCDexAppDefaultNamespace     = "giantswarm"
	BaseDomainKey                = "baseDomain"
	ConnectorsKey                = "connectors"
	DexResourceURI               = "https://dex.giantswarm.io"
	OwnerGiantswarm              = "giantswarm"
	OwnerCustomer                = "customer"
	OwnerGiantswarmDisplayName   = "Giant Swarm"
	OwnerCustomerDisplayName     = "Customer"

	SecretValidityMonths       = 3
	CredentialRenewalThreshold = 30 * 24 * time.Hour // 30 days before expiry
)

Variables

This section is empty.

Functions

func DexLabelSelector

func DexLabelSelector() metav1.LabelSelector

func GetAuthConfigName added in v0.6.0

func GetAuthConfigName(name string) string

func GetDefaultConnectorDescription added in v0.7.0

func GetDefaultConnectorDescription(connectorDisplayName string, owner string) string

func GetDexConfigName added in v0.4.0

func GetDexConfigName(name string) string

func GetDexOperatorName

func GetDexOperatorName(managementClusterName string) string

func GetIdentifierURI

func GetIdentifierURI(name string) string

func GetIdpAppName

func GetIdpAppName(managementClusterName string, namespace string, name string) string

func GetIssuerAddress

func GetIssuerAddress(clusterDomain string) string

func GetOwnerDisplayName added in v0.7.0

func GetOwnerDisplayName(owner string) string

func GetProviderName

func GetProviderName(owner string, name string) string

func GetRedirectURI

func GetRedirectURI(issuerAddress string) string

func GetVintageClusterDomain

func GetVintageClusterDomain(baseDomain string) string

func IsManagementClusterDexApp added in v0.14.0

func IsManagementClusterDexApp(app *v1alpha1.App) bool

IsManagementClusterDexApp checks if the app is the management cluster dex app Moved from AppReconciler as it has no dependencies on reconciler fields

func MCDexDefaultNamespacedName added in v0.3.6

func MCDexDefaultNamespacedName() types.NamespacedName

Types

This section is empty.

Jump to

Keyboard shortcuts

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