delete

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunDeleteSet

func RunDeleteSet(sr scan.InputRun)

RunDeleteSet will look for releases and purge them.

func RunV2

func RunV2(sr InputRun)

RunV2 is the main exported method to delete a release

func ValidateArgs

func ValidateArgs(a []string)

ValidateArgs should check the argument (release)

Types

type Client

type Client struct {
	Dryrun    bool
	Release   string
	Namespace string
	Env       janitorconfig.EnvConfig
}

Client is the data object which contains the item to delete

func NewClient

func NewClient() *Client

NewClient will return the Client struct

func (*Client) Config

func (c *Client) Config() *Client

Config - return it!

func (*Client) Deleterelease

func (c *Client) Deleterelease(eks client.EKSCluster, a *action.Configuration, rel *release.Release, del internalhelm.HelmDelete) error

Deleterelease will try and delete a release -> Need to reconfigure...

func (*Client) Getekscluster

func (c *Client) Getekscluster(aws aws.Config, g client.Generator) client.EKSCluster

Getekscluster - Return the cluster, endpoints and auth token!

func (*Client) Init

func (c *Client) Init()

Init it!

func (*Client) Makeawscfg

func (c *Client) Makeawscfg() aws.Config

Makeawscfg - creates the cfg object

func (*Client) Makeekscfg

func (c *Client) Makeekscfg() client.Generator

Makeekscfg returns an empty EKS config

type InputRun

type InputRun interface {
	Config() *Client
	Init()
	Makeawscfg() aws.Config
	Getekscluster(aws.Config, client.Generator) client.EKSCluster
	Deleterelease(client.EKSCluster, *action.Configuration, *release.Release, internalhelm.HelmDelete) error
	Makeekscfg() client.Generator // Experimental. Using this to mock...
}

InputRun is our interface which defines the main delete methods

Jump to

Keyboard shortcuts

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