Version: 0.7

kore patch

kore patch#

Allows you to patch a resource

Synopsis#

Patch allows you to easily modify a single parameter's value on a Kore 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"
kore patch [flags]

Examples#

# Update the description on a cluster
$ kore patch cluster test spec.configuration.description "My cluster" [-t <team>]
# Append a new IP range to authProxyAllowedIPs on a cluster
$ kore patch cluster test spec.configuration.authProxyAllowedIPs.-1 10.0.0.0/8 [-t team]
# Remove the value
$ kore 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 (defaults: false)
--force is used to force an operation to happen (defaults: false)
--no-wait indicates if we should wait for resources to provision
-o, --output string the output format of the resource (json,yaml,table,template) (default "table")
--profile string allows you to explicitly set the selected profile
--show-headers indicates we should display headers on table out (default true)
-t, --team string the team you are operating within
--verbose enables verbose logging for debugging purposes (defaults: false)

SEE ALSO#

  • kore - kore provides a cli for the Kore