Python: CRD's don't have dry_run option

Created on 10 May 2020  路  8Comments  路  Source: kubernetes-client/python

While working with CRDs (create/patch/delete), there is no dry_run option similar to the other native objects.

API Call for creating a custom object

api_instance.create_namespaced_custom_object(group, version, namespace, plural, body, pretty=pretty)
Reference - create_namespaced_custom_object

API Call for Deployment

api_instance.create_namespaced_deployment(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)

Is there any workaround to this?

Most helpful comment

Hi @sniranjan, the support for dry-run to CRD's has recently been added (https://github.com/kubernetes-client/gen/pull/154). Whenever the next client version is generated, it would get updated.

/assign

All 8 comments

Hi @sniranjan, the support for dry-run to CRD's has recently been added (https://github.com/kubernetes-client/gen/pull/154). Whenever the next client version is generated, it would get updated.

/assign

Hi @palnabarun , when can we expect the next version of the client? It's currently blocking us for the dry-run feature
Thanks

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@sniranjan @LouisPlisso -- with https://github.com/kubernetes-client/python/pull/1280, this feature would come to the latest stable client release. Thank you for your patience. :+1:

/remove-lifecycle rotten

This has now been resolved with the latest client release.

/close

@palnabarun: Closing this issue.

In response to this:

This has now been resolved with the latest client release.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Was this page helpful?
0 / 5 - 0 ratings