provider

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ITResourceTagKey is specifically used for integration test
	// primarily to avoid orphan collection of resources when the control cluster is
	// non-seed cluster
	ITResourceTagKey = "kubernetes.io-role-integration-test"

	// ITResourceTagValue is specifically used for integration test
	// primarily to avoid orphan collection of resources when the control cluster is
	// non-seed cluster
	ITResourceTagValue = "1"
)

Functions

This section is empty.

Types

type ResourcesTrackerImpl

type ResourcesTrackerImpl struct {
	MachineClass  *v1alpha1.MachineClass
	ResourceGroup string
	SecretData    map[string][]byte
}

ResourcesTrackerImpl implements the Resource Tracker Interface from the Integration test suite

func (*ResourcesTrackerImpl) InitializeResourcesTracker

func (r *ResourcesTrackerImpl) InitializeResourcesTracker(machineClass *v1alpha1.MachineClass, secretData map[string][]byte, clusterName string) error

InitializeResourcesTracker is the constructor of ResourceTrackerImpl create a cleanup function to delete the list of orphan resources. 1. get list of orphan resources. 2. Mark them for deletion and call cleanup. 3. Print the orphan resources which got error in deletion.

func (*ResourcesTrackerImpl) IsOrphanedResourcesAvailable

func (r *ResourcesTrackerImpl) IsOrphanedResourcesAvailable() bool

IsOrphanedResourcesAvailable checks whether there are any orphaned resources left. If yes, then prints them and returns true. If not, then returns false.

Jump to

Keyboard shortcuts

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