utils

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProvider added in v0.8.0

func GetProvider(cluster *clusterv1.Cluster) string

func ManagementCluster

func ManagementCluster(ctx context.Context, c client.Client) (*clusterv1.Cluster, error)

ManagementCluster returns a Cluster object if c is pointing to a management cluster, otherwise returns nil.

func NewLabels added in v0.9.0

func NewLabels(fs ...LabelFn) map[string]string

Types

type LabelFn added in v0.9.0

type LabelFn func(labels map[string]string)

func WithClusterName added in v0.9.0

func WithClusterName(clusterName string) LabelFn

func WithMove added in v0.9.0

func WithMove() LabelFn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL