testing

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeObjectCreater

func NewFakeObjectCreater() runtime.ObjectCreater

NewFakeObjectCreater implements ObjectCreater, it can create empty objects (unstructured) of the given GVK.

Types

type TestFieldManagerImpl

type TestFieldManagerImpl struct {
	// contains filtered or unexported fields
}

func NewTestFieldManagerImpl

func NewTestFieldManagerImpl(typeConverter managedfields.TypeConverter, gvk schema.GroupVersionKind, subresource string, chainFieldManager func(internal.Manager) internal.Manager) *TestFieldManagerImpl

NewTestFieldManager creates a new manager for the given GVK.

func (*TestFieldManagerImpl) APIVersion

func (f *TestFieldManagerImpl) APIVersion() string

APIVersion of the object that we're tracking.

func (*TestFieldManagerImpl) Apply

func (f *TestFieldManagerImpl) Apply(obj runtime.Object, manager string, force bool) error

Apply applies the given object on top of the current liveObj, for the given manager and force flag.

func (*TestFieldManagerImpl) Live

Live returns a copy of the current liveObject.

func (*TestFieldManagerImpl) ManagedFields

func (f *TestFieldManagerImpl) ManagedFields() []metav1.ManagedFieldsEntry

ManagedFields returns the list of existing managed fields for the liveObj.

func (*TestFieldManagerImpl) Reset

func (f *TestFieldManagerImpl) Reset()

Reset resets the state of the liveObject by resetting it to an empty object.

func (*TestFieldManagerImpl) Update

func (f *TestFieldManagerImpl) Update(obj runtime.Object, manager string) error

Update will updates the managed fields in the liveObj based on the changes performed by the update.

Jump to

Keyboard shortcuts

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