You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The deployment web cannot be deleted and the requests keep performing GET https://172.17.8.101/apis/extensions/v1beta1/namespaces/default/deployments/web. And the response body stays unchanged.
Automatic merge from submit-queue (batch tested with PRs 51186, 50350, 51751, 51645, 51837)
fix bug on kubectl deleting uninitialized resources
**What this PR does / why we need it**:
**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes#51185
**Special notes for your reviewer**:
/assign @caesarxuchao@ahmetb
**Release note**:
```release-note
fix bug on kubectl deleting uninitialized resources
```
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
/sig cli
What happened:
This is not a dup of #49035.
kubectl
cannot delete resources ofDeployment
/ReplicaSet
/StatefulSet
when enablinginitializers
. But works well for other kind of resources.What you expected to happen:
Successfully delete them.
How to reproduce it (as minimally and precisely as possible):
Then create using
Currently you cannot see it using
kubectl get deploy
before #50497 get merged (kubectl get deploy --include-unintialized
).But getting a single resource still works,
The deployment
web
cannot be deleted and the requests keep performingGET https://172.17.8.101/apis/extensions/v1beta1/namespaces/default/deployments/web
. And the response body stays unchanged.Anything else we need to know?:
Environment:
kubectl version
):uname -a
):The text was updated successfully, but these errors were encountered: