Skip to content

Add validations for NodeNetworkPolicy#6613

Merged
tnqn merged 1 commit into
antrea-io:mainfrom
Atish-iaf:fix-6525
Aug 21, 2024
Merged

Add validations for NodeNetworkPolicy#6613
tnqn merged 1 commit into
antrea-io:mainfrom
Atish-iaf:fix-6525

Conversation

@Atish-iaf
Copy link
Copy Markdown
Contributor

Prevent ACNP appliedTo Node (NodeNetworkPolicy) with "enableLogging: true".
Prevent ACNP appliedTo Node (NodeNetworkPolicy) with other selectors.

For #6525

@Atish-iaf Atish-iaf added the kind/bug Categorizes issue or PR as related to a bug. label Aug 19, 2024
Comment thread pkg/controller/networkpolicy/validate.go Outdated
Comment thread pkg/controller/networkpolicy/validate.go Outdated
tnqn
tnqn previously approved these changes Aug 19, 2024
Copy link
Copy Markdown
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

LGTM

@hongliangl could you also take a look?

@rajnkamr rajnkamr added this to the Antrea v2.2 release milestone Aug 20, 2024
@rajnkamr rajnkamr added action/release-note Indicates a PR that should be included in release notes. area/network-policy Issues or PRs related to network policies. labels Aug 20, 2024
Copy link
Copy Markdown
Contributor

@hongliangl hongliangl left a comment

Choose a reason for hiding this comment

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

LGTM overall

Comment thread docs/antrea-node-network-policy.md Outdated
Prevent ACNP appliedTo Node (NodeNetworkPolicy) with "enableLogging: true".
Prevent ACNP appliedTo Node (NodeNetworkPolicy) with other selectors.

For antrea-io#6525

Signed-off-by: Kumar Atish <kumar.atish@broadcom.com>
Copy link
Copy Markdown
Contributor

@hongliangl hongliangl left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

LGTM

@tnqn
Copy link
Copy Markdown
Member

tnqn commented Aug 21, 2024

/skip-all

1 similar comment
@tnqn
Copy link
Copy Markdown
Member

tnqn commented Aug 21, 2024

/skip-all

@tnqn tnqn merged commit 27ed93d into antrea-io:main Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action/release-note Indicates a PR that should be included in release notes. area/network-policy Issues or PRs related to network policies. kind/bug Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants