Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to delete a worker node using Container V2 API? #437

Open
dvasilen opened this issue Mar 21, 2024 · 0 comments
Open

How to delete a worker node using Container V2 API? #437

dvasilen opened this issue Mar 21, 2024 · 0 comments

Comments

@dvasilen
Copy link

dvasilen commented Mar 21, 2024

I do not see a Container V2 API to Delete a worker node.

Compare:

Container1

//Workers ...
type Workers interface {
	List(clusterName string, target ClusterTargetHeader) ([]Worker, error)
	ListByWorkerPool(clusterIDOrName, workerPoolIDOrName string, showDeleted bool, target ClusterTargetHeader) ([]Worker, error)
	Get(clusterName string, target ClusterTargetHeader) (Worker, error)
	Add(clusterName string, params WorkerParam, target ClusterTargetHeader) error
	Delete(clusterName string, workerD string, target ClusterTargetHeader) error
	Update(clusterName string, workerID string, params WorkerUpdateParam, target ClusterTargetHeader) error
}

Container2

//Workers ...
type Workers interface {
	ListByWorkerPool(clusterIDOrName, workerPoolIDOrName string, showDeleted bool, target ClusterTargetHeader) ([]Worker, error)
	ListWorkers(clusterIDOrName string, showDeleted bool, target ClusterTargetHeader) ([]Worker, error)
	Get(clusterIDOrName, workerID string, target ClusterTargetHeader) (Worker, error)
	ReplaceWokerNode(clusterIDOrName, workerID string, target ClusterTargetHeader) (string, error)
	ListStorageAttachemnts(clusterIDOrName, workerID string, target ClusterTargetHeader) (VoulemeAttachments, error)
	GetStorageAttachment(clusterIDOrName, workerID, volumeAttachmentID string, target ClusterTargetHeader) (VoulemeAttachment, error)
	CreateStorageAttachment(payload VolumeRequest, target ClusterTargetHeader) (VoulemeAttachment, error)
	DeleteStorageAttachment(payload VolumeRequest, target ClusterTargetHeader) (string, error)
}

The Swagger also does not seem to have that https://containers.cloud.ibm.com/global/swagger-global-api/#/
The Cloud Web UI allows you to delete the worker node. What API call does it use for VPC/Gen2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant