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
statefulset don't have podSpec validation #81147
Comments
@kubernetes/sig-apps-bugs |
see #64841 for issues with tightening validation |
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. |
What happened:
Currently statefulset don't have podSpec validation, which might result in we can create statefulset with invalid podSpec, but this statefulset can't create any pod.
What you expected to happen:
Statefulset validation should cover PodTemplateSpec validation.
How to reproduce it (as minimally and precisely as possible):
Create a statefulset with invalid podSpec, like container name more then 63 characters. For example:
Anything else we need to know?:
I can see
ValidatePodTemplateSpec
function inValidatePodTemplateSpecForStatefulSet
be commented, which said check volumes will fail for statefulset, I don't know this background, do we have any schedule to fix this TODO?kubernetes/pkg/apis/apps/validation/validation.go
Lines 47 to 62 in a51d574
Environment:
kubectl version
): masterThe text was updated successfully, but these errors were encountered: