Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace deprecated kustomize constructs with their new equivalent (#1937
) Summary: Replace deprecated kustomize constructs with their new equivalent Relevant Issues: N/A Type of change: /kind cleanup Test Plan: Modified these files with `kustomize edit fix` and verified the following: - [x] yaml is equivalent before and after ``` # Create 'new' file from branch (ddelnano/replace-deprecated-kustomize-patches-config) $ for env in dev prod public staging; do kustomize build k8s/cloud_deps/$env/elastic > k8s/cloud_deps/$env/elastic/new; done # Create 'old' file from main (main) $ for env in dev prod public staging; do kustomize build k8s/cloud_deps/$env/elastic > k8s/cloud_deps/$env/elastic/old; done # Warning: 'patchesJson6902' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'patchesJson6902' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'patchesJson6902' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'patchesJson6902' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Verify shas are the same $ for env in dev prod public staging; do sha256sum k8s/cloud_deps/$env/elastic/{old,new}; done 2c7459bcc8de323dd30ced4459257d130eef9b56f417b66317e64596d047b8ea k8s/cloud_deps/dev/elastic/old 2c7459bcc8de323dd30ced4459257d130eef9b56f417b66317e64596d047b8ea k8s/cloud_deps/dev/elastic/new bfe20c85b5b90ef029f536f025dc45ab5b40f71def02af19c5d5d54950ae8a01 k8s/cloud_deps/prod/elastic/old bfe20c85b5b90ef029f536f025dc45ab5b40f71def02af19c5d5d54950ae8a01 k8s/cloud_deps/prod/elastic/new 827ceddfb37cd86b06a5b41efbc2a11ffde7848332fdfdccbc436c50cf9672ac k8s/cloud_deps/public/elastic/old 827ceddfb37cd86b06a5b41efbc2a11ffde7848332fdfdccbc436c50cf9672ac k8s/cloud_deps/public/elastic/new ac25554df51e00853e419419ecdb4b3a0945c14bd4e6750303537ac7d80757e4 k8s/cloud_deps/staging/elastic/old ac25554df51e00853e419419ecdb4b3a0945c14bd4e6750303537ac7d80757e4 k8s/cloud_deps/staging/elastic/new ``` --------- Signed-off-by: Dom Del Nano <[email protected]>
- Loading branch information