Skip to content

Commit

Permalink
update apis to v2beta2
Browse files Browse the repository at this point in the history
Signed-off-by: Cyclinder Kuo <[email protected]>
  • Loading branch information
cyclinder committed Jan 24, 2025
1 parent be3c600 commit 38356b2
Show file tree
Hide file tree
Showing 73 changed files with 597 additions and 1,835 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
singular: spidercoordinator
scope: Cluster
versions:
- name: v2beta1
- name: v2beta2
schema:
openAPIV3Schema:
description: SpiderCoordinator is the Schema for the spidercoordinators API.
Expand Down Expand Up @@ -54,15 +54,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 @@ -43,7 +43,7 @@ spec:
jsonPath: .status.current.node
name: NODE
type: string
name: v2beta1
name: v2beta2
schema:
openAPIV3Schema:
description: Spiderndpoint is the Schema for the spiderendpoints API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
name: APP-NAMESPACE
priority: 10
type: string
name: v2beta1
name: v2beta2
schema:
openAPIV3Schema:
description: SpiderIPPool is the Schema for the spiderippools API.
Expand Down 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 @@ -18,7 +18,7 @@ spec:
singular: spidermultusconfig
scope: Namespaced
versions:
- name: v2beta1
- name: v2beta2
schema:
openAPIV3Schema:
properties:
Expand Down Expand Up @@ -74,15 +74,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 @@ -161,8 +152,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 @@ -179,20 +171,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 @@ -210,11 +213,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 @@ -229,10 +235,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 @@ -247,15 +249,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 @@ -266,6 +276,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 @@ -280,10 +292,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 @@ -298,15 +306,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 @@ -359,9 +375,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 @@ -376,20 +389,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 @@ -23,7 +23,7 @@ spec:
jsonPath: .spec.ipVersion
name: VERSION
type: string
name: v2beta1
name: v2beta2
schema:
openAPIV3Schema:
description: SpiderReservedIP is the Schema for the spiderreservedips API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
jsonPath: .status.totalIPCount
name: TOTAL-IP-COUNT
type: integer
name: v2beta1
name: v2beta2
schema:
openAPIV3Schema:
description: SpiderSubnet is the Schema for the spidersubnets API.
Expand Down 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 38356b2

Please sign in to comment.