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

acl-controller: Set cross-namespace policy on default namespace #104

Merged
merged 2 commits into from
Jun 8, 2022

Conversation

pglass
Copy link

@pglass pglass commented Jun 8, 2022

Changes proposed in this PR:

This updates the acl-controller to set the cross-namespace policy as a default policy on the default namespace.

How I've tested this PR:

  • Unit tests

How I expect reviewers to test this PR:

👀

Checklist:

  • Tests added
  • CHANGELOG entry added

@pglass pglass requested review from a team and erichaberkorn and removed request for a team June 8, 2022 18:40
@pglass pglass temporarily deployed to dockerhub/hashicorpdev June 8, 2022 18:40 Inactive
@pglass pglass requested review from cthain and removed request for erichaberkorn June 8, 2022 18:40
@pglass pglass temporarily deployed to dockerhub/hashicorpdev June 8, 2022 18:44 Inactive
require.NotNil(t, ns.ACLs)
require.Contains(t, ns.ACLs.PolicyDefaults, xnsLink)
} else if ns.ACLs != nil {
// namespaces outside the controller's assigned partition should not have the xnsPolicy
Copy link
Contributor

Choose a reason for hiding this comment

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

nit on the comment: This is true for the test, but I think there are operational cases where the xns policy could/will exist in multiple partitions.

@pglass pglass merged commit 634c925 into main Jun 8, 2022
@pglass pglass deleted the pglass/xns-policy-in-default-ns branch June 8, 2022 22:48
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.

2 participants