package conditions
import "k8s.io/kubernetes/pkg/client/conditions"
Index ¶
- Variables
- func PodCompleted(event watch.Event) (bool, error)
- func PodContainerRunning(containerName string) watch.ConditionFunc
- func PodNotPending(event watch.Event) (bool, error)
- func PodRunning(event watch.Event) (bool, error)
- func PodRunningAndReady(event watch.Event) (bool, error)
- func ServiceAccountHasSecrets(event watch.Event) (bool, error)
Variables ¶
ErrContainerTerminated is returned by PodContainerRunning in the intermediate state where the pod indicates it's still running, but its container is already terminated
ErrPodCompleted is returned by PodRunning or PodContainerRunning to indicate that the pod has already reached completed state.
Functions ¶
func PodCompleted ¶
PodCompleted returns true if the pod has run to completion, false if the pod has not yet reached running state, or an error in any other case.
func PodContainerRunning ¶
func PodContainerRunning(containerName string) watch.ConditionFunc
PodContainerRunning returns false until the named container has ContainerStatus running (at least once), and will return an error if the pod is deleted, runs to completion, or the container pod is not available.
func PodNotPending ¶
PodNotPending returns true if the pod has left the pending state, false if it has not, or an error in any other case (such as if the pod was deleted).
func PodRunning ¶
PodRunning returns true if the pod is running, false if the pod has not yet reached running state, returns ErrPodCompleted if the pod has run to completion, or an error in any other case.
func PodRunningAndReady ¶
PodRunningAndReady returns true if the pod is running and ready, false if the pod has not yet reached those states, returns ErrPodCompleted if the pod has run to completion, or an error in any other case.
func ServiceAccountHasSecrets ¶
ServiceAccountHasSecrets returns true if the service account has at least one secret, false if it does not, or an error.
Source Files ¶
conditions.go
- Version
- v1.7.4
- Published
- Aug 17, 2017
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 3 minutes ago –
Tools for package owners.