Documentation
¶
Index ¶
- func AgentBinary(t *testing.T) string
- func ApplyCRD(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, ...)
- func ArtifactsDirectory(t *testing.T) string
- func BindToAPIExport(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, ...) *kcpapisv1alpha1.APIBinding
- func CreateAPIExport(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, ...) *kcpapisv1alpha1.APIExport
- func CreateKcpAgentKubeconfig(t *testing.T, path string) string
- func CreateOrganization(t *testing.T, ctx context.Context, workspaceName logicalcluster.Name, ...) string
- func CreateWorkspace(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, ...) logicalcluster.Name
- func GetClient(t *testing.T, kubeconfig string) ctrlruntimeclient.Client
- func GetClusterClient(t *testing.T, kubeconfig string) ctrlruntimeclient.Client
- func GetKcpAdminClient(t *testing.T) ctrlruntimeclient.Client
- func GetKcpAdminClusterClient(t *testing.T) ctrlruntimeclient.Client
- func GetKcpAdminKubeconfig(t *testing.T) string
- func GrantWorkspaceAccess(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, ...)
- func RunAgent(ctx context.Context, t *testing.T, name string, kcpKubeconfig string, ...) context.CancelFunc
- func RunEnvtest(t *testing.T, extraCRDs []string) (string, ctrlruntimeclient.Client, context.CancelFunc)
- func ToUnstructured(t *testing.T, obj any) *unstructured.Unstructured
- func WaitForBoundAPI(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, ...)
- func WaitForObject(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentBinary ¶
func ArtifactsDirectory ¶
func BindToAPIExport ¶
func BindToAPIExport(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, apiExport *kcpapisv1alpha1.APIExport) *kcpapisv1alpha1.APIBinding
func CreateAPIExport ¶
func CreateOrganization ¶
func CreateWorkspace ¶
func GetClusterClient ¶
func GetClusterClient(t *testing.T, kubeconfig string) ctrlruntimeclient.Client
func GetKcpAdminClient ¶
func GetKcpAdminClient(t *testing.T) ctrlruntimeclient.Client
func GetKcpAdminClusterClient ¶
func GetKcpAdminClusterClient(t *testing.T) ctrlruntimeclient.Client
func GetKcpAdminKubeconfig ¶
func GrantWorkspaceAccess ¶
func RunEnvtest ¶
func RunEnvtest(t *testing.T, extraCRDs []string) (string, ctrlruntimeclient.Client, context.CancelFunc)
func ToUnstructured ¶
func ToUnstructured(t *testing.T, obj any) *unstructured.Unstructured
func WaitForBoundAPI ¶
func WaitForBoundAPI(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, gvr schema.GroupVersionResource)
func WaitForObject ¶
func WaitForObject(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, obj ctrlruntimeclient.Object, key types.NamespacedName)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.