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

networkpolicy: adjust return consistency #846

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sebrandon1
Copy link
Collaborator

Broken out from #355

@@ -126,10 +126,6 @@ func (builder *EgressRuleBuilder) WithOptions(options ...EgressAdditionalOptions
func (builder *EgressRuleBuilder) WithPeerPodSelector(podSelector metav1.LabelSelector) *EgressRuleBuilder {
glog.V(100).Infof("Adding peer pod selector %v to EgressRule", podSelector)

if builder.errorMsg != "" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should be using validate instead of checking the errorMsg here and then we don't have to change the unit tests

@sebrandon1 sebrandon1 force-pushed the networkpolicy_return_consistency branch from 1ed2c94 to 5651a79 Compare January 3, 2025 15:44
@sebrandon1 sebrandon1 force-pushed the networkpolicy_return_consistency branch from 5651a79 to 8cecaaa Compare January 3, 2025 20:06
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