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.

CRD's don't have dry_run option

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
palnabaruncommented, May 10, 2020

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

1reaction
palnabaruncommented, Oct 14, 2020

@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. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command Line Tools — CRDS 11.16.16 documentation
The command line tools operate on CRDS reference and mapping files both inside and outside the CRDS cache. In all releases CRDS has...
Read more >
Custom Resource Definitions - Helm
The purpose of "Dry Run" is to validate that the output of the chart will actually work if sent to the server. But...
Read more >
APIServer dry-run and kubectl diff - Kubernetes
The existing solution is to run kubectl apply --dry-run , but this runs a local dry-run that doesn't talk to the server: it...
Read more >
Sync Options - Argo CD - Declarative GitOps CD for Kubernetes
1) The CRD manifest is part of the same sync. Then Argo CD will automatically skip the dry run, the CRD will be...
Read more >
& : Always Use Dry-run Options If Possible
I am asking git to verbosely add any changed files in the current directory and below, including any files previously committed.
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