helpers

package
v0.0.0-...-cff4c14 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HypershiftDeploymentInfraIDLabel        string = "hypershift.openshift.io/infra-id"
	HypershiftDeploymentForceReconcileLabel string = "hypershift.openshift.io/force-reconcile"
	ClusterNameLabel                        string = "cluster.identitatem.io/name"
	IdentityProviderNameLabel               string = "identityprovider.identitatem.io/name"
	StrategyTypeLabel                       string = "identityprovider.identitatem.io/strategy-type"
	HostedClusterClusterClaim               string = "hostedcluster.hypershift.openshift.io"
	ConsoleURLClusterClaim                  string = "consoleurl.cluster.open-cluster-management.io"
	HostingClusterAnnotation                string = "import.open-cluster-management.io/hosting-cluster-name"
	PlacementStrategyLabel                  string = "auth.identitatem.io/placement-strategy"
)
View Source
const (
	AuthrealmFinalizer string = "authrealm.identitatem.io/cleanup"
)
View Source
const (
	OAuthRedirectURIsClusterClaimName string = "oauthredirecturis.openshift.io"
)

Variables

This section is empty.

Functions

func ClientSecretName

func ClientSecretName(
	authRealmObjectKey client.ObjectKey,
) string

func ClusterOAuthName

func ClusterOAuthName(
	authRealmObjectKey client.ObjectKey,
) string

func ConfigMapOriginalOAuthName

func ConfigMapOriginalOAuthName() string

func DexClientName

func DexClientName(
	authRealmObjectKey client.ObjectKey,
	clusterName string,
) string

func DexClientObjectKey

func DexClientObjectKey(
	authRealm *identitatemv1alpha1.AuthRealm,
	clusterName string,
) client.ObjectKey

func DexOperatorNamespace

func DexOperatorNamespace() string

func DexServerName

func DexServerName() string

func DexServerNamespace

func DexServerNamespace(authRealm *identitatemv1alpha1.AuthRealm) string

func GetAppsURL

func GetAppsURL(c client.Client, withPort bool) (string, string, error)

func GetClusterStatusIndex

func GetClusterStatusIndex(
	log logr.Logger,
	strategyStatus *identitatemv1alpha1.AuthRealmStrategyStatus,
	clusterName string) int

func GetKubeAPIServerAddress

func GetKubeAPIServerAddress(client client.Client) (string, error)

func GetStrategyStatusIndex

func GetStrategyStatusIndex(
	log logr.Logger,
	authRealm *identitatemv1alpha1.AuthRealm,
	strategyName string) int

func IDPConfigLabel

func IDPConfigLabel() string

func IsHostedCluster

func IsHostedCluster(mc *clusterv1.ManagedCluster) bool

func ManagedClusterViewOAuthName

func ManagedClusterViewOAuthName() string

func ManagedClusterViewOAuthOpenshiftName

func ManagedClusterViewOAuthOpenshiftName() string

func ManagedClusterViewOAuthOpenshiftNamespace

func ManagedClusterViewOAuthOpenshiftNamespace(clusterName string) string

func ManifestWorkHostedOAuthName

func ManifestWorkHostedOAuthName(clusterName string) string

func ManifestWorkOAuthName

func ManifestWorkOAuthName() string

func ManifestWorkOriginalOAuthName

func ManifestWorkOriginalOAuthName() string

func ManifestWorkSecretName

func ManifestWorkSecretName() string

func MergeStatusConditions

func MergeStatusConditions(conditions []metav1.Condition, newConditions ...metav1.Condition) []metav1.Condition

MergeStatusConditions returns a new status condition array with merged status conditions. It is based on newConditions, and merges the corresponding existing conditions if exists.

func PlacementStrategyName

func PlacementStrategyName(strategy *identitatemv1alpha1.Strategy,
	authRealm *identitatemv1alpha1.AuthRealm) string

func PlacementStrategyNameFromPlacementRefName

func PlacementStrategyNameFromPlacementRefName(strategyType string,
	placementRefName string) string

func RandomString

func RandomString(strSize int, randType RandomType) string

Types

type RandomType

type RandomType string
const (
	RandomTypeNumber   RandomType = "number"
	RandomTypeAlpha    RandomType = "alpha"
	RandomTypeAlphaNum RandomType = "alphanum"
	RandomTypePassword RandomType = "password"
)

Jump to

Keyboard shortcuts

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