Versions in this module Expand all Collapse all v4 v4.18.0 Dec 19, 2024 v4.17.0 Sep 25, 2024 Changes in this version + const ControlPlaneIDLabel + const LeaseName + const OperatorNamespaceEnvVar + func GetOperatorNamespace() (string, error) + type CachedTypeResolver struct + func (r *CachedTypeResolver) GetType(ctx context.Context) (Type, error) + type DefaultTypeResolver struct + func (r DefaultTypeResolver) GetType(ctx context.Context) (Type, error) + type LeaderElectionResolver interface + Resolve func(ctx context.Context) (configv1.LeaderElection, error) + func NewLeaderElectionResolver(snoCheck SNOCheck, enableLeaderElection bool, operatorNamespace string) (LeaderElectionResolver, error) + type SNOCheck interface + IsSNO func(ctx context.Context) (bool, error) + func NewMasterSNOCheck(clnt client.Client) SNOCheck + type Type string + const TypeMicroShift + const TypeOCP + const TypeOther + type TypeResolver interface + GetType func(ctx context.Context) (Type, error) + func NewTypeResolver(clnt client.Client) TypeResolver