Skip to content

feat: cancel support#538

Open
ShubyM wants to merge 5 commits intoGoogleCloudPlatform:mainfrom
ShubyM:feat/cancel-support
Open

feat: cancel support#538
ShubyM wants to merge 5 commits intoGoogleCloudPlatform:mainfrom
ShubyM:feat/cancel-support

Conversation

@ShubyM
Copy link
Collaborator

@ShubyM ShubyM commented Sep 12, 2025

Adds cancellation support to the web-ui for operations in kubectl-ai. I've been testing this out by creating a namespace with the following configuration:

kubectl create namespace ns-stuck && kubectl -n ns-stuck create configmap blocker --from-literal=note='This ConfigMap will block namespace deletion.' && kubectl -n ns-stuck patch configmap blocker --type=merge -p '{"metadata":{"finalizers":["demo.finalizers.example.com/never-frees"]}}' 

Then asking kubectl-ai to delete the ns-stuck namespace

To cleanup run the following command:

kubectl -n ns-stuck patch configmap blocker --type=merge -p '{"metadata":{"finalizers":[]}}'

@ShubyM ShubyM marked this pull request as ready for review September 25, 2025 23:23
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

Successfully merging this pull request may close these issues.

1 participant