kubernetes

package
v4.2.606+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOwnerRefToObject added in v0.3.8

func AddOwnerRefToObject(obj Metav1.Object, ownerRef Metav1.OwnerReference)

AddOwnerRefToObject appends the desired OwnerReference to the object

func GetClusterUID added in v0.9.1

func GetClusterUID(k8sClient client.Client) (string, error)

func GetPodByNamespaceNameWithConfig added in v0.3.8

func GetPodByNamespaceNameWithConfig(namespace, name string, config rest.Config) (Corev1.Pod, error)

GetPodByNamespaceNameWithConfig fetchs pod resource by namespace and name with k8s rest configuration

func GetPodName added in v0.9.1

func GetPodName() string

func GetRunningNamespace added in v0.3.4

func GetRunningNamespace() string

func IsOKDCluster

func IsOKDCluster() (bool, error)

func NewK8SClient added in v0.9.1

func NewK8SClient() (client.Client, error)

func NewOwnerReference added in v0.3.8

func NewOwnerReference(objType Metav1.TypeMeta, objMeta Metav1.ObjectMeta, isController bool) Metav1.OwnerReference

NewOwnerReference provides ownerReference reference to input object

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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