Documentation ¶
Index ¶
- func BoolValue(flag string) bool
- func ContainsString(slice []string, s string) bool
- func PrepareK8sRestConfigFromClusterCR(ctx context.Context, cr *v1alpha1.Cluster, secret *v1.Secret) (*rest.Config, error)
- func RemoveString(slice []string, s string) (result []string)
- func SanitizeName(name string) string
- func StopIfError(err error)
- func Token(secret *v1.Secret)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
ContainsString Helper functions to check from a slice of strings.
func PrepareK8sRestConfigFromClusterCR ¶
func PrepareK8sRestConfigFromClusterCR(ctx context.Context, cr *v1alpha1.Cluster, secret *v1.Secret) (*rest.Config, error)
PrepareK8sRestConfigFromClusterCR
func RemoveString ¶
RemoveString Helper function to check remove string
func SanitizeName ¶
SanitizeName sanitizes the string name based on K8s naming convention.
func StopIfError ¶
func StopIfError(err error)
StopIfError is a convenient function to stop processing if there is any error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.