Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

persist custom json6902 patches in overlays dir #1049

Merged

Conversation

laverya
Copy link
Member

@laverya laverya commented Aug 23, 2019

What I Did

kustomization.yaml within the overlays directory is stored and only the resources/bases/patches are modified. This allows PatchesJSON6902 (closes #1037, closes #730) to be persisted when running ship, among other things.

How I Did it

The kustomization file is added to the ship state in a manner that will not be included in any jsonified versions of the state, and modifications are made to this stored file instead of starting from scratch.

How to verify it

The json patch newly included within the k8s-new-files ship update integration test is persisted and applied within the rendered output.

Description for the Changelog

patchesJson6902 within user kustomization is persisted in ship update and ship edit

Picture of a Ship (not required but encouraged)

USS Wright (CVL-49)

and any other custom kustomization entries too
@laverya laverya requested a review from emosbaugh August 23, 2019 20:55
@laverya laverya merged commit a0af920 into replicatedhq:master Aug 23, 2019
@laverya laverya deleted the persist-custom-json6902-patches branch August 23, 2019 21:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for patchesJson6902 Support for Json6902 patches
2 participants