-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Fix and Update Existing Examples #884
Comments
This is awesome! Thanks for looking into the examples and putting together this summary. Some additional thoughts:
|
The I wonder what's happening with the yaml deployment though. The source function for calling the yaml method should be the same. |
/help |
@micw523: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
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. |
The yaml file models from https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#creating-a-deployment. It's probably something wrong with the container image 1.7.9. Please update the yaml file to be the same as https://k8s.io/examples/controllers/nginx-deployment.yaml
|
Sounds good. Looks like the e2e tests would need this update too. Let me quickly fix this today. |
I will start organizing and fixing these examples in the week after next (busy next week unfortunately) and hopefully most of the pull requests trying to update examples will be merged by then as well. |
There is also an issue with the
|
@zmunro The 404 error sounds like the apiserver doesn't understand the requested API resource. Have you registered the CRD to apiserver? python/examples/custom_object.py Lines 18 to 36 in a5cb3d7
It's probably better to have the example run the CRD creation for you |
The
*.py
files in theexamples/
directory need updates for various reasons. Some of them could also use better file names and more commenting within the files (alternatively, there could be aREADME.md
that provides more information about setup and each file). Below are the files that I have tested and found issues for.deployment_examples.py
andcreate_deployment_from_yaml.py
, I think it should be merged with one of thosenginx-deployment.yaml
which creates pods that go to a state of crashloopbackoffprint("Active host is %s" % configuration.host)
line throws the errorAttributeError: module 'kubernetes.client.configuration' has no attribute 'host'
-- in progress with https://github.com/kubernetes-client/python/pull/846/filesnginx-deployment.yaml: using this withfixed by Deprecate extensions/v1beta1 deployment #888create_deployment_from_yaml.py
creates nginx pods that immediately go to a state of crashloopbackofflist_pod_for_all_namespaces
method returns a 401 unauthorized error, probably needs RBAC?Examples without issues:
The text was updated successfully, but these errors were encountered: