test

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestApplier

func NewTestApplier(c client.Client, discovery discovery.DiscoveryInterface) (kubernetes.Applier, error)

NewTestApplier creates a new fake applier.

Types

type FakeDiscovery

type FakeDiscovery struct {
	*fakediscovery.FakeDiscovery

	GroupListFn   func() *metav1.APIGroupList
	ResourceMapFn func() map[string]*metav1.APIResourceList
	// contains filtered or unexported fields
}

FakeDiscovery is used to tests, more specifically - chart applier.

func (*FakeDiscovery) ServerGroups

func (c *FakeDiscovery) ServerGroups() (*metav1.APIGroupList, error)

ServerGroups return group lists from ResourceMapFn

func (*FakeDiscovery) ServerResourcesForGroupVersion

func (c *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error)

ServerResourcesForGroupVersion returns resource lists from ResourceMapFn

func (*FakeDiscovery) ServerVersion

func (c *FakeDiscovery) ServerVersion() (*version.Info, error)

ServerVersion return empty version.

Jump to

Keyboard shortcuts

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