Skip to main content
Version: 1.0

wf patch

wf patch

Allows you to patch a resource

Synopsis

Patch allows you to easily modify a single parameter's value on a resource.

Path syntax:

  • Reference an object parameter: spec.configuration.description
  • Reference an array item: spec.configuration.authProxyAllowedIPs.0
  • Append a value to an existing array: spec.configuration.authProxyAllowedIPs.-1

Value syntax:

  • The value is parsed as a JSON value.
  • If you want to set "true" or "false" values as string, you have to use double quotes, e.g. '"true"'.
  • If you want to remove the parameter, either don't provide it or use "null".
wf patch [flags]

Examples


# Update the description on a cluster
$ wf patch cluster test spec.configuration.description "My cluster" [-w <workspace>]

# Append a new IP range to authProxyAllowedIPs on a cluster
$ wf patch cluster test spec.configuration.authProxyAllowedIPs.-1 10.0.0.0/8 [-w workspace]

# Remove the value
$ wf patch cluster test spec.configuration.authProxyAllowedIPs.0

Options

  -h, --help   help for patch

Options inherited from parent commands

      --debug              Indicates we should use debug / trace logging (default: false)
--force Used to force an operation to happen (default: false)
--no-wait Indicates we should not wait for resources to provision
-o, --output string Output format of the resource (json,yaml,table,template) (default "table")
--profile string Use a profile other than your default for this command
--show-headers Indicates we should display headers on table out (default true)
--verbose Enables verbose logging for debugging purposes (default: false)
-w, --workspace string The workspace you are operating within

SEE ALSO

  • wf - wf provides a cli for Wayfinder