-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Issue generators listing with k8s.io/docs/reference/kubectl/conventions/ #12090
Comments
Looks like we need both code patches and doc patches for this. |
i think we need to also understand when the deprecation of the generators is coming in - see https://stackoverflow.com/questions/52890718/kubectl-run-is-deprecated-looking-for-alternative @soltysh any insights when this might be targeted ? maybe we can remove the entire section from the docs |
Generator were deprecated in 1.12, so we'll need to wait to 1.15 at least to get that removed. We should update the docs but clearly state it's deprecated functionality. Also we need to fix code where needed. |
thank you for taking the time to respond. |
/assign @DanyC97 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. 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. |
This is a...
Problem:
The documentation at https://kubernetes.io/docs/reference/kubectl/conventions/#generators suggests that I should be able to use the generator
extensions/v1beta1
much asdeployment/v1beta1
as it listskubectl run --generator=extensions/v1beta1
right next tokubectl run --generator=deployment/v1beta1
, with the latter being recommended.But is the difference really that one is recommended and the other not?
kubectl run --generator=deployment/v1beta1 foobar --image=nginx -o yaml --dry-run
works but withextensions/v1beta1
you geterror: generator "apps/v1beta1" not found
(e.g. when running via the interactive environment in https://kubernetes.io/docs/tutorials/kubernetes-basics/create-cluster/cluster-interactive/).Proposed Solution:
Either remove the non-recommended options or clarify how or when they can be used.
Page to Update:
https://kubernetes.io/docs/reference/kubectl/conventions/#generators
The text was updated successfully, but these errors were encountered: