Skip to content

Commit

Permalink
update apis to v2beta2 (#4549)
Browse files Browse the repository at this point in the history
Signed-off-by: Cyclinder Kuo <[email protected]>
  • Loading branch information
cyclinder authored Jan 26, 2025
1 parent a301132 commit 938eeb7
Show file tree
Hide file tree
Showing 72 changed files with 550 additions and 1,853 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,6 @@ spec:
spec:
description: CoordinationSpec defines the desired state of SpiderCoordinator.
properties:
detectGateway:
default: false
description: 'DetectGateway to detect the gateway for the pod Deprecated:
gateway detection is now done by IPAM, setting this value has no
effect,this will be removed in the future.'
type: boolean
detectIPConflict:
default: false
description: 'DetectIPConflict to detect the ip conflict for the pod
Deprecated: IP conflict detection is now done by IPAM, setting this
value has no effect,this will be removed in the future.'
type: boolean
hijackCIDR:
description: HijackCIDR configure static routing tables in the pod
that target these subnets to ensure that when the pod accesses these
Expand All @@ -58,15 +46,6 @@ spec:
items:
type: string
type: array
hostRPFilter:
default: 0
description: 'HostRPFilter is used for coordiantor to help set the
rp_filter parameters of the node. NOTE: This field is considered
deprecated in the future. the rp_filter of the node should be configured
by spiderpool-agent rather than coordinator plugin. Configurable
values: <negative number>/0/1/2, -1 means leave it as it is. the
default value is 0.'
type: integer
hostRuleTable:
default: 500
description: HostRuleTable specifies the table number of the routing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,6 @@ spec:
type: array
subnet:
type: string
vlan:
description: 'DEPRECATED: Vlan is deprecated.'
format: int64
maximum: 4094
minimum: 0
type: integer
required:
- subnet
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,6 @@ spec:
coordinator:
description: CoordinationSpec defines the desired state of SpiderCoordinator.
properties:
detectGateway:
default: false
description: 'DetectGateway to detect the gateway for the pod
Deprecated: gateway detection is now done by IPAM, setting this
value has no effect,this will be removed in the future.'
type: boolean
detectIPConflict:
default: false
description: 'DetectIPConflict to detect the ip conflict for the
pod Deprecated: IP conflict detection is now done by IPAM, setting
this value has no effect,this will be removed in the future.'
type: boolean
hijackCIDR:
description: HijackCIDR configure static routing tables in the
pod that target these subnets to ensure that when the pod accesses
Expand All @@ -77,15 +65,6 @@ spec:
items:
type: string
type: array
hostRPFilter:
default: 0
description: 'HostRPFilter is used for coordiantor to help set
the rp_filter parameters of the node. NOTE: This field is considered
deprecated in the future. the rp_filter of the node should be
configured by spiderpool-agent rather than coordinator plugin.
Configurable values: <negative number>/0/1/2, -1 means leave
it as it is. the default value is 0.'
type: integer
hostRuleTable:
default: 500
description: HostRuleTable specifies the table number of the routing
Expand Down Expand Up @@ -164,8 +143,9 @@ spec:
type: boolean
ibsriov:
properties:
ibKubernetesEnabled:
enableIbKubernetes:
default: false
description: Enforces ib-sriov-cni to work with ib-kubernetes.
type: boolean
ippools:
description: SpiderpoolPools could specify the IPAM spiderpool
Expand All @@ -182,20 +162,31 @@ 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
type: object
ipoib:
properties:
Expand All @@ -213,11 +204,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
Expand All @@ -232,10 +226,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.
Expand All @@ -250,15 +240,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
Expand All @@ -269,6 +267,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
Expand All @@ -283,10 +283,6 @@ spec:
- mode
- name
type: object
enableRdma:
default: false
description: enable share rdma for macvlan
type: boolean
ippools:
description: SpiderpoolPools could specify the IPAM spiderpool
CNI configuration default IPv4&IPv6 pools.
Expand All @@ -301,15 +297,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
Expand Down Expand Up @@ -362,9 +366,6 @@ spec:
type: object
sriov:
properties:
enableRdma:
default: false
type: boolean
ippools:
description: SpiderpoolPools could specify the IPAM spiderpool
CNI configuration default IPv4&IPv6 pools.
Expand All @@ -379,20 +380,32 @@ 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
type: integer
required:
- resourceName
type: object
type: object
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ spec:
type: array
subnet:
type: string
vlan:
description: 'DEPRECATED: Vlan is deprecated.'
format: int64
maximum: 4094
minimum: 0
type: integer
required:
- subnet
type: object
Expand Down
Loading

0 comments on commit 938eeb7

Please sign in to comment.