From 94d1f992782427ddb7100891ec4fc92848bc2078 Mon Sep 17 00:00:00 2001 From: Rui Cao Date: Tue, 24 Sep 2024 11:39:27 +0800 Subject: [PATCH 1/2] spec: allow interfaces to be included in the delegated IPAM plugin result Signed-off-by: Rui Cao --- SPEC.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SPEC.md b/SPEC.md index d7ba7d77..f649e718 100644 --- a/SPEC.md +++ b/SPEC.md @@ -598,7 +598,9 @@ Plugins provided a `prevResult` key as part of their request configuration must #### Delegated plugins (IPAM) Delegated plugins may omit irrelevant sections. -Delegated IPAM plugins must return an abbreviated _Success_ object. Specifically, it is missing the `interfaces` array, as well as the `interface` entry in `ips`. +Delegated IPAM plugins must return an abbreviated _Success_ object. Specifically, it is missing the `interface` entry in `ips`. + +The `interfaces` array can still be kept to indicate the host interface(`sandbox` is empty) associated with the allocated IP. For example, in cases where a node has multiple network interfaces, a specific network interface serves as the uplink for the allocated IP. The primary CNI needs to know the uplink interface to install the corresponding ergess routes. ### VERSION Success From 8db245f99dcb7fde8233b39c8884ca91d2f02605 Mon Sep 17 00:00:00 2001 From: Rui Cao Date: Thu, 26 Sep 2024 16:39:56 +0800 Subject: [PATCH 2/2] fix typo Signed-off-by: Rui Cao --- SPEC.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPEC.md b/SPEC.md index f649e718..f3441d64 100644 --- a/SPEC.md +++ b/SPEC.md @@ -600,7 +600,7 @@ Delegated plugins may omit irrelevant sections. Delegated IPAM plugins must return an abbreviated _Success_ object. Specifically, it is missing the `interface` entry in `ips`. -The `interfaces` array can still be kept to indicate the host interface(`sandbox` is empty) associated with the allocated IP. For example, in cases where a node has multiple network interfaces, a specific network interface serves as the uplink for the allocated IP. The primary CNI needs to know the uplink interface to install the corresponding ergess routes. +The `interfaces` array can still be kept to indicate the host interface(`sandbox` is empty) associated with the allocated IP. For example, in cases where a node with multiple network interfaces, a specific network interface serves as the uplink for the allocated IP. The primary CNI plugin needs to know the uplink interface to install the corresponding egress routes. ### VERSION Success