utils

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate added in v0.18.0

func Generate(size int) string

Generates random string

func GetClient

func GetClient() kubernetes.Interface

GetClient returns a k8s clientset to the request from inside of cluster

func GetClientOutOfCluster

func GetClientOutOfCluster() kubernetes.Interface

GetClientOutOfCluster returns a k8s clientset to the request from outside of cluster

func GetDefaultK8sConfig added in v0.18.0

func GetDefaultK8sConfig(configName string) (*rest.Config, error)

func GetObjectMetaData

func GetObjectMetaData(obj interface{}) meta_v1.ObjectMeta

GetObjectMetaData returns metadata of a given k8s object

Types

This section is empty.

Jump to

Keyboard shortcuts

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