Skip to content

[Examples] Incorrect Module Reference #252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
codevulture opened this issue Jun 12, 2017 · 12 comments
Closed

[Examples] Incorrect Module Reference #252

codevulture opened this issue Jun 12, 2017 · 12 comments
Labels
documentation_only generated-client-updated help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. help-needed kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@codevulture
Copy link
Contributor

client-python/examples/create_thirdparty_resource.md
Shows:
from kubernetes.rest import ApiException
should be
from kubernetes.client.rest import ApiException
Kindly check.

@mbohlool
Copy link
Contributor

Yes, all examples need to be updated. We should update example's template (and probably documentation templates) to match our client structure.

@wyjw
Copy link

wyjw commented Jul 6, 2017

Could I be assigned this?

I would go through and fix the module imports for all the examples.

Could you please elaborate on what else needs to be changed about the template for the examples and the documentation? I could try to see what I can do.

@mbohlool
Copy link
Contributor

mbohlool commented Jul 6, 2017

Great, Fixing imports (and adding a config.load_kube_config) would be a great start. Just look at one of the examples in examples/ folder and make examples template look close to those. Now to fix templates, you need to copy them somewhere. We are moving toward using kubernetes-client/gen repo for all generations: #284

I have a PR in that repo to move templates from swagger-codegen to gen repo for java client: kubernetes-client/gen#16

you can follow the same pattern, copy templates and start changing them. Make sure you document the branch/sha key from which you copied templates. Don't do everything in one PR, send a PR for moving templates (and all changes necessary for them to work) first to make sure we are on the right path and then start sending PRs to fix example(s) template. Let me know if you had any questions.

@wyjw
Copy link

wyjw commented Jul 7, 2017

Thanks for the pointers. Ok will do. I'll follow the examples for the java client and try to do something similar.

@mbohlool
Copy link
Contributor

mbohlool commented Jul 7, 2017 via email

@wyjw
Copy link

wyjw commented Jul 16, 2017

I'm swamped with work unexpectedly and unfortunately. If anyone else wants to take this, go for it. Sorry.

@roycaihw roycaihw added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Oct 30, 2018
@iamneha
Copy link
Contributor

iamneha commented Oct 31, 2018

/assign @iamneha

@k8s-ci-robot
Copy link
Contributor

@iamneha: GitHub didn't allow me to assign the following users: iamneha.

Note that only kubernetes-client members and repo collaborators can be assigned.
For more information please see the contributor guide

In response to this:

/assign @iamneha

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.

@fejta-bot
Copy link

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

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 26, 2019
@fejta-bot
Copy link

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

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 26, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation_only generated-client-updated help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. help-needed kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

7 participants