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 CreateAndWaitForWorkspace(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, ...) logicalcluster.Name
- func CreateKcpAgentKubeconfig(t *testing.T, path string) string
- func GetClient(t *testing.T, kubeconfig string) ctrlruntimeclient.Client
- func GetClusterClient(t *testing.T, kubeconfig string) mcclient.ClusterClient
- func GetKcpAdminClient(t *testing.T) ctrlruntimeclient.Client
- func GetKcpAdminClusterClient(t *testing.T) mcclient.ClusterClient
- func GetKcpAdminKubeconfig(t *testing.T) string
- func GrantWorkspaceAccess(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, ...)
- func KCPMinor() int
- func RunAgent(ctx context.Context, t *testing.T, kcpKubeconfig string, ...) context.CancelFunc
- func Subject() rbacv1.Subject
- func ToUnstructured(t *testing.T, obj any) *unstructured.Unstructured
- func WaitForWorkspaceInitialization(t *testing.T, ctx context.Context, clusterClient mcclient.ClusterClient, ...) *kcptenancyv1alpha1.Workspace
- func YAMLToUnstructured(t *testing.T, data string) *unstructured.Unstructured
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentBinary ¶
func ArtifactsDirectory ¶
func CreateAndWaitForWorkspace ¶
func CreateAndWaitForWorkspace(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, workspaceName string) logicalcluster.Name
func GetClusterClient ¶
func GetClusterClient(t *testing.T, kubeconfig string) mcclient.ClusterClient
func GetKcpAdminClient ¶
func GetKcpAdminClient(t *testing.T) ctrlruntimeclient.Client
func GetKcpAdminClusterClient ¶
func GetKcpAdminClusterClient(t *testing.T) mcclient.ClusterClient
func GetKcpAdminKubeconfig ¶
func GrantWorkspaceAccess ¶
func GrantWorkspaceAccess(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, rbacSubject rbacv1.Subject, extraRules ...rbacv1.PolicyRule)
func Subject ¶
Subject returns the appropriate RBC subject for the init-agent to use. kcp is started with a custom token file that defines this special user.
func ToUnstructured ¶
func ToUnstructured(t *testing.T, obj any) *unstructured.Unstructured
func WaitForWorkspaceInitialization ¶
func WaitForWorkspaceInitialization(t *testing.T, ctx context.Context, clusterClient mcclient.ClusterClient, parentWorkspace logicalcluster.Path, workspaceName string) *kcptenancyv1alpha1.Workspace
func YAMLToUnstructured ¶
func YAMLToUnstructured(t *testing.T, data string) *unstructured.Unstructured
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.