k8sutil

package
v0.0.0-...-92d6864 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerProbeDirPath        = "/var/tmp/containerprobe"
	ContainerProbeOutputFilePath = ContainerProbeDirPath + "/result"
)

Variables

This section is empty.

Functions

func CreateProberCRD

func CreateProberCRD(clientset apiextensionsclient.Interface) error

func DeleteProber

func DeleteProber(kubecli kubernetes.Interface, ns, name string) error

func DeployProber

func DeployProber(kubecli kubernetes.Interface, pr *spec.Prober) error

func IPFromPod

func IPFromPod(ns, podname string) (string, error)

func IPFromService

func IPFromService(kubecli kubernetes.Interface, ns, svcName string) (string, error)

func IPsFromDeployments

func IPsFromDeployments() []string

func IPsFromReplicaSet

func IPsFromReplicaSet() []string

func InClusterConfig

func InClusterConfig() (*rest.Config, error)

func MustNewKubeClient

func MustNewKubeClient() kubernetes.Interface

func MustNewKubeExtClient

func MustNewKubeExtClient() apiextensionsclient.Interface

func UpdateProber

func UpdateProber() error

func WaitProberCRDCreated

func WaitProberCRDCreated(clientset apiextensionsclient.Interface) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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