-
Notifications
You must be signed in to change notification settings - Fork 26
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
OSValidator doesn't work on Windows #39
Comments
/assign |
This seems to be added for a long time(5 years ago). Do we have windows CI for this or kubeadm windows CI? @neolit123 |
kubeadm team does not, but sig windows had/has e2e tests. currently i believe mostly capz is validating kubeadm. @jsturtevant has this been failing for a while? this is the first report i see about this, so i wonder if uname exists in some windows servers (and nanoserver) as a stock tool? i don't think it's available by default as it's a unix-ism... yet, long ago i was testing kubeadm on windows and don't remember this being a problem. |
Probably, I should use the kubelet way https://github.com/kubernetes/kubernetes/blob/1dbf0830c59038822f37eaf5a1d4f7583f1a1081/pkg/kubelet/winstats/version.go#L34-L76 to get the windows kernel version . |
not a fan of poking the registry. kernel version is not the problem, as we already use the correct tool for that. the problem is the uname call, for that we can parse various other powershell outputs or just /unassign @pacoxu |
actually what the kubelet does with the registry might be the most portable way across various flavors inc nanosever. |
PR attempt, PTAL: |
I don't see any issues in kubeadm. I am not sure exactly where it is used in kubeadm though. I was exploring enabled the e2e_node test suite and found it when validation ran
No I don't think it is used in windows server anywhere. It might be in the e2e test nano server images we use like busybox but that is installed seperately. |
It looks like this supports windows since there is a windows spec but os validator fails:
The text was updated successfully, but these errors were encountered: