Documentation ¶
Index ¶
- Constants
- func ClientSecretName(authRealmObjectKey client.ObjectKey) string
- func ClusterOAuthName(authRealmObjectKey client.ObjectKey) string
- func ConfigMapOriginalOAuthName() string
- func CreateStrategy(c client.Client, scheme *runtime.Scheme, t identitatemv1alpha1.StrategyType, ...) error
- func DexClientName(authRealmObjectKey client.ObjectKey, clusterName string) string
- func DexClientObjectKey(authRealm *identitatemv1alpha1.AuthRealm, clusterName string) client.ObjectKey
- func DexOperatorNamespace() string
- func DexServerName() string
- func DexServerNamespace(authRealm *identitatemv1alpha1.AuthRealm) string
- func GetAppsURL(c client.Client, withPort bool) (string, string, error)
- func GetAuthrealmFromStrategy(c client.Client, strategy *identitatemv1alpha1.Strategy) (*identitatemv1alpha1.AuthRealm, error)
- func GetClusterStatusIndex(log logr.Logger, strategyStatus *identitatemv1alpha1.AuthRealmStrategyStatus, ...) int
- func GetHypershiftDeployment(c client.Client, clusterName string) (*hypershiftdeploymentv1alpha1.HypershiftDeployment, error)
- func GetKubeAPIServerAddress(client client.Client) (string, error)
- func GetStrategyStatusIndex(log logr.Logger, authRealm *identitatemv1alpha1.AuthRealm, strategyName string) int
- func IDPConfigLabel() string
- func IsHostedCluster(mc *clusterv1.ManagedCluster) bool
- func ManagedClusterViewOAuthName() string
- func ManagedClusterViewOAuthOpenshiftName() string
- func ManagedClusterViewOAuthOpenshiftNamespace(clusterName string) string
- func ManifestWorkHostedOAuthName(clusterName string) string
- func ManifestWorkOAuthName() string
- func ManifestWorkOriginalOAuthName() string
- func ManifestWorkSecretName() string
- func MergeStatusConditions(conditions []metav1.Condition, newConditions ...metav1.Condition) []metav1.Condition
- func PlacementStrategyName(strategy *identitatemv1alpha1.Strategy, ...) string
- func PlacementStrategyNameFromPlacementRefName(strategyType string, placementRefName string) string
- func RandomString(strSize int, randType RandomType) string
- func StrategyName(authRealm *identitatemv1alpha1.AuthRealm, t identitatemv1alpha1.StrategyType) string
- type RandomType
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 ClusterOAuthName ¶
func ConfigMapOriginalOAuthName ¶
func ConfigMapOriginalOAuthName() string
func CreateStrategy ¶
func CreateStrategy(c client.Client, scheme *runtime.Scheme, t identitatemv1alpha1.StrategyType, authRealm *identitatemv1alpha1.AuthRealm) error
func DexClientName ¶
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 GetAuthrealmFromStrategy ¶
func GetAuthrealmFromStrategy(c client.Client, strategy *identitatemv1alpha1.Strategy) (*identitatemv1alpha1.AuthRealm, error)
func GetClusterStatusIndex ¶
func GetClusterStatusIndex( log logr.Logger, strategyStatus *identitatemv1alpha1.AuthRealmStrategyStatus, clusterName string) int
func GetHypershiftDeployment ¶
func GetHypershiftDeployment(c client.Client, clusterName string) (*hypershiftdeploymentv1alpha1.HypershiftDeployment, error)
func GetStrategyStatusIndex ¶
func IDPConfigLabel ¶
func IDPConfigLabel() string
func IsHostedCluster ¶
func IsHostedCluster(mc *clusterv1.ManagedCluster) bool
func ManagedClusterViewOAuthName ¶
func ManagedClusterViewOAuthName() string
func ManagedClusterViewOAuthOpenshiftName ¶
func ManagedClusterViewOAuthOpenshiftName() 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 RandomString ¶
func RandomString(strSize int, randType RandomType) string
func StrategyName ¶
func StrategyName(authRealm *identitatemv1alpha1.AuthRealm, t identitatemv1alpha1.StrategyType) string
Types ¶
type RandomType ¶
type RandomType string
const ( RandomTypeNumber RandomType = "number" RandomTypeAlpha RandomType = "alpha" RandomTypeAlphaNum RandomType = "alphanum" RandomTypePassword RandomType = "password" )
Click to show internal directories.
Click to hide internal directories.