question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deleting namespaced deployment returns with code=None

See original GitHub issue

When 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:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
brejoccommented, Aug 29, 2017

@tomplus @mbohlool That sounds awesome. Thanks guys!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found