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

Ignore principals order when comparing policies #2058

Merged
merged 1 commit into from May 21, 2024

Conversation

max-melentyev
Copy link
Contributor

Description of your changes

AWS returns principals items in a random order so provider-aws should ignore it to not consider policies changed.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

  • Existing and new tests

Copy link
Collaborator

@MisterMX MisterMX left a comment

Choose a reason for hiding this comment

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

LGTM. @max-melentyev can you squash your changes in a single commit and adjust the commit message the follow the conventional commit guidelines (fix: ...)?

@MisterMX
Copy link
Collaborator

@max-melentyev can you rebase on the latest master and resolve the conflicts?

AWS returns items in a random order so provider-aws should ignore
it to not consider policies changed.

Signed-off-by: Max Melentyev <max.melentyev@reddit.com>
@max-melentyev
Copy link
Contributor Author

rebased

Copy link
Collaborator

@MisterMX MisterMX left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you very much @max-melentyev!

@MisterMX MisterMX merged commit 72c3680 into crossplane-contrib:master May 21, 2024
9 checks passed
Copy link

Backport failed for release-0.48, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally.

git fetch origin release-0.48
git worktree add -d .worktree/backport-2058-to-release-0.48 origin/release-0.48
cd .worktree/backport-2058-to-release-0.48
git checkout -b backport-2058-to-release-0.48
ancref=$(git merge-base c3eb9420eb473b04373268498172f238d4a349d3 626023f291247ffe75f114ea7e332fc0b2806e34)
git cherry-pick -x $ancref..626023f291247ffe75f114ea7e332fc0b2806e34

@max-melentyev max-melentyev deleted the policy branch May 21, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants