From 91093c12bba620a1b0deee6d1f5d6c325150f2e5 Mon Sep 17 00:00:00 2001 From: Surya Seetharaman Date: Tue, 26 Nov 2024 08:24:24 +0100 Subject: [PATCH] Update node peers description Signed-off-by: Surya Seetharaman --- apis/v1alpha1/adminnetworkpolicy_types.go | 5 ++++- apis/v1alpha1/baselineadminnetworkpolicy_types.go | 5 ++++- .../policy.networking.k8s.io_adminnetworkpolicies.yaml | 5 ++++- ...olicy.networking.k8s.io_baselineadminnetworkpolicies.yaml | 5 ++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/apis/v1alpha1/adminnetworkpolicy_types.go b/apis/v1alpha1/adminnetworkpolicy_types.go index 97d8d438..e10b6eae 100644 --- a/apis/v1alpha1/adminnetworkpolicy_types.go +++ b/apis/v1alpha1/adminnetworkpolicy_types.go @@ -244,7 +244,10 @@ type AdminNetworkPolicyEgressPeer struct { // +optional Pods *NamespacedPod `json:"pods,omitempty"` // Nodes defines a way to select a set of nodes in - // the cluster. This field follows standard label selector + // the cluster (based on the node's labels). It selects + // the nodeIPs as the peer type by matching on the IPs + // present in the node.Status.Addresses field of the node. + // This field follows standard label selector // semantics; if present but empty, it selects all Nodes. // // Support: Extended diff --git a/apis/v1alpha1/baselineadminnetworkpolicy_types.go b/apis/v1alpha1/baselineadminnetworkpolicy_types.go index 825eb9bc..d7e31137 100644 --- a/apis/v1alpha1/baselineadminnetworkpolicy_types.go +++ b/apis/v1alpha1/baselineadminnetworkpolicy_types.go @@ -219,7 +219,10 @@ type BaselineAdminNetworkPolicyEgressPeer struct { // +optional Pods *NamespacedPod `json:"pods,omitempty"` // Nodes defines a way to select a set of nodes in - // the cluster. This field follows standard label selector + // the cluster (based on the node's labels). It selects + // the nodeIPs as the peer type by matching on the IPs + // present in the node.Status.Addresses field of the node. + // This field follows standard label selector // semantics; if present but empty, it selects all Nodes. // // Support: Extended diff --git a/config/crd/experimental/policy.networking.k8s.io_adminnetworkpolicies.yaml b/config/crd/experimental/policy.networking.k8s.io_adminnetworkpolicies.yaml index e9711dde..1e697f8c 100644 --- a/config/crd/experimental/policy.networking.k8s.io_adminnetworkpolicies.yaml +++ b/config/crd/experimental/policy.networking.k8s.io_adminnetworkpolicies.yaml @@ -329,7 +329,10 @@ spec: nodes: description: |- Nodes defines a way to select a set of nodes in - the cluster. This field follows standard label selector + the cluster (based on the node's labels). It selects + the nodeIPs as the peer type by matching on the IPs + present in the node.Status.Addresses field of the node. + This field follows standard label selector semantics; if present but empty, it selects all Nodes. Support: Extended diff --git a/config/crd/experimental/policy.networking.k8s.io_baselineadminnetworkpolicies.yaml b/config/crd/experimental/policy.networking.k8s.io_baselineadminnetworkpolicies.yaml index 313ab35d..34c14c8b 100644 --- a/config/crd/experimental/policy.networking.k8s.io_baselineadminnetworkpolicies.yaml +++ b/config/crd/experimental/policy.networking.k8s.io_baselineadminnetworkpolicies.yaml @@ -280,7 +280,10 @@ spec: nodes: description: |- Nodes defines a way to select a set of nodes in - the cluster. This field follows standard label selector + the cluster (based on the node's labels). It selects + the nodeIPs as the peer type by matching on the IPs + present in the node.Status.Addresses field of the node. + This field follows standard label selector semantics; if present but empty, it selects all Nodes. Support: Extended