Documentation
¶
Index ¶
- func GetProvider(cluster *clusterv1.Cluster) string
- func ManagementCluster(ctx context.Context, c client.Reader) (*clusterv1.Cluster, error)
- func ManagementOrFutureManagementCluster(ctx context.Context, c client.Reader) (*clusterv1.Cluster, error)
- func NewLabels(fs ...LabelFn) map[string]string
- type LabelFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProvider ¶ added in v0.8.0
func ManagementCluster ¶
ManagementCluster returns a Cluster object if c is pointing to a management cluster, otherwise returns nil.
func ManagementOrFutureManagementCluster ¶ added in v0.30.0
func ManagementOrFutureManagementCluster(ctx context.Context, c client.Reader) (*clusterv1.Cluster, error)
ManagementOrFutureManagementCluster returns a Cluster object to either the management cluster, when c is a client to the management cluster. Or a cluster that is assumed to become the management cluster in the future, when is c is a client to a bootstrap cluster and there is only a single Cluster object.
Types ¶
Click to show internal directories.
Click to hide internal directories.