Skip to main content

wf wait

wf wait

Waits for one of more conditions to be met

Synopsis

Provides the ability to wait for a resource in Wayfinder to meet a specific state. At present the only states supported are 'condition' and 'jsonpath'. The command will continue to poll the resource until all the conditions are met or the timeout is reached.

wf wait RESOURCE NAME --for=TYPE=RESOURCE[=VALUE] [flags]

Examples


# Wait for the cluster and authentication module conditions to be ready
$ wf wait cluster mycluster --for=condition=Ready --for=condition=AuthenticationModuleReady

# Wait for the value to be present
$ wf wait cluster mycluster --for=jsonpath='{.status.clusterID}'

# Wait for the value to equal
$ wf wait cluster mycluster --for=jsonpath='{.status.clusterID}'=1234

Options

      --for strings         The definition of a condition TYPE=RESOURCE[=VALUE]
-h, --help help for wait
--interval duration The time duration between checking for the conditions (default 5s)
--timeout duration The maximum time to wait for the conditions to be met (default 5m0s)

Options inherited from parent commands

      --debug              Debug / trace logging (default: false)
--force Force operation to happen (default: false)
--no-wait Do not wait for resources to provision
-o, --output string Output format of the resource (json,yaml,table) (default "table")
--profile string Use a profile other than your current - to change current: wf use profile NAME
--show-headers Display headers on table out (default true)
--verbose Verbose logging (default: false)
-w, --workspace string Workspace to use - to change default: wf use workspace NAME

SEE ALSO

  • wf - CLI interface for Wayfinder