func TestGetKubeConfigSpecsFailsIfCADoesntExists(t *testing.T) { … }
func TestGetKubeConfigSpecs(t *testing.T) { … }
func TestBuildKubeConfigFromSpecWithClientAuth(t *testing.T) { … }
func TestBuildKubeConfigFromSpecWithTokenAuth(t *testing.T) { … }
func TestCreateKubeConfigFileIfNotExists(t *testing.T) { … }
func TestCreateKubeconfigFilesAndWrappers(t *testing.T) { … }
func TestWriteKubeConfigFailsIfCADoesntExists(t *testing.T) { … }
func TestWriteKubeConfig(t *testing.T) { … }
func TestValidateKubeConfig(t *testing.T) { … }
func TestValidateKubeconfigsForExternalCA(t *testing.T) { … }
func TestValidateKubeconfigsForExternalCAMissingRoot(t *testing.T) { … }
func setupKubeConfigWithClientAuth(t *testing.T, caCert *x509.Certificate, caKey crypto.Signer, notAfter time.Time, apiServer, clientName, clustername string, organizations ...string) *clientcmdapi.Config { … }
func setupKubeConfigWithTokenAuth(t *testing.T, caCert *x509.Certificate, apiServer, clientName, token, clustername string) *clientcmdapi.Config { … }
func TestEnsureAdminClusterRoleBinding(t *testing.T) { … }
func TestEnsureAdminClusterRoleBindingImpl(t *testing.T) { … }
func TestCreateKubeConfigAndCSR(t *testing.T) { … }
func TestCreateDefaultKubeConfigsAndCSRFiles(t *testing.T) { … }