kubernetes: k8s.io/kubernetes/cmd/kubeadm/test/kubeconfig Index | Files

package kubeconfig

import "k8s.io/kubernetes/cmd/kubeadm/test/kubeconfig"

Index

Package Files

util.go

func AssertKubeConfigCurrentAuthInfoWithClientCert Uses

func AssertKubeConfigCurrentAuthInfoWithClientCert(t *testing.T, config *clientcmdapi.Config, signinCa *x509.Certificate, expectedClientName string, expectedOrganizations ...string)

AssertKubeConfigCurrentAuthInfoWithClientCert is a utility function for kubeadm testing that asserts if the CurrentAuthInfo in the given KubeConfig object contains a clientCert that refers to a specific client name, is signed by the expected CA, includes the expected organizations

func AssertKubeConfigCurrentAuthInfoWithToken Uses

func AssertKubeConfigCurrentAuthInfoWithToken(t *testing.T, config *clientcmdapi.Config, expectedClientName, expectedToken string)

AssertKubeConfigCurrentAuthInfoWithToken is a utility function for kubeadm testing that asserts if the CurrentAuthInfo in the given KubeConfig object refers to expected token

func AssertKubeConfigCurrentCluster Uses

func AssertKubeConfigCurrentCluster(t *testing.T, config *clientcmdapi.Config, expectedAPIServerAddress string, expectedAPIServerCaCert *x509.Certificate)

AssertKubeConfigCurrentCluster is a utility function for kubeadm testing that asserts if the CurrentCluster in the given KubeConfig object contains refers to a specific cluster

Package kubeconfig imports 5 packages (graph). Updated 2018-12-14. Refresh now. Tools for package owners.