Documentation ¶
Index ¶
- Constants
- func CheckNamespacedName(name string) bool
- func Filter[T any](ss []T, test func(T) bool) (ret []T)
- func GetHarvesterClientFromSecret(secret *corev1.Secret) (*hvclientset.Clientset, error)
- func GetNamespacedName(name string, alternativeTargetNS string) (error, types.NamespacedName)
- func GetSecretForHarvesterConfig(ctx context.Context, cluster *infrav1.HarvesterCluster, cl client.Client) (*corev1.Secret, error)
- func Healthcheck(config *clientcmdapi.Config) (bool, error)
- func MergeCloudInitData(cloudInits ...string) ([]byte, error)
- func NewTrue() *bool
- func RandomID() string
Constants ¶
View Source
const (
ConfigSecretDataKey = "kubeconfig"
)
Variables ¶
This section is empty.
Functions ¶
func CheckNamespacedName ¶ added in v0.1.1
CheckNamespacedName checks if the given string is in the format of "namespace/name".
func GetHarvesterClientFromSecret ¶
func GetHarvesterClientFromSecret(secret *corev1.Secret) (*hvclientset.Clientset, error)
func GetNamespacedName ¶ added in v0.1.1
func GetNamespacedName(name string, alternativeTargetNS string) (error, types.NamespacedName)
GetNamespacedName returns the namespace and name from the given string in the format of "namespace/name".
func Healthcheck ¶
func Healthcheck(config *clientcmdapi.Config) (bool, error)
func MergeCloudInitData ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.