k8sutil

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NdmNamespace is the namespace of the node-disk-manager
	NdmNamespace = core_v1.NamespaceDefault // Redeclared in ndm_util/ndm_util.go
)

Variables

This section is empty.

Functions

func GetContainerStateInNdmPod

func GetContainerStateInNdmPod(waitTimeUnit time.Duration) (core_v1.ContainerState, error)

GetContainerStateInNdmPod returns the state of the first container of the supplied index.

:param waitTimeUnit: maximum time duration to get the container's state.
                   This method does not very strictly obey this param.
:return: k8s.io/api/core/v1.ContainerState: state of the container.

func GetNdmPods

func GetNdmPods() ([]core_v1.Pod, error)

GetNdmPods returns pods of node-disk-manager if it can get them within timeout of 2 minutes. :return: kubernetes.client.models.v1_pod.V1Pod: node-disk-manager Pod object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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