Skip to main content
Work in Progress

You are viewing development documentation built from the latest commit on main (last tag v0.2.0-rc.2, source commit 25e1a892). APIs and features are subject to change.

Patching Resources

kure does not patch resources. The patch library, pkg/patch, lives in go-kure/launcher , which owns its formats, its API and its documentation. Read it there:

What this is not

kurel build does not run pkg/patch, and there is no patch subcommand. The library is for callers that modify Kubernetes resources themselves, outside the build path.

It is also not any of these, which are separate mechanisms with their own documentation:

  • the patches field of a Flux Kustomization, which the Flux kustomize controller applies in the cluster
  • Helm post-rendering

Choosing between patching and generating

  • Set it at generation time when you control the builder: set the replica count or the image on the object kure returns.
  • Patch afterwards only when the resources come from somewhere you do not control. kure does not help with that step.

Sample files

The patch examples in this repository are sample input files for launcher’s library. kure does not read them, and launcher’s documentation is the reference for their format.