Skip to content
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

feat(cli): sort composed resources in the render output #5030

Merged
merged 1 commit into from Nov 20, 2023

Conversation

phisco
Copy link
Contributor

@phisco phisco commented Nov 17, 2023

Description of your changes

Fixes #5008 by sorting composed resources by composed resource name (crossplane.io/composition-resource-name annotation) to ensure the output is stable.

I have:

Need help with this checklist? See the cheat sheet.

@phisco phisco requested a review from a team as a code owner November 17, 2023 08:18
@phisco phisco requested a review from negz November 17, 2023 08:18
@phisco phisco requested a review from haarchri November 17, 2023 09:40
@phisco
Copy link
Contributor Author

phisco commented Nov 17, 2023

@jbw976 I didn't add the backport label here as I don't see this as a "bug" in the current implementation, but I could be easily convinced otherwise, let me know what you think.

cmd/crank/beta/render/cmd.go Outdated Show resolved Hide resolved
@phisco
Copy link
Contributor Author

phisco commented Nov 18, 2023

now I got why @haarchri, was talking about sorting by kind AND annotations... most of the times resources won't have a name as metadata.name. I'll switch to sorting it by the resource name instead.

Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
Copy link
Member

@negz negz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @phisco!

@negz negz merged commit cb15820 into crossplane:master Nov 20, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sort crossplane beta render output
3 participants