utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(s []string, e string, matchCase bool) bool

func RemoveFinalizer

func RemoveFinalizer(sr StuckResource, client *dynamic.DynamicClient) error

func WriteJsonOutput

func WriteJsonOutput(rr []RunResult)

func WriteYamlOutput

func WriteYamlOutput(rr []RunResult)

Types

type RunResult

type RunResult struct {
	Namespace           string   `json:"namespace"`
	TerminatedResources []string `json:"terminated_resources"`
}

type RunResults added in v0.0.2

type RunResults struct {
	Results                 []RunResult `json:"results"`
	NonAvailableApiServices []string    `json:"non_available_api_services"`
}

type StuckResource

type StuckResource struct {
	ResourceName      string
	ResourceType      string
	ResourceNamespace string
	ResourceGroup     string
	ResourceVersion   string
}

func GetNamespacedStuckResources

func GetNamespacedStuckResources(namespace string, skipAPIResources []string, clientSet *kubernetes.Clientset, client *dynamic.DynamicClient, spinner *ysmrr.Spinner) ([]StuckResource, []string, error)

Jump to

Keyboard shortcuts

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