Interface V1beta1Extensions.NetworkPolicyPeerOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
V1beta1Extensions.NetworkPolicyPeer, V1beta1Extensions.NetworkPolicyPeer.Builder
Enclosing class:
V1beta1Extensions

public static interface V1beta1Extensions.NetworkPolicyPeerOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasPodSelector

      boolean hasPodSelector()
       This 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;
    • getPodSelector

      Meta.LabelSelector getPodSelector()
       This 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;
    • getPodSelectorOrBuilder

      Meta.LabelSelectorOrBuilder getPodSelectorOrBuilder()
       This 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()
       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;
    • getNamespaceSelector

      Meta.LabelSelector getNamespaceSelector()
       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;
    • getNamespaceSelectorOrBuilder

      Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder()
       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.extensions.v1beta1.IPBlock ipBlock = 3;
    • 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.extensions.v1beta1.IPBlock ipBlock = 3;
    • getIpBlockOrBuilder

      V1beta1Extensions.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.extensions.v1beta1.IPBlock ipBlock = 3;