Documentation ¶
Index ¶
- func BindToExport(ctx context.Context, t *testing.T, exportPath logicalcluster.Path, ...)
- func CreateSheriff(ctx context.Context, t *testing.T, ...)
- func CreateSheriffsSchemaAndExport(ctx context.Context, t *testing.T, path logicalcluster.Path, ...)
- func NewSheriffsCRDWithSchemaDescription(group, description string) *apiextensionsv1.CustomResourceDefinition
- func NewSheriffsCRDWithVersions(group string, versions ...string) *apiextensionsv1.CustomResourceDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindToExport ¶
func BindToExport( ctx context.Context, t *testing.T, exportPath logicalcluster.Path, apiExportName string, bindingClusterName logicalcluster.Path, clusterClient kcpclientset.ClusterInterface, )
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.ClusterInterface, clusterName logicalcluster.Path, 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, path logicalcluster.Path, clusterClient kcpclientset.ClusterInterface, 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.
func NewSheriffsCRDWithVersions ¶ added in v0.10.0
func NewSheriffsCRDWithVersions(group string, versions ...string) *apiextensionsv1.CustomResourceDefinition
Types ¶
This section is empty.