Skip to content

Conversation

@jaer-tsun
Copy link
Contributor

@jaer-tsun jaer-tsun commented Dec 20, 2019

What this PR does / why we need it:
NPM was not treating {} rules as external so the rules get routed to all-namespaces instead.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
fixes* #465

*Partially fixes via allow external but ordering needs to be fixed

i.e.

Behaviour depends in the order these policies applied.

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: dns
namespace: test
spec:
podSelector: {}
egress:
- to:
- namespaceSelector: {}
ports:
- protocol: UDP
port: 53

kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: allow-test-egress
namespace: test
spec:
podSelector:
matchLabels:
app: test
egress:
- {}

@jaer-tsun jaer-tsun merged commit d272578 into Azure:master Jan 2, 2020
@jaer-tsun jaer-tsun deleted the allowExternal branch January 2, 2020 22:26
ashutoshishere04 pushed a commit to ashutoshishere04/azure-container-networking that referenced this pull request Jan 23, 2020
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