Currently, internal/run.InitKube.Prepare returns an error if its Certificate field is empty (unless SkipTLSVerify is true). That was an error on my part! The kubeconfig only needs a certificate-authority-data field if the cluster CA is using a self-signed certificate.
Currently,
internal/run.InitKube.Prepare
returns an error if itsCertificate
field is empty (unlessSkipTLSVerify
is true). That was an error on my part! The kubeconfig only needs acertificate-authority-data
field if the cluster CA is using a self-signed certificate.internal/run/initkube.go
, remove the non-empty Certificate assertion (and the associated test).kubeconfig
, add anif .Certificate
to the else clause that adds acertificate-authority-data
field.