Package io.kubernetes.client.proto
Interface V1Networking.NetworkPolicyPeerOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
V1Networking.NetworkPolicyPeer
,V1Networking.NetworkPolicyPeer.Builder
- Enclosing class:
- V1Networking
public static interface V1Networking.NetworkPolicyPeerOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionIPBlock defines policy on a particular IPBlock.IPBlock defines policy on a particular IPBlock.Selects Namespaces using cluster-scoped labels.Selects Namespaces using cluster-scoped labels.This is a label selector which selects Pods.This is a label selector which selects Pods.boolean
IPBlock defines policy on a particular IPBlock.boolean
Selects Namespaces using cluster-scoped labels.boolean
This is a label selector which selects Pods.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.networking.v1.IPBlock ipBlock = 3;
-
getIpBlock
V1Networking.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;
-
getIpBlockOrBuilder
V1Networking.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;
-