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 29, 2024
1 parent bc64d7d commit f14f654
Show file tree
Hide file tree
Showing 26 changed files with 1,115 additions and 124 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.

144 changes: 144 additions & 0 deletions api/v1/agent/client/daemonset/delete_ipam_ips_responses.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.

35 changes: 35 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 All @@ -96,6 +102,14 @@ paths:
x-go-name: Failure
schema:
$ref: "#/definitions/Error"
'521':
description: Forbid to release IPs for stateless workload
schema:
$ref: "#/definitions/Error"
'522':
description: Forbid to release IPs for stateful workload
schema:
$ref: "#/definitions/Error"
"/workloadendpoint":
get:
summary: Get workloadendpoint status
Expand Down Expand Up @@ -347,3 +361,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
Loading

0 comments on commit f14f654

Please sign in to comment.