⚠️ Work in Progress
You are viewing development documentation built from the latest commit on main. APIs and features are subject to change.

kure patch

kure patch

Apply patches to Kubernetes manifests

Synopsis

Apply patches to existing Kubernetes manifests using Kure’s patch system.

This command applies declarative patches to base YAML files containing Kubernetes resources, supporting JSONPath-based modifications.

Examples:

Apply single patch to base file

kure patch base.yaml patch.yaml

Apply multiple patches

kure patch base.yaml patch1.yaml patch2.yaml patch3.yaml

Apply all patches from directory

kure patch –patch-dir ./patches base.yaml

Validate patches without applying

kure patch –validate-only base.yaml patch.yaml

Apply patches interactively

kure patch –interactive base.yaml

Preview changes without applying (diff mode)

kure patch –diff base.yaml patch.yaml

kure patch [flags] BASE_FILE PATCH_FILE...

Options

      --combined             apply all patches and write a single combined output
      --diff                 show unified diff of changes without applying
      --group-by string      group resources in combined output (none|file|kind) (default "none")
  -h, --help                 help for patch
      --interactive          interactive patch mode
  -d, --output-dir string    output directory for patched resources (default "out/patches")
      --output-file string   output file for patched resources (stdout if not specified)
  -p, --patch-dir string     directory containing patch files
      --validate-only        validate patches without applying them

Options inherited from parent commands

  -c, --config string      config file (default is $HOME/.kure.yaml)
      --debug              debug output
      --dry-run            print generated resources without writing to files
  -n, --namespace string   target namespace for operations
      --no-headers         don't print headers (for table output)
  -o, --output string      output format (yaml|json|table|wide|name) (default "yaml")
      --show-labels        show resource labels in table output
      --strict             treat warnings as errors
  -v, --verbose            verbose output
      --wide               use wide output format

SEE ALSO

  • kure - A Go library for programmatically building Kubernetes resources