framework

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 60 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WorkDir = os.Getenv("WORK_DIR")
)

Functions

func ApiextensionsClient

func ApiextensionsClient(t testing.TB, config *rest.Config) apiextensionsclient.Interface

func ApplyFiles added in v0.6.0

func ApplyFiles(t testing.TB, config *rest.Config, filePaths ...string)

ApplyFiles reads the given file paths and applies the manifests contained in them to the cluster specified by config. This is equivalent to `kubectl apply -f <file>`.

func ApplyManifest added in v0.6.0

func ApplyManifest(t testing.TB, config *rest.Config, manifests ...any)

ApplyManifest applies the given manifests to the cluster specified by config.

func BindClient added in v0.6.0

func BindClient(t *testing.T, config *rest.Config) bindclientset.Interface

func BrowserEventuallyAtPath added in v0.5.0

func BrowserEventuallyAtPath(t *testing.T, browser *browser.Browser, path string)

func ClientConfig

func ClientConfig(t *testing.T) *rest.Config

func CreateDexClient added in v0.6.0

func CreateDexClient(t testing.TB, addr net.Addr) (string, string)

func DiscoveryClient

func DiscoveryClient(t testing.TB, config *rest.Config) discovery.DiscoveryInterface

func DynamicClient

func DynamicClient(t testing.TB, config *rest.Config) dynamic.Interface

func GetKubeBindRestClient added in v0.6.0

func GetKubeBindRestClient(t *testing.T, configFile string) client.Client

func InstallKubeBindCRDs added in v0.6.0

func InstallKubeBindCRDs(t testing.TB, clientConfig *rest.Config)

func KubeClient

func KubeClient(t testing.TB, config *rest.Config) kubernetes.Interface

func Login added in v0.6.0

func Login(t *testing.T, iostreams genericclioptions.IOStreams, authURLCh chan<- string, configFile, serverURL, clusterID string)

func NewRESTConfig added in v0.5.0

func NewRESTConfig(t *testing.T, kubeconfig string) *rest.Config

func NewWorkspace

func NewWorkspace(t *testing.T, config *rest.Config, options ...ClusterWorkspaceOption) (*rest.Config, string)

func RandomString added in v0.6.0

func RandomString(length int) string

func RestToKubeconfig

func RestToKubeconfig(config *rest.Config, namespace string) clientcmdapi.Config

func SimulateBrowser added in v0.6.0

func SimulateBrowser(t *testing.T, authURLCh chan string)

func StartBackend

func StartBackend(t testing.TB, args ...string) (net.Addr, *backend.Server)

func StartDex added in v0.6.0

func StartDex(t testing.TB)

func StartKonnector

func StartKonnector(t *testing.T, clientConfig *rest.Config, args ...string) *konnector.Server

func WriteKubeconfig added in v0.6.0

func WriteKubeconfig(t testing.TB, config clientcmdapi.Config, name string) string

Types

type ClusterWorkspaceOption

type ClusterWorkspaceOption func(ws *tenancyv1alpha1.Workspace)

func WithGenerateName

func WithGenerateName(s string, formatArgs ...any) ClusterWorkspaceOption

func WithName

func WithName(s string, formatArgs ...any) ClusterWorkspaceOption

func WithStaticName added in v0.6.0

func WithStaticName(s string) ClusterWorkspaceOption

Jump to

Keyboard shortcuts

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