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 ¶
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.
Click to show internal directories.
Click to hide internal directories.