-
Notifications
You must be signed in to change notification settings - Fork 3.3k
#884: Cleanup examples folder #938
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn’t get through all of it, but some of the changes introduced here do warrant more discussion / more carefully thought over. Also, large PRs can be very hard to review.
# shortNames: | ||
# - ct | ||
""" | ||
Uses a Custom Resource Definition (CRD) to create a custom object, in this case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this first sentence needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what you're asking? Let me know if you'd prefer something else.
CI is failing - please address the code style suggestions by the CI |
@micw523 I fixed all the code style suggestions related to the files touched in this PR but there's additional ones about unrelated files.
|
E501 errors are non-blocking; the problems are in pod_namespace_watch.py, examples/pod_exec.py, pod_config_list.py, examples/custom_object.py. Try using autopep8 with aggressive level 2 on those files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The create_deployment.py
file is renamed to deployment_create_yaml.py
. I prefer the previous name b/c this file is not using the create_from_yaml
utlity but calling the API directly.
@@ -1,367 +0,0 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a little different from the create_deployment
file since it is also using rollback and rollingupdate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restored. I also changed deployment_create_yaml.py
to deployment_create.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these ipynb file auto-generated? Do they affect the document website? @micw523
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is not automatically generated and was written by someone a long time ago. However, I believe this one is a little out of date for using beta API (?).
Renamed files: examples/create_deployment.py → examples/deployment_create.py |
example1 and in_cluster_config are under different assumptions and use different config loading methods. Could you keep both of them and rename example1 to out_of_cluster_config (similar to what client-go has)? |
@roycaihw done, and I rebased. |
One major questions about unexpected example content being changed (oversight during copy-pasting?): #938 (comment). Otherwise looks pretty good. Thanks @scottilee! /approve @micw523 has lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: roycaihw, scottilee The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Yeah, lgtm to me as long as the last round of comments are addressed. |
/lgtm |
Fixes #884