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 NewSheriffsAPIExport(apiExportName, schemaName string) *apisv1alpha1.APIExport
- func NewSheriffsAPIResourceSchemaWithDescription(group, description string) *apisv1alpha1.APIResourceSchema
- func NewSheriffsCRDWithSchemaDescription(group, description string) *v1.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 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 dynamic.ClusterInterface, 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.
func CreateSheriffsSchemaAndExport ¶
func CreateSheriffsSchemaAndExport( ctx context.Context, t *testing.T, clusterName logicalcluster.Name, clusterClient kcpclientset.ClusterInterface, group string, description string, )
CreateSheriffsSchemaAndExport creates a sheriffs apisv1alpha1.APIResourceSchema and then creates a apisv1alpha1.APIExport to export it.
func NewSheriffsAPIExport ¶
func NewSheriffsAPIExport(apiExportName, schemaName string) *apisv1alpha1.APIExport
NewSheriffsAPIExport returns a new apisv1alpha1.APIExport named apiExportName pointing at schemaName.
func NewSheriffsAPIResourceSchemaWithDescription ¶
func NewSheriffsAPIResourceSchemaWithDescription(group, description string) *apisv1alpha1.APIResourceSchema
NewSheriffsAPIResourceSchemaWithDescription returns a new apisv1alpha1.APIResourceSchema for a sheriffs resource in the group specified, and with the description used as the object's description in the OpenAPI schema.
func NewSheriffsCRDWithSchemaDescription ¶
func NewSheriffsCRDWithSchemaDescription(group, description string) *v1.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.