-
Notifications
You must be signed in to change notification settings - Fork 40.4k
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
Deprecate the PodTemplate API #82435
Comments
/sig architecture |
/assign @johnbelamaric |
/assign @liggitt |
I am supportive of deprecation. It will still be a year before we could remove it. In the meantime, we could document that we recommend disabling the API endpoint. |
Agreed.
We don't have the ability to switch on/off individual resources today, just API group/versions.
I'm not concerned about it as a DOS vector in the meantime since only cluster administrators have permission to read/write the API by default. I'm in favor of removal to avoid confusion. |
What would be a good first step to move this issue forward? |
Next steps: find Deprecation steps from the developer perspective. |
From https://kubernetes.io/docs/reference/using-api/deprecation-policy/#deprecating-parts-of-the-api :
PodSpec is core/v1. Does that mean it can only be dropped in core/v2?
Does this mean we can drop it from core/v1 without having a core/v2? |
To be clear these are the API Operations we are choosing to drop: PodTemplate v1 core
|
/area api-machinery |
@hh: The label(s) 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. |
/sig api-machinery |
@hh: The label(s) 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. |
For what it's worth, we use it at Shopify. In fact, it is used by our open-source tool https://github.com/Shopify/kubernetes-deploy#kubernetes-run. Specifically, it supports a workflow that allows our developers to run specific, code-reviewed commands in production:
Are there other ways we could build this? Certainly. But this was an easy and elegant solution that currently works on any cluster as-is. Given how long it has been around, I wouldn't be surprised if others have similarly found their own uses for the PodTemplate API. |
Given this is actually in use and not a threat, I am closing this issue. /close |
@johnbelamaric: 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. |
We are planning to use it for launching batch jobs from a previously deployed spec, where in particular the docker image reference in the spec corresponds to a build number that is "released" to the environment where the kubernetes cluster sits. |
The PodTemplate API is unused and increases the API surface needlessly.
It should be removed so it's not a default DoS vector.
From #81689 (comment)
@bgrant0607
@liggitt
@johnbelamaric
/area conformance
The text was updated successfully, but these errors were encountered: