The kubernetes-unit-test (1.9.3-1.fc28) RPM requires both Python 2 and Python 3:
$ dnf --disablerepo=* --enablerepo=rawhide repoquery --requires kubernetes-unit-test | grep python
This happened due to recently introduced shebangs mangling , and you might see the warnings in the build log:
> + /usr/lib/rpm/redhat/brp-mangle-shebangs
> *** WARNING: mangling shebang in ./var/lib/kubernetes-unit-test/src/k8s.io/kubernetes/cluster/juju/return-node-ips.py from #!/usr/bin/env python to #!/usr/bin/python2. This will become an ERROR, fix it manually!
> *** WARNING: mangling shebang in ./var/lib/kubernetes-unit-test/src/k8s.io/kubernetes/cluster/juju/identify-leaders.py from #!/usr/bin/env python to #!/usr/bin/python2. This will become an ERROR, fix it manually!
> <there are more like this in the build.log>
The executables contain `#!/usr/bin/env python` shebang, which is forbidden by the guidelines and is automatically mangled to `#!/usr/bin/python2` during build. Please fix the shebang to be `#!/usr/bin/python3` explicitly .
It's ok to do this in Rawhide only, however, it would be greatly
appreciated if you could push it to Fedora 27 as well.
If anything is unclear, or if you need any kind of assistance, you can
ask on IRC (#fedora-python on Freenode), or reply here. We'll be happy
to help investigating or fixing this issue!
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.
Kube is now FTBFS in rawhide due to this.