Documentation ¶
Index ¶
- Constants
- func FilterClusterOperator(name string) predicate.Predicate
- func FilterControlPlaneMachineSet(controlPlaneMachineSetName, namespace string) predicate.Predicate
- func FilterControlPlaneMachines(namespace string) predicate.Predicate
- func FilterControlPlaneNodes() predicate.Predicate
- func FilterInfrastructure(infraName string) predicate.Predicate
- func GetAllowedTLSCipherSuites() []uint16
- func GetInfrastructure(ctx context.Context, cl client.Client) (*configv1.Infrastructure, error)
- func GetLeaderElectionDefaults(restConfig *rest.Config, leaderElection configv1.LeaderElection) configv1.LeaderElection
- func GetReleaseVersion() string
- func ObjToControlPlaneMachineSet(controlPlaneMachineSetName, namespace string) func(context.Context, client.Object) []reconcile.Request
- func Ptr[T any](v T) *T
- func SetupFeatureGateAccessor(mgr manager.Manager) (featuregates.FeatureGateAccess, error)
Constants ¶
const ( // InfrastructureName is the name of the Infrastructure, // as Infrastructure is a singleton within the cluster. InfrastructureName = "cluster" )
Variables ¶
This section is empty.
Functions ¶
func FilterClusterOperator ¶
FilterClusterOperator filters cluster operator requests to just the one with the name provided.
func FilterControlPlaneMachineSet ¶
FilterControlPlaneMachineSet filters control plane machine set requests to just the singleton within the namespace provided.
func FilterControlPlaneMachines ¶
FilterControlPlaneMachines filters machine requests to just the machines that present as control plane machines, i.e. they are labelled with the correct labels to identify them as control plane machines.
func FilterControlPlaneNodes ¶
FilterControlPlaneNodes filters nodes requests to just the nodes that present as control plane nodes and that have had a transition in the NodeReady condition.
func FilterInfrastructure ¶
FilterInfrastructure filters out responding to any Infrastructure object that is not the one specified.
func GetAllowedTLSCipherSuites ¶
func GetAllowedTLSCipherSuites() []uint16
GetAllowedTLSCipherSuites returns a slice of security vetted TLS CipherSuites.
func GetInfrastructure ¶
GetInfrastructure returns the infrastructure matching the infrastructureName.
func GetLeaderElectionDefaults ¶
func GetLeaderElectionDefaults(restConfig *rest.Config, leaderElection configv1.LeaderElection) configv1.LeaderElection
GetLeaderElectionDefaults returns leader election configs defaults based on the cluster topology.
func GetReleaseVersion ¶
func GetReleaseVersion() string
GetReleaseVersion returns a string representing the release version.
func ObjToControlPlaneMachineSet ¶
func ObjToControlPlaneMachineSet(controlPlaneMachineSetName, namespace string) func(context.Context, client.Object) []reconcile.Request
ObjToControlPlaneMachineSet maps any object to the control plane machine set singleton in the namespace provided.
func SetupFeatureGateAccessor ¶
func SetupFeatureGateAccessor(mgr manager.Manager) (featuregates.FeatureGateAccess, error)
SetupFeatureGateAccessor Setup FeatureGateAccess instance.
Types ¶
This section is empty.