-
Notifications
You must be signed in to change notification settings - Fork 906
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
Breaking changes when using kustomize v5 with rollout-transform.yaml #3105
Comments
The fix itself is simple: dlemfh@48adcd7 (= Add Although I'm not sure whether you want to proceed by updating the rollout-transform.yaml file directly (= dlemfh@48adcd7), or by releasing a new version of the file (= dlemfh@31a8971).
|
Could probably add a new transform file rollout-transform-kustomize-v5.yaml and document the usage for kustomize v5+ |
@zachaller Awesome! Do you think we should update the docs to instruct users to use the new rollout-transform-kustomize-v5.yaml as well? configurations:
- - https://argoproj.github.io/argo-rollouts/features/kustomize/rollout-transform.yaml
+ - https://argoproj.github.io/argo-rollouts/features/kustomize/rollout-transform-kustomize-v5.yaml because as far as I know, the new transformer configuration file will work correctly with both kustomize v4 & v5 (i.e. it's backwards-compatible). |
* feat: add rollout-transform-2023-10-09.yaml which has been adapted for kustomize v5 Signed-off-by: Jethro Lee <[email protected]> * Rename to rollout-transform-kustomize-v5.yaml Signed-off-by: Hidetake Iwata <[email protected]> * Add link to doc Signed-off-by: Hidetake Iwata <[email protected]> --------- Signed-off-by: Jethro Lee <[email protected]> Signed-off-by: Hidetake Iwata <[email protected]> Co-authored-by: Jethro Lee <[email protected]>
…goproj#3775) * feat: add rollout-transform-2023-10-09.yaml which has been adapted for kustomize v5 Signed-off-by: Jethro Lee <[email protected]> * Rename to rollout-transform-kustomize-v5.yaml Signed-off-by: Hidetake Iwata <[email protected]> * Add link to doc Signed-off-by: Hidetake Iwata <[email protected]> --------- Signed-off-by: Jethro Lee <[email protected]> Signed-off-by: Hidetake Iwata <[email protected]> Co-authored-by: Jethro Lee <[email protected]>
Checklist:
I've included the version of argo rollouts.Describe the bug
Using kustomize v5.x.x with rollout-transform.yaml causes breaking changes.
A kustomization.yaml that uses rollout-transform.yaml along with the
labels
directive (withincludeSelectors: false
andincludeTemplates: true
) stops working correctly when upgrading kustomize to v5.Example of kustomization.yaml that breaks:
To Reproduce
I've forked and updated the kustomize test here: dlemfh@ffe1f7f#diff-e3c72800a3ccfbc82af00dd308fa4dd944d5e1702ed5e3ff5e807e91e39b2e23
Here you can check that running
make test-kustomize
with kustomize@v5 fails the test.Expected behavior
Using kustomize with rollout-transform.yaml +
labels
withincludeSelectors: false
andincludeTemplates: true
should patch the specified label into both the rollout's/metadata/labels
and/spec/template/metadata/labels
.However, using kustomize@v5 the same kustomization.yaml fails to patch the specified label into the
/spec/template/metadata/labels
field.The reason is because starting kustomize@v5, using
labels
withincludeSelectors: false
andincludeTemplates: true
takes its configuration from a new transformer configuration directive namedtemplateLabels
,which is not currently accounted for in rollout-transform.yaml.
Screenshots
Version
Logs
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.
The text was updated successfully, but these errors were encountered: