Package k8s.io.api.networking.v1
Interface Generated.NetworkPolicyPeerOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Generated.NetworkPolicyPeer,Generated.NetworkPolicyPeer.Builder
- Enclosing class:
- Generated
public static interface Generated.NetworkPolicyPeerOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Generated.IPBlockgetIpBlock()ipBlock defines policy on a particular IPBlock.Generated.IPBlockOrBuildergetIpBlockOrBuilder()ipBlock defines policy on a particular IPBlock.Generated.LabelSelectorgetNamespaceSelector()namespaceSelector selects namespaces using cluster-scoped labels.Generated.LabelSelectorOrBuildergetNamespaceSelectorOrBuilder()namespaceSelector selects namespaces using cluster-scoped labels.Generated.LabelSelectorgetPodSelector()podSelector is a label selector which selects pods.Generated.LabelSelectorOrBuildergetPodSelectorOrBuilder()podSelector is a label selector which selects pods.booleanhasIpBlock()ipBlock defines policy on a particular IPBlock.booleanhasNamespaceSelector()namespaceSelector selects namespaces using cluster-scoped labels.booleanhasPodSelector()podSelector is a label selector which selects pods.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
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;
-
-