cleanup

package
v0.0.0-...-54d0854 Latest Latest
Warning

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

Go to latest
Published: Feb 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 CliCleaner

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

Implements cleanup logic

func NewCliCleaner

func NewCliCleaner(kubeconfigData string, namespaces []string, logger *zap.SugaredLogger, dropFinalizersOnlyForKymaCRs bool, crdsFinder KymaCRDsFinder) (*CliCleaner, error)

func (*CliCleaner) Run

func (cmd *CliCleaner) Run() error

Run runs the command

type KymaCRDsFinder

type KymaCRDsFinder func() ([]schema.GroupVersionResource, error)

KymaCRDsFinder returns a list of all CRDs defined explicitly in Kyma sources/charts.

type KymaKube

type KymaKube interface {
	Static() kubernetes.Interface
	Dynamic() dynamic.Interface

	// RestConfig provides the REST configuration of the kubernetes client
	RestConfig() *rest.Config
}

taken from github.com/kyma-project/cli/internal/kube/kube.go

func NewFromConfigWithTimeout

func NewFromConfigWithTimeout(kubeconfigData string, t time.Duration) (KymaKube, error)

NewFromConfigWithTimeout creates a new Kubernetes client based on the given Kubeconfig provided by a file (out-of-cluster config). Allows to set a custom timeout for the Kubernetes HTTP client.

Jump to

Keyboard shortcuts

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