discoverytest

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package discoverytest contains a fake implementation of the API discovery mechanism seeded with the types used in Config Sync.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRDsToAPIGroupResources

func CRDsToAPIGroupResources(crds []*v1beta1.CustomResourceDefinition) []*restmapper.APIGroupResources

CRDsToAPIGroupResources converts a list of CRDs to the corresponding APIGroupResources the server would return.

As-is assumes each CRD is a different APIGroup. Don't bother fixing unless you need to test a case where you need to sync multiple CRDs for the same APIGroup.

func Client

Client returns a new test DiscoveryClient that has mappings for test and provided resources.

Types

This section is empty.

Jump to

Keyboard shortcuts

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