kubernetes

package
v0.0.0-...-09ac470 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCreatingReplicaSetName

func GetCreatingReplicaSetName(namespace, podName string) (string, error)

GetCreatingReplicaSetName returns the name of the replicaSet that created the pod with given name.

func GetNamespace

func GetNamespace() string

GetNamespace loads the namespace of the pod running this process. If the namespace is not found, (e.g. because the process is not running in kubernetes) an empty string is returned.

func GetPodIP

func GetPodIP(namespace, podName string) (string, error)

GetPodIP returns the IP address of the the pod with given name.

func IsRunningInKubernetes

func IsRunningInKubernetes() bool

IsRunningInKubernetes returns true if a Kubernetes environment is detected.

Types

type SerializedReference

type SerializedReference struct {
	k8s.TypeMeta `json:",inline"`
	// The reference to an object in the system.
	// +optional
	Reference k8s.ObjectReference `json:"reference,omitempty"`
}

SerializedReference is a reference to serialized object.

Jump to

Keyboard shortcuts

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