Interface Generated.NetworkPolicyPeerOrBuilder

    • Method Detail

      • hasPodSelector

        boolean hasPodSelector()
         podSelector is a label selector which selects pods. This field follows standard label
         selector semantics; if present but empty, it selects all pods.
        
         If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the Namespaces selected by NamespaceSelector.
         Otherwise it selects the pods matching podSelector in the policy's own namespace.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
        Returns:
        Whether the podSelector field is set.
      • getPodSelector

        Generated.LabelSelector getPodSelector()
         podSelector is a label selector which selects pods. This field follows standard label
         selector semantics; if present but empty, it selects all pods.
        
         If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the Namespaces selected by NamespaceSelector.
         Otherwise it selects the pods matching podSelector in the policy's own namespace.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
        Returns:
        The podSelector.
      • getPodSelectorOrBuilder

        Generated.LabelSelectorOrBuilder getPodSelectorOrBuilder()
         podSelector is a label selector which selects pods. This field follows standard label
         selector semantics; if present but empty, it selects all pods.
        
         If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the Namespaces selected by NamespaceSelector.
         Otherwise it selects the pods matching podSelector in the policy's own namespace.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
      • hasNamespaceSelector

        boolean hasNamespaceSelector()
         namespaceSelector selects namespaces using cluster-scoped labels. This field follows
         standard label selector semantics; if present but empty, it selects all namespaces.
        
         If podSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the namespaces selected by namespaceSelector.
         Otherwise it selects all pods in the namespaces selected by namespaceSelector.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
        Returns:
        Whether the namespaceSelector field is set.
      • getNamespaceSelector

        Generated.LabelSelector getNamespaceSelector()
         namespaceSelector selects namespaces using cluster-scoped labels. This field follows
         standard label selector semantics; if present but empty, it selects all namespaces.
        
         If podSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the namespaces selected by namespaceSelector.
         Otherwise it selects all pods in the namespaces selected by namespaceSelector.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
        Returns:
        The namespaceSelector.
      • getNamespaceSelectorOrBuilder

        Generated.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder()
         namespaceSelector selects namespaces using cluster-scoped labels. This field follows
         standard label selector semantics; if present but empty, it selects all namespaces.
        
         If podSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the namespaces selected by namespaceSelector.
         Otherwise it selects all pods in the namespaces selected by namespaceSelector.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
      • hasIpBlock

        boolean hasIpBlock()
         ipBlock defines policy on a particular IPBlock. If this field is set then
         neither of the other fields can be.
         +optional
         
        optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
        Returns:
        Whether the ipBlock field is set.
      • getIpBlock

        Generated.IPBlock getIpBlock()
         ipBlock defines policy on a particular IPBlock. If this field is set then
         neither of the other fields can be.
         +optional
         
        optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
        Returns:
        The ipBlock.
      • getIpBlockOrBuilder

        Generated.IPBlockOrBuilder getIpBlockOrBuilder()
         ipBlock defines policy on a particular IPBlock. If this field is set then
         neither of the other fields can be.
         +optional
         
        optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;