k8s

package
v0.0.0-...-9f13f69 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 12 Imported by: 8

Documentation

Overview

Utility routines specific to Kubernetes.

Index

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 GetClient

func GetClient(kubeconfig string) (*kubernetes.Clientset, *midonet.Clientset, error)

GetClient builds and returns Kubernetes client.

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.

Jump to

Keyboard shortcuts

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