The kubectl wrapper will write some extra output if it can't find a kubectl client that matches the version from the API server, which will interfere with commands in init-cert that pipe its output into another command. I removed the line causing the extra output.
Other changes:
Check existing certificate for both hostname and SAN IP address.
Use functions for code where we're waiting until a timeout.
The kubectl wrapper will write some extra output if it can't find a kubectl client that matches the version from the API server, which will interfere with commands in init-cert that pipe its output into another command. I removed the line causing the extra output.
Other changes: