* chore(hack/create-user.sh): let pick bash interpreter from path
bash interpreter binary could be put at different paths than /bin/bash.
Signed-off-by: maxgio92 <massimiliano.giovagnoli.1992@gmail.com>
* refactor(hack/create-user.sh): add helper function to apply dry
add helper function to check commands existence.
Signed-off-by: maxgio92 <massimiliano.giovagnoli.1992@gmail.com>
Kubernetes 1.22 dropped support for certificates.k8s.io/v1beta1, v1
version has been provided since 1.19 and this must be considered as a
breaking change for users using this hack script for older versions.