-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add strategic merge patch of Pods via
PodTemplateSpec
(#862)
* feat: add strategic merge patch func for PodTemplateSpec * fix: include metadata in template patch CRD Set the controller-gen option to include embedded metadata in CRD fields, to allow patches to specify metadata changes. * fix: fixing code after breaking changes * chore: fixing more tests after breaking changes * chore: update KTF * chore: use SSA for CRDs * chore: more --server-side flags in tests * chore: fix skaffold builds for kubectl apply with SSA * chore: make PodTemplateSpec a pointer and fixing more tests after breaking changes * chore: fixing more tests after breaking changes * tests: fix e2e tests * chore: include changelog * Apply suggestions from code review Co-authored-by: Grzegorz Burzyński <[email protected]> Co-authored-by: Mattia Lavacca <[email protected]> * chore: cleanup tests for new PodTemplateSpec changes * fix: move strategic merges into deployment gen This patch moves the strategic merging (of PodTemplateSpec) into the generator code for ControlPlane and DataPlane deployments so that the logic of merging is connected with generation. This helped to highlight some incorrect assumptions in tests (we now merge over container resources, for instance) and helps keep the logic closer to reduce the risk of regressions in the future. * fix: patch test code for new merge strat * fix: blanket update check for podtemplatespec diff * fix: update deployments for any PodTemplateSpec change * fix: lint cleanup * fix: reduce nested make calls * fix: missing part of standard gwapi CRD url * fix: use go-cmp instead of reflect * fix: defaults and comparisons for deployments --------- Co-authored-by: Travis Raines <[email protected]> Co-authored-by: Shane Utt <[email protected]> Co-authored-by: Grzegorz Burzyński <[email protected]> Co-authored-by: Mattia Lavacca <[email protected]>
- Loading branch information
1 parent
ec3a1f3
commit ec5a314
Showing
73 changed files
with
64,997 additions
and
22,451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.