resources

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Resources

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

func (*Resources) AddNewResource

func (r *Resources) AddNewResource(ctx context.Context, u *unstructured.Unstructured)

AddNewResource adds a new resource to the inventoru

func (*Resources) Apply

func (r *Resources) Apply(ctx context.Context) error

APIApply step 0: get existing resources step 1: remove the exisiting resources from the internal resource list that overlap with the new resources step 2: delete the exisiting resources that are no longer needed step 3: apply the new resources to the api server

func (*Resources) Delete

func (r *Resources) Delete(ctx context.Context) error

APIDelete is used to delete the existing resources that are owned by this cr the implementation retrieves the existing resources and deletes them

func (*Resources) GetNewResources

func (r *Resources) GetNewResources() map[corev1.ObjectReference]*unstructured.Unstructured

Jump to

Keyboard shortcuts

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