apifixtures

package
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL