mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Remove incorrect docs about unset fields in NetworkPolicyPeer
This commit is contained in:
parent
9fe15e7376
commit
c3f4f85889
@ -207,14 +207,12 @@ type NetworkPolicyPeer struct {
|
|||||||
|
|
||||||
// This is a label selector which selects Pods in this namespace.
|
// This is a label selector which selects Pods in this namespace.
|
||||||
// This field follows standard unversioned.LabelSelector semantics.
|
// This field follows standard unversioned.LabelSelector semantics.
|
||||||
// If not provided, this selector selects no pods.
|
|
||||||
// If present but empty, this selector selects all pods in this namespace.
|
// If present but empty, this selector selects all pods in this namespace.
|
||||||
PodSelector *unversioned.LabelSelector `json:"podSelector,omitempty"`
|
PodSelector *unversioned.LabelSelector `json:"podSelector,omitempty"`
|
||||||
|
|
||||||
// Selects Namespaces using cluster scoped-labels. This
|
// Selects Namespaces using cluster scoped-labels. This
|
||||||
// matches all pods in all namespaces selected by this label selector.
|
// matches all pods in all namespaces selected by this label selector.
|
||||||
// This field follows standard unversioned.LabelSelector semantics.
|
// This field follows standard unversioned.LabelSelector semantics.
|
||||||
// If omited, this selector selects no namespaces.
|
|
||||||
// If present but empty, this selector selects all namespaces.
|
// If present but empty, this selector selects all namespaces.
|
||||||
NamespaceSelector *unversioned.LabelSelector `json:"namespaceSelector,omitempty"`
|
NamespaceSelector *unversioned.LabelSelector `json:"namespaceSelector,omitempty"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user