discovery

package
v1.30.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchV1DiscoveryGroups

func FetchV1DiscoveryGroups(ctx context.Context, client testClient) (metav1.APIGroupList, error)

func FetchV1DiscoveryGroupsAtPath

func FetchV1DiscoveryGroupsAtPath(ctx context.Context, client testClient, path string) (metav1.APIGroupList, error)

func FetchV1DiscoveryLegacyGroups

func FetchV1DiscoveryLegacyGroups(ctx context.Context, client testClient) (metav1.APIGroupList, error)

func FetchV1DiscoveryResource

func FetchV1DiscoveryResource(ctx context.Context, client testClient, gv metav1.GroupVersion) (metav1.APIResourceList, error)

func FetchV2Beta1Discovery added in v1.30.0

func FetchV2Beta1Discovery(ctx context.Context, client testClient) (apidiscoveryv2beta1.APIGroupDiscoveryList, error)

func FetchV2Discovery

func FetchV2Discovery(ctx context.Context, client testClient) (apidiscoveryv2.APIGroupDiscoveryList, error)

func FindGroupVersionV1

func FindGroupVersionV1(discovery metav1.APIGroupList, gv metav1.GroupVersion) bool

func NewFakeService

func NewFakeService(name string, client kubernetes.Interface, handler http.Handler) *fakeService

func WaitForGroups

func WaitForGroups(ctx context.Context, client testClient, groups ...apidiscoveryv2.APIGroupDiscovery) error

func WaitForGroupsAbsent

func WaitForGroupsAbsent(ctx context.Context, client testClient, groups ...string) error

func WaitForResultWithCondition

func WaitForResultWithCondition(ctx context.Context, client testClient, condition func(result apidiscoveryv2.APIGroupDiscoveryList) bool) error

func WaitForRootPaths added in v1.29.0

func WaitForRootPaths(t *testing.T, ctx context.Context, client testClient, requirePaths, forbidPaths sets.Set[string]) error

func WaitForV1GroupsWithCondition

func WaitForV1GroupsWithCondition(ctx context.Context, client testClient, condition func(result metav1.APIGroupList) bool) error

func WaitForV1ResourcesWithCondition added in v1.27.0

func WaitForV1ResourcesWithCondition(ctx context.Context, client testClient, gv metav1.GroupVersion, condition func(result metav1.APIResourceList) bool) error

func WaitForV2Beta1ResultWithCondition added in v1.30.0

func WaitForV2Beta1ResultWithCondition(ctx context.Context, client testClient, condition func(result apidiscoveryv2beta1.APIGroupDiscoveryList) bool) error

Types

type FakeService

type FakeService interface {
	Run(ctx context.Context) error
	Port() *int32
	Name() string
}

Jump to

Keyboard shortcuts

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