apifixtures

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 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 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.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 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.

Jump to

Keyboard shortcuts

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