-
Notifications
You must be signed in to change notification settings - Fork 884
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
kubectl explain template fails when array includes boolean value #1590
Comments
I verified that CRD is successfully applied to API server. /triage accepted @alexzielenski @ah8ad3 do you have any insights about how to troubleshoot this?. I spent some time on it but couldn't sort out. Thanks. |
Thanks for raising this issue Arda. Tested it with some CRD's few months ago and it worked fine, i will take a look at this. |
I haven’t dug too deeply into it my guess would be that the problem is your schema uses ‘additionalProperties: true’ while the template assumes it is always a schema in a few places:
the template should be changed to handle/ignore bool case |
@ardaguclu After some debugging i find out if you remove line 77 of schema. It would work fine. |
Thanks @alexzielenski, code wants to iterate over |
Thanks a lot for taking care of this. |
What happened:
apply the example CRD and running
kubectl explain
fails with;CRD
What you expected to happen:
kubectl explain properly renders the CRD to template
How to reproduce it (as minimally and precisely as possible):
Apply CRD and run
kubectl explain
Anything else we need to know?:
Environment:
kubectl version
): 1.28, 1.29, 1.30cat /etc/os-release
):The text was updated successfully, but these errors were encountered: