Documentation ¶
Index ¶
- func BindToExport(ctx context.Context, t *testing.T, exportClusterName logicalcluster.Name, ...)
- func CreateSheriff(ctx context.Context, t *testing.T, ...)
- func CreateSheriffsSchemaAndExport(ctx context.Context, t *testing.T, clusterName logicalcluster.Name, ...)
- func NewSheriffsCRDWithSchemaDescription(group, description string) *apiextensionsv1.CustomResourceDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindToExport ¶
func BindToExport( ctx context.Context, t *testing.T, exportClusterName logicalcluster.Name, apiExportName string, bindingClusterName logicalcluster.Name, clusterClient kcpclient.Interface, )
BindToExport creates an APIBinding in bindingClusterName that points at apiExportName in exportClusterName. It waits up to wait.ForeverTestTimeout for the APIBinding to have its apisv1alpha1.InitialBindingCompleted status.
func CreateSheriff ¶
func CreateSheriff( ctx context.Context, t *testing.T, dynamicClusterClient *kcpdynamic.ClusterDynamicClient, clusterName logicalcluster.Name, group, name string, )
CreateSheriff creates an instance of a Sheriff CustomResource in the logical cluster identified by clusterName, in the specific API group, and with the specified name. Deprecated: use local fixtures instead.
func CreateSheriffsSchemaAndExport ¶
func CreateSheriffsSchemaAndExport( ctx context.Context, t *testing.T, clusterName logicalcluster.Name, clusterClient kcpclient.Interface, group string, description string, )
CreateSheriffsSchemaAndExport creates a sheriffs apisv1alpha1.APIResourceSchema and then creates a apisv1alpha1.APIExport to export it.
func NewSheriffsCRDWithSchemaDescription ¶
func NewSheriffsCRDWithSchemaDescription(group, description string) *apiextensionsv1.CustomResourceDefinition
NewSheriffsCRDWithSchemaDescription returns a minimal sheriffs CRD in the API group specified with the description used as the object's description in the OpenAPI schema.
Types ¶
This section is empty.