-
Notifications
You must be signed in to change notification settings - Fork 81
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
Remove deprecated fields for v2beta1 APIs #4549
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4549 +/- ##
==========================================
- Coverage 75.69% 75.25% -0.45%
==========================================
Files 56 56
Lines 6760 6760
==========================================
- Hits 5117 5087 -30
- Misses 1428 1462 +34
+ Partials 215 211 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
// ChainCNIJsonData is used to configure the configuration of chain CNI. | ||
// format in json. | ||
// +kubebuilder:validation:Optional | ||
ChainCNIJsonData []string `json:"chainCNIJsonData"` |
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.
CustomCNIConfig
层级尴尬
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.
这是 ChainCNIJsonData , 用于配置 chainCNI,customCNIConfig 是另外的字段
// 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. | ||
RdmaResourceName string `json:"rdmaResourceName"` |
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.
这个怎么不是 omitempty
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.
应该是 omitempty
// 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. | ||
RdmaResourceName string `json:"rdmaResourceName"` |
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.
omitempty
// +kubebuilder:validation:Required | ||
// The SR-IOV RDMA resource name of the SpiderMultusConfig. the SR-IOV RDMA resource is often | ||
// reported to kubelet by the sriov-device-plugin. | ||
ResourceName string `json:"resourceName"` |
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.
omitempty
// +kubebuilder:validation:Optional | ||
// +kubebuilder:deprecated:reason="This field is deprecated and will be removed in future versions." | ||
// DEPRECATED, use RdmaIsolation flled instead. | ||
EnableRdma bool `json:"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.
remove
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.
why? 这是官方支持的
// 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. | ||
RdmaIsolation bool `json:"rdmaIsolation"` |
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.
omitempty
// +kubebuilder:validation:Optional | ||
// +kubebuilder:default=false | ||
// Enforces ib-sriov-cni to work with ib-kubernetes. | ||
IbKubernetesEnabled *bool `json:"ibKubernetesEnabled,omitempty"` |
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.
EnableIbKubernetes
301b2e6
to
02cb8d7
Compare
可以忽略 Auto Golang Lint And Unittest 错误,因为修改了 vendor |
a3bfdf5
to
d632b07
Compare
Ignore Auto MarkDown Lint / Markdown Lint, #4560 Will fix it. |
// +kubebuilder:validation:Optional | ||
// enable share rdma for macvlan | ||
EnableRdma bool `json:"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.
我记得,这个 是 移除了 ? 还是改名了
// +kubebuilder:validation:Optional | ||
// enable share rdma for ipvlan | ||
EnableRdma bool `json:"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.
这个
CI |
Ignore Auto MarkDown Lint / Markdown Lint, #4560 Will fix it. |
RdmaResourceName string `json:"rdmaResourceName"` | ||
// 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. |
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.
omitempty 都是定义为 指针的
// 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. | ||
RdmaResourceName string `json:"rdmaResourceName,omitempty"` |
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.
同理
a2ba24a
to
d177e3b
Compare
Signed-off-by: Cyclinder Kuo <[email protected]>
Thanks for contributing!
Notice:
"release/none"
"release/bug"
"release/feature"
What issue(s) does this PR fix:
Fixes #
Special notes for your reviewer:
As a part of #4301