-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api: update enableRdma/rdmaIsolation field for spiderMultusConfig #4301
Open
cyclinder
wants to merge
1
commit into
spidernet-io:main
Choose a base branch
from
cyclinder:spidermultusconfig/api_update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,6 +163,7 @@ spec: | |
properties: | ||
ibKubernetesEnabled: | ||
default: false | ||
description: Enforces ib-sriov-cni to work with ib-kubernetes. | ||
type: boolean | ||
ippools: | ||
description: SpiderpoolPools could specify the IPAM spiderpool | ||
|
@@ -179,17 +180,30 @@ spec: | |
type: object | ||
linkState: | ||
default: enable | ||
description: 'Enforces link state for the VF. Allowed values: | ||
auto, enable, disable.' | ||
enum: | ||
- auto | ||
- enable | ||
- disable | ||
type: string | ||
pkey: | ||
description: infiniBand pkey for VF, this field is used by ib-kubernetes | ||
to add pkey with guid to InfiniBand subnet manager client e.g. | ||
Mellanox UFM, OpenSM | ||
type: string | ||
rdmaIsolation: | ||
default: true | ||
description: rdmaIsolation enablw RDMA CNI plugin is intended | ||
to be run as a chained CNI plugin. it ensures isolation of RDMA | ||
traffic from other workloads in the system by moving the associated | ||
RDMA interfaces of the provided network interface to the container's | ||
network namespace path. | ||
type: boolean | ||
resourceName: | ||
description: The SR-IOV RDMA resource name of the SpiderMultusConfig. | ||
the SR-IOV RDMA resource is often reported to kubelet by the | ||
sriov-device-plugin. | ||
type: string | ||
required: | ||
- resourceName | ||
|
@@ -210,11 +224,14 @@ spec: | |
type: array | ||
type: object | ||
master: | ||
description: name of the host interface to create the link from. | ||
type: string | ||
type: object | ||
ipvlan: | ||
properties: | ||
bond: | ||
description: Optional bond configuration for the CNI. It must | ||
not be nil if the multiple master interfaces are specified. | ||
properties: | ||
mode: | ||
format: int32 | ||
|
@@ -229,10 +246,6 @@ spec: | |
- mode | ||
- name | ||
type: object | ||
enableRdma: | ||
default: false | ||
description: enable share rdma for ipvlan | ||
type: boolean | ||
ippools: | ||
description: SpiderpoolPools could specify the IPAM spiderpool | ||
CNI configuration default IPv4&IPv6 pools. | ||
|
@@ -247,15 +260,23 @@ spec: | |
type: array | ||
type: object | ||
master: | ||
description: The master interface(s) for the CNI configuration. | ||
At least one master interface must be specified. If multiple | ||
master interfaces are specified, the spiderpool will create | ||
a bond device with the bondConfig by the ifacer plugin. | ||
items: | ||
type: string | ||
type: array | ||
rdmaResourceName: | ||
description: Resource name of the rdma device-plugin, If it's | ||
empty and enableRdma is true, the value will be auto set by | ||
operator. and the user can also set this value manually. | ||
description: The RDMA resource name of the nic. the RDMA resource | ||
is often reported to kubelet by the k8s-rdma-shared-dev-plugin. | ||
when it is not empty and spiderpool podResourceInject feature | ||
is enabled, spiderpool can automatically inject it into the | ||
container's resources via webhook. | ||
type: string | ||
vlanID: | ||
description: 'The VLAN ID for the CNI configuration, optional | ||
and must be within the specified range: [0.4096).' | ||
format: int32 | ||
maximum: 4094 | ||
minimum: 0 | ||
|
@@ -266,6 +287,8 @@ spec: | |
macvlan: | ||
properties: | ||
bond: | ||
description: Optional bond configuration for the CNI. It must | ||
not be nil if the multiple master interfaces are specified. | ||
properties: | ||
mode: | ||
format: int32 | ||
|
@@ -280,10 +303,6 @@ spec: | |
- mode | ||
- name | ||
type: object | ||
enableRdma: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 同理 |
||
default: false | ||
description: enable share rdma for macvlan | ||
type: boolean | ||
ippools: | ||
description: SpiderpoolPools could specify the IPAM spiderpool | ||
CNI configuration default IPv4&IPv6 pools. | ||
|
@@ -298,15 +317,23 @@ spec: | |
type: array | ||
type: object | ||
master: | ||
description: The master interface(s) for the CNI configuration. | ||
At least one master interface must be specified. If multiple | ||
master interfaces are specified, the spiderpool will create | ||
a bond device with the bondConfig by the ifacer plugin. | ||
items: | ||
type: string | ||
type: array | ||
rdmaResourceName: | ||
description: Resource name of the rdma device-plugin, If it's | ||
empty and enableRdma is true, the value will be auto set by | ||
operator. and the user can also set this value manually. | ||
description: The RDMA resource name of the nic. the RDMA resource | ||
is often reported to kubelet by the k8s-rdma-shared-dev-plugin. | ||
when it is not empty and spiderpool podResourceInject feature | ||
is enabled, spiderpool can automatically inject it into the | ||
container's resources via webhook. | ||
type: string | ||
vlanID: | ||
description: 'The VLAN ID for the CNI configuration, optional | ||
and must be within the specified range: [0.4096).' | ||
format: int32 | ||
maximum: 4094 | ||
minimum: 0 | ||
|
@@ -361,6 +388,7 @@ spec: | |
properties: | ||
enableRdma: | ||
default: false | ||
description: DEPRECATED, use RdmaIsolation flled instead. | ||
type: boolean | ||
ippools: | ||
description: SpiderpoolPools could specify the IPAM spiderpool | ||
|
@@ -376,14 +404,28 @@ spec: | |
type: array | ||
type: object | ||
maxTxRateMbps: | ||
description: Mbps, 0 = disable rate limiting | ||
minimum: 0 | ||
type: integer | ||
minTxRateMbps: | ||
minimum: 0 | ||
type: integer | ||
rdmaIsolation: | ||
default: false | ||
description: rdmaIsolation enable RDMA CNI plugin is intended | ||
to be run as a chained CNI plugin. it ensures isolation of RDMA | ||
traffic from other workloads in the system by moving the associated | ||
RDMA interfaces of the provided network interface to the container's | ||
network namespace path. | ||
type: boolean | ||
resourceName: | ||
description: The SR-IOV RDMA resource name of the SpiderMultusConfig. | ||
the SR-IOV RDMA resource is often reported to kubelet by the | ||
sriov-device-plugin. | ||
type: string | ||
vlanID: | ||
description: 'The VLAN ID for the CNI configuration, optional | ||
and must be within the specified range: [0.4096).' | ||
format: int32 | ||
maximum: 4094 | ||
minimum: 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 是 破坏性 的 版本 变更,只能说 deprecated ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我也是考虑了一下,目前没有任何地方在引用这个代码,所以感觉可以直接移除?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不是代码引用的问题。
升级 流程上 是否能 会问题,存量实例 的转换 怎么办
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
升级指的是老 CRD 用新镜像,因为新镜像不会用到 enableRdma 这个字段,所以不会影响升级。手动测试过都是正常的,我也是考虑到没地方引用这个字段,所以想一步到位
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
那不现实的,只换镜像,那不叫升级,不处理 CRD 的升级 和转换。那未来 任何新功能,crd 新的定义,存量环境都享受不到,结果它们升级的意义 只是为了 修复 bug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我的意思是即使未升级 CRD只升级镜像测试都没问题,正常升级流程CRD和镜像都要升级,所以更没问题, crd 升级后,crs 中该字段自动移除
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是否要一步到位, 你决定就好,我都OK @weizhoublue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我的意思是即使未升级 CRD只升级镜像测试都没问题--- 不是一个升级服务的流程,不考虑
正常升级流程CRD和镜像都要升级 --- crd 升级后 删除字段,相关实例 是否能正常,是否有验证