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

regression: namespaceSelector-NetworkPolicy does not work in v0.2.0-beta4 #412

Closed
xanonid opened this issue Apr 26, 2018 · 1 comment
Closed
Labels

Comments

@xanonid
Copy link
Contributor

xanonid commented Apr 26, 2018

With kube-router v0.2.0-beta4, a NetworkPolicy with namespaceSelector, like

 ...
  ingress:
  - from:
    - namespaceSelector:
        matchLabels:
          name: otherNamespace
     - podSelector:
        matchLabels:
          podLabel: "value"
  ...         

does work only partially. The IPs of pods in otherNamespace are not added to the corresponding ipset, only the pods matching the podLabel. With v0.1.0, the same NetworkPolicy works correctly.

Used versions:
Kubernetes v1.9.7
kube-router v0.2.0-beta4

@murali-reddy
Copy link
Member

@xanonid thanks for reporting. indeed it was regression.

Fix is present in cloudnativelabs/kube-router-git:master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants