Documentation ¶
Index ¶
- Variables
- func GetClient() kubernetes.Interface
- func GetClientOutOfCluster(apiServerHost, kubeconfigPath string) kubernetes.Interface
- func GetObjectMetaData(obj interface{}) metaV1.ObjectMeta
- func GetObjectTypeMetaData(obj interface{}) metaV1.TypeMeta
- func Init(config config.Config)
- func InitConfig()
- func Retry(f func() error, describe string, attempts int, sleep int) error
- type EventKind
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RtObjectMap is a map of resource name to respective runtime object RtObjectMap map[string]runtime.Object // ResourceGetterMap is a map of resource name to resource Getter interface ResourceGetterMap map[string]cache.Getter // AllowedEventKindsMap is a map to filter valid event kinds AllowedEventKindsMap map[EventKind]bool // KubeClient is a global kubernetes client to communicate to apiserver KubeClient kubernetes.Interface )
Functions ¶
func GetClient ¶
func GetClient() kubernetes.Interface
GetClient returns a k8s clientset to the request from inside of cluster
func GetClientOutOfCluster ¶
func GetClientOutOfCluster(apiServerHost, kubeconfigPath string) kubernetes.Interface
GetClientOutOfCluster returns a k8s clientset to the request from outside of cluster
func GetObjectMetaData ¶
func GetObjectMetaData(obj interface{}) metaV1.ObjectMeta
GetObjectMetaData returns metadata of the given object
func GetObjectTypeMetaData ¶
GetObjectTypeMetaData returns typemetadata of the given object
func InitConfig ¶
func InitConfig()
Types ¶
Click to show internal directories.
Click to hide internal directories.