-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update manifests
to remove deprecation warnings
#11675
chore: update manifests
to remove deprecation warnings
#11675
Conversation
- `kustomize` was giving deprecation warnings: - `patchesStratetgicMerge` and `patchesJson6902` have been deprecated and replaced by `patches` - `commonLabels` is deprecated and replaced by `labels` - run `kustomize edit fix` on all `kustomization.yaml` - then manually update to match the already used style/formatting in these files (e.g. reordering, indentation) Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check if the generated manifests match the current ones?
Oh like the release ones which are |
Also there are |
Yep no diff in the generated manifests. The See check with no diff: vscode ➜ ~/go/src/github.com/argoproj/argo-workflows (fix-update-kustomize-patches) $ git checkout master
# [...]
vscode ➜ ~/go/src/github.com/argoproj/argo-workflows (master) $ make manifests
# [...]
vscode ➜ ~/go/src/github.com/argoproj/argo-workflows (master) $ cp manifests/install.yaml ../
vscode ➜ ~/go/src/github.com/argoproj/argo-workflows (master) $ cp manifests/namespace-install.yaml ../
vscode ➜ ~/go/src/github.com/argoproj/argo-workflows (master) $ git checkout fix-update-kustomize-patches
# [...]
vscode ➜ ~/go/src/github.com/argoproj/argo-workflows (fix-update-kustomize-patches) $ make manifests
# [...]
vscode ➜ ~/go/src/github.com/argoproj/argo-workflows (fix-update-kustomize-patches) $ diff manifests/install.yaml ../install.yaml
vscode ➜ ~/go/src/github.com/argoproj/argo-workflows (fix-update-kustomize-patches) $ diff manifests/namespace-install.yaml ../namespace-install.yaml |
manifests
to remove deprecation warningsmanifests
to remove deprecation warnings
Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
Ah, converting tests is failing due to multiple manifests in one file (i.e. Guess I'll have to partially revert the test changes and we'll just have deprecation warnings there until it is resolved upstream |
- kustomize `patches` throws an error when there are two manifests in one file - also every other mixin is a single manifest Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
There was only one file like this, so I just split that file instead, which should result in no errors and no deprecation warnings! |
Motivation
kustomize
was giving deprecation warnings:patchesStratetgicMerge
andpatchesJson6902
have been deprecated and replaced bypatches
commonLabels
is deprecated and replaced bylabels
As an example, see the "Install manifests" step of this recent CI run:
Modifications
kustomize edit fix
on allkustomization.yaml
inmanifests
andtests/e2e/manifests
tests/e2e/manifests/mixins/cluster-workflow-template-rbac.yaml
into two files, one for each manifestpatches
should accept a patch file with multiple patches kubernetes-sigs/kustomize#5049Verification
make manifests
/make install
runs without deprecation warnings.Notes to Reviewers
Titled this as aEDIT: usedbuild
, but I'm not entirely sure what it should bechore
instead