Documentation
¶
Index ¶
- Variables
- func CreateAPIServerClientKubeconfig(cert *x509.Certificate, token string, kubeconfigPath, serverURL string) error
- func LoadX509Certificate(certPath string) (*x509.Certificate, error)
- func StartAuthenticatorTestFramework(t *testing.T, setup AuthenticatorTestFrameworkSetup) (client.Interface, client.Interface, framework.TearDownFunc)
- type AuthenticatorTestFrameworkSetup
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiServerClientKubeconfigTemplate = template.Must( template.New("apiserver.kubeconfig").Option("missingkey=error").Parse(` clusters: - name: kubernetes cluster: certificate-authority-data: {{.CertificateAuthorityBase64}} server: {{.ServerURL}} current-context: kubernetes contexts: - name: kubernetes context: cluster: kubernetes user: kubernetes-client users: - name: kubernetes-client user: token: {{.Token}} `))
Functions ¶
func CreateAPIServerClientKubeconfig ¶
func CreateAPIServerClientKubeconfig(cert *x509.Certificate, token string, kubeconfigPath, serverURL string) error
CreateAPIServerClientKubeconfig will create a kubeconfig for the api server client
func LoadX509Certificate ¶
func LoadX509Certificate(certPath string) (*x509.Certificate, error)
func StartAuthenticatorTestFramework ¶
func StartAuthenticatorTestFramework(t *testing.T, setup AuthenticatorTestFrameworkSetup) (client.Interface, client.Interface, framework.TearDownFunc)
Types ¶
type AuthenticatorTestFrameworkSetup ¶
type AuthenticatorTestFrameworkSetup struct { ModifyAuthenticatorServerConfig func(*config.Config) AuthenticatorClientBinaryPath string TestArtifacts string ClusterID string BackendMode []string RoleArn string }
AuthenticatorTestFrameworkSetup holds configuration information for a kube-apiserver test server.
Click to show internal directories.
Click to hide internal directories.