Documentation ¶
Overview ¶
Utility routines specific to Kubernetes.
Index ¶
- func AddNodeAnnotation(client *kubernetes.Clientset, name, key, value string) error
- func AddPodAnnotation(client *kubernetes.Clientset, namespace, name, key, value string) error
- func DeletePodAnnotation(client *kubernetes.Clientset, namespace, name, key string) error
- func GetClient(kubeconfig string) (*kubernetes.Clientset, *midonet.Clientset, error)
- func GetReferenceForEvent(obj runtime.Object) (*v1.ObjectReference, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNodeAnnotation ¶
func AddNodeAnnotation(client *kubernetes.Clientset, name, key, value string) error
func AddPodAnnotation ¶
func AddPodAnnotation(client *kubernetes.Clientset, namespace, name, key, value string) error
func DeletePodAnnotation ¶
func DeletePodAnnotation(client *kubernetes.Clientset, namespace, name, key string) error
func GetReferenceForEvent ¶
func GetReferenceForEvent(obj runtime.Object) (*v1.ObjectReference, error)
GetReferenceForEvent returns a reference to the given object, tweaked to be used for events.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.