Deleting namespaced deployment returns with code=None
See original GitHub issueWhen invoking delete_namespaced_deployment_with_http_info(), the response looks like this:
{'api_version': 'extensions/v1beta1',
'code': None,
'details': None,
'kind': 'Deployment',
'message': None,
'metadata': {'resource_version': '6894440',
'self_link': '/apis/extensions/v1beta1/namespaces/default/deployments/my-nginx'},
'reason': None,
'status': "{u'observedGeneration': 1}"}
The deployment is successfully removed from the Kubernetes cluster, but the return code is None
. @flavio mentioned in flavio/salt-kubernetes-demo/issues/1 that this is due the fact that this is an async operation internally.
How should we treat those cases? Is a None
return code intended here? How do we know, that the request finally succeeded?
Tested with version 1.0.2 and 2.0.0.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
How to fix Kubernetes namespaces stuck in the terminating state
You might try to delete it from the user interface (UI). To do so, click on the three dots shown at the right...
Read more >Delete namespace | Service Directory - Google Cloud
Delete a Service Directory namespace. Explore further. For detailed documentation that includes this code sample, see the following: Configure Service Directory ...
Read more >Share a Cluster with Namespaces - Kubernetes
Deleting a namespace ... Warning: This deletes everything under the namespace! This delete is asynchronous, so for a time you will see the ......
Read more >Delete Confluent Platform Deloyment
To delete a CFK and Confluent Platform deployment: Check which of the CFK resources were deployed and locate their CRs: kubectl get confluent...
Read more >Managing Kubernetes Using Kubectl — Cheat Sheet
k8s namespace. kubectl get ns; kubectl config set-context --current --namespace=<NAMESPACE>; kubectl delete namespaces <NAMESPACE> ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tomplus @mbohlool That sounds awesome. Thanks guys!
Yes watch is the way to go. https://github.com/kubernetes-incubator/client-python/blob/master/examples/example2.py