test

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKubeConfigContent

func NewKubeConfigContent(t *testing.T, serverURL string) []byte

NewKubeConfigContent returns an `io.Reader` to the kubeconfig to access the server with the given URL

func NewKubeConfigFile

func NewKubeConfigFile(t *testing.T, serverURL string) (home string, kubeconfig *os.File)

NewKubeConfigFile returns the path to a the kubeconfig file to access the server with the given URL

func NewServer

func NewServer(t *testing.T) *httptest.Server

NewServer returns a new HTTP Server which supports: - calls to `/api` - calls to `/apis` - calls on some predefined resources - 404 responses otherwise see https://github.com/kubernetes/client-go/blob/master/discovery/discovery_client_test.go

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL