Skip to content

Commit

Permalink
add ip release for ip conflict situation
Browse files Browse the repository at this point in the history
Signed-off-by: Icarus9913 <[email protected]>
  • Loading branch information
Icarus9913 committed Jan 17, 2024
1 parent d990b82 commit 8400439
Show file tree
Hide file tree
Showing 22 changed files with 615 additions and 97 deletions.
22 changes: 22 additions & 0 deletions api/v1/agent/client/daemonset/delete_ipam_ips_parameters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

131 changes: 131 additions & 0 deletions api/v1/agent/models/ipam_batch_del_args.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions api/v1/agent/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ paths:
Delete multiple ip for a pod, case for spiderflat compent
tags:
- daemonset
parameters:
- name: ipam-batch-del-args
in: body
required: true
schema:
$ref: "#/definitions/IpamBatchDelArgs"
responses:
"200":
description: Success
Expand Down Expand Up @@ -347,3 +353,24 @@ definitions:
type: string
podNamespace:
type: string
IpamBatchDelArgs:
description: IPAM release IPs information
type: object
properties:
isReleaseConflictIPs:
type: boolean
containerID:
type: string
netNamespace:
type: string
podNamespace:
type: string
podName:
type: string
podUID:
type: string
required:
- containerID
- podNamespace
- podName
- podUID
80 changes: 80 additions & 0 deletions api/v1/agent/server/embedded_spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ spec:
type: array
vlan:
default: 0
description: 'DEPRECATED: Vlan is deprecated.'
format: int64
maximum: 4094
minimum: 0
Expand Down
Loading

0 comments on commit 8400439

Please sign in to comment.