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 8, 2025
1 parent 068a5cc commit 7130735
Show file tree
Hide file tree
Showing 45 changed files with 4,927 additions and 38 deletions.
131 changes: 131 additions & 0 deletions charts/spiderpool/crds/spiderpool.spidernet.io_spidercoordinators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,137 @@ spec:
type: object
type: object
served: true
storage: false
subresources:
status: {}
- name: v2beta2
schema:
openAPIV3Schema:
description: SpiderCoordinator is the Schema for the spidercoordinators API.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: CoordinationSpec defines the desired state of SpiderCoordinator.
properties:
detectGateway:
default: false
description: DetectGateway to detect the gateway for the pod
type: boolean
detectIPConflict:
default: false
description: DetectIPConflict to detect the ip conflict for the pod
type: boolean
hijackCIDR:
description: HijackCIDR configure static routing tables in the pod
that target these subnets to ensure that when the pod accesses these
subnets, packets are forwarded through the host network stack, such
as nodelocaldns(169.254.0.0/16)
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
table used to configure the communication between the pod and the
local node.
type: integer
mode:
default: auto
description: Mode mode specifies the mode in which the coordinator
runs, and the configurable values include auto (default), underlay,
overlay, disabled.
enum:
- auto
- underlay
- overlay
- disabled
type: string
podCIDRType:
description: CoordinatorSpec is used by SpiderCoordinator and SpiderMultusConfig
in spidermultusconfig CRD , podCIDRType should not be required,
which could be merged from SpiderCoordinator CR but in SpiderCoordinator
CRD, podCIDRType should be required
enum:
- auto
- cluster
- calico
- cilium
- none
type: string
podDefaultRouteNIC:
description: PodDefaultRouteNIC PodDefaultRouteNIC is used to configure
the NIC where the pod's default route resides. the default value
is empty, which means the default route will remain at eth0.
type: string
podMACPrefix:
description: 'PodMACPrefix the fixed MAC address prefix, the length
is two bytes. the lowest bit of the first byte must be 0, which
indicates the unicast MAC address. example: 0a:1b'
type: string
podRPFilter:
default: 0
description: 'PodRPFilter is used for coordiantor to help set the
rp_filter parameters of the pod. Configurable values: <negative
number>/0/1/2. negative number means leave it as it is. the default
value is 0.'
type: integer
tunePodRoutes:
default: true
description: TunePodRoutes specifies whether to tune pod routes of
multiple NICs on pods.
type: boolean
txQueueLen:
default: 0
description: TxQueueLen to set the tx_queue_len of the pod. requirement
is a positive integer the default value is 0, which means leaving
it as it is.
type: integer
vethLinkAddress:
description: VethLinkAddress configure a ipv4 link-local address for
veth0 device. empty means disable. default is empty. Format is like
169.254.100.1
type: string
type: object
status:
description: CoordinationStatus defines the observed state of SpiderCoordinator.
properties:
overlayPodCIDR:
items:
type: string
type: array
phase:
type: string
reason:
type: string
serviceCIDR:
items:
type: string
type: array
required:
- phase
type: object
type: object
served: true
storage: true
subresources:
status: {}
111 changes: 111 additions & 0 deletions charts/spiderpool/crds/spiderpool.spidernet.io_spiderendpoints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,116 @@ spec:
type: object
type: object
served: true
storage: false
subresources: {}
- additionalPrinterColumns:
- description: interface
jsonPath: .status.current.ips[0].interface
name: INTERFACE
type: string
- description: ipv4Pool
jsonPath: .status.current.ips[0].ipv4Pool
name: IPV4POOL
type: string
- description: ipv4
jsonPath: .status.current.ips[0].ipv4
name: IPV4
type: string
- description: ipv6Pool
jsonPath: .status.current.ips[0].ipv6Pool
name: IPV6POOL
type: string
- description: ipv6
jsonPath: .status.current.ips[0].ipv6
name: IPV6
type: string
- description: node
jsonPath: .status.current.node
name: NODE
type: string
name: v2beta2
schema:
openAPIV3Schema:
description: Spiderndpoint is the Schema for the spiderendpoints API.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
status:
description: WorkloadEndpointStatus defines the observed state of SpiderEndpoint.
properties:
current:
properties:
ips:
items:
properties:
cleanGateway:
type: boolean
interface:
type: string
ipv4:
type: string
ipv4Gateway:
type: string
ipv4Pool:
type: string
ipv6:
type: string
ipv6Gateway:
type: string
ipv6Pool:
type: string
routes:
items:
properties:
dst:
type: string
gw:
type: string
required:
- dst
- gw
type: object
type: array
vlan:
default: 0
description: 'DEPRECATED: Vlan is deprecated.'
format: int64
maximum: 4094
minimum: 0
type: integer
required:
- interface
type: object
type: array
node:
type: string
uid:
type: string
required:
- ips
- node
- uid
type: object
ownerControllerName:
type: string
ownerControllerType:
type: string
required:
- current
- ownerControllerName
- ownerControllerType
type: object
type: object
served: true
storage: true
subresources: {}
Loading

0 comments on commit 7130735

Please sign in to comment.