Documentation ¶
Index ¶
- func AddOwnerRefToObject(obj metav1.Object, ownerRef metav1.OwnerReference)
- func GetPodByNamespaceNameWithConfig(namespace, name string, config rest.Config) (corev1.Pod, error)
- func GetRunningNamespace() string
- func IsOKDCluster() (bool, error)
- func NewOwnerReference(objType metav1.TypeMeta, objMeta metav1.ObjectMeta, isController bool) metav1.OwnerReference
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 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 GetRunningNamespace ¶ added in v0.3.4
func GetRunningNamespace() string
func IsOKDCluster ¶
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.
Click to show internal directories.
Click to hide internal directories.