Add JSONPatch to kustomization

This commit is contained in:
Jingfang Liu
2018-08-23 12:23:55 -07:00
parent 633c43a672
commit 6a3e3c3a71
3 changed files with 57 additions and 4 deletions

View File

@@ -56,8 +56,15 @@ type Kustomization struct {
// An Patch entry is very similar to an Resource entry.
// It specifies the relative paths for patch files within the package.
// URLs and globs are not supported
Patches []string `json:"patches,omitempty" yaml:"patches,omitempty"`
// URLs and globs are not supported.
// The patch files should be Stategic Merge Patch, the default patching behavior for kubectl.
// https://github.com/kubernetes/community/blob/master/contributors/devel/strategic-merge-patch.md
Patches []string `json:"patches,omitempty" yaml:"patches,omitempty"`
PatchesStrategicMerge []string `json:"patchesSrategicMerge,omitempty" yaml:"patchesStategicMerge,omitempty"`
// JSONPatches is a list of JSONPatch for applying JSON patch.
// The JSON patch is documented at http://jsonpatch.com/.
PatchesJson6902 []JSONPatch `json:"patchesJson6902,omitempty" yaml:"patchesJson6902,omitempty"`
// List of configmaps to generate from configuration sources.
// Base/overlay concept doesn't apply to this field.