Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Fix: ingress rule lost podsrchost when neither pod and namespace selector is nil #3159

Closed
wants to merge 1 commit into from
Closed

Commits on Nov 1, 2017

  1. fix: ingress rule miss podsrchost when both podselect and namspace se…

    …lector are not nil
    
    when we have ingress rule like this, this means traffict from pods of either condition
    will be accepted:
    1. pods in the default namespace swith label "role=frontend"
    2. pods in the namespace with label "project=myproject"
    
    metadata:
      name: test-network-policy
      namespace: default
    ingress:
    - from:
      - namespaceSelector:
          matchLabels:
            project: myproject
      - podSelector:
          matchLabels:
            role: frontend
    
    But, weave-npc now only accepts #2 , and misses #1.
    ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
    mainred committed Nov 1, 2017
    Configuration menu
    Copy the full SHA
    4c4c58c View commit details
    Browse the repository at this point in the history