cleanup

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleanup

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

func New

func New(
	upstream client.Client,
	mapper meta.RESTMapper,
	localDynamicClient *dynamic.DynamicClient,
	deployer HelmDeployer,
	fleetNamespace string,
	defaultNamespace string,
	garbageCollectionInterval time.Duration,
) *Cleanup

func (*Cleanup) CleanupReleases

func (c *Cleanup) CleanupReleases(ctx context.Context, key string, bd *fleet.BundleDeployment) error

func (*Cleanup) OldAgent

func (c *Cleanup) OldAgent(ctx context.Context, modifiedStatuses []fleet.ModifiedStatus) error

type HelmDeployer added in v0.10.2

type HelmDeployer interface {
	NewListAction() *action.List
	ListDeployments(list helmdeployer.ListAction) ([]helmdeployer.DeployedBundle, error)
	DeleteRelease(ctx context.Context, deployed helmdeployer.DeployedBundle) error
	Delete(ctx context.Context, name string) error
}

Jump to

Keyboard shortcuts

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