Documentation ¶
Index ¶
Constants ¶
View Source
const ControlPlaneIDLabel = "node-role.kubernetes.io/control-plane"
ControlPlaneIDLabel identifies a control plane node by the given label, see https://kubernetes.io/docs/reference/labels-annotations-taints/#node-role-kubernetes-io-control-plane
View Source
const LeaseName = "1136b8a6.topolvm.io"
View Source
const OperatorNamespaceEnvVar = "NAMESPACE"
Variables ¶
This section is empty.
Functions ¶
func GetOperatorNamespace ¶
GetOperatorNamespace returns the Namespace the operator should be watching for changes
Types ¶
type CachedTypeResolver ¶
type CachedTypeResolver struct { TypeResolver // contains filtered or unexported fields }
type DefaultTypeResolver ¶
type LeaderElectionResolver ¶
type LeaderElectionResolver interface {
Resolve(ctx context.Context) (configv1.LeaderElection, error)
}
func NewLeaderElectionResolver ¶
func NewLeaderElectionResolver( snoCheck SNOCheck, enableLeaderElection bool, operatorNamespace string, ) (LeaderElectionResolver, error)
NewLeaderElectionResolver returns the correct LeaderElectionResolver Settings for Multi- or SNO-Clusters based on the amount of master nodes discovered in the cluster. If there is exactly one control-plane/master node, the returned LeaderElectionResolver settings are optimized for SNO deployments.
type SNOCheck ¶
func NewMasterSNOCheck ¶
type TypeResolver ¶
func NewTypeResolver ¶
func NewTypeResolver(clnt client.Client) TypeResolver
Click to show internal directories.
Click to hide internal directories.