Skip to content

fix(policy): report endpoint conflicts in stable order - #6066

Open
ericcurtin wants to merge 1 commit into
ai-openshell:mainfrom
ericcurtin:fix/5882-stable-conflict-order/ericcurtin
Open

ericcurtin wants to merge 1 commit into
ai-openshell:mainfrom
ericcurtin:fix/5882-stable-conflict-order/ericcurtin

Conversation

@ericcurtin

Copy link
Copy Markdown
Contributor

Summary

Sort network policies by key before the endpoint conflict check, so lint and gateway output is stable.

Related Issue

Part of #5882

Changes

  • Iterate network_policies in key order in find_endpoint_ambiguities.
  • Add a test that fails without the sort.

Testing

  • Checks appropriate to the affected code and behavior pass
  • Unit tests added/updated (if applicable)
  • E2E tests added/updated (if applicable)

cargo test -p openshell-policy and clippy pass.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@ericcurtin

Copy link
Copy Markdown
Contributor Author

@johntmyers @shiju-nv PTAL when you get a chance, and could you please mark #5882 state:accepted so the issue check can pass? /ok to test 6ce37a15162664577404d4003858c348ded5f43c if it looks good. Thank you!

This branch has not been deployed

No deployments
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.

1 participant