helpers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig() *rest.Config

GetConfig Gets the Kubernetes config from either your local (if you are running it locally) or from the service account if you are running it in cluster

func GetEnv

func GetEnv(key, fallback string) string

GetEnv looks up an env key or returns a default

Types

type EphemeralChecks

type EphemeralChecks struct {
	CreationTime metav1.Time
	Name         string
	Delete       bool
}

EphemeralChecks Struct that holds the information of the resources that could be deleted

func (*EphemeralChecks) RunChecks

func (e *EphemeralChecks) RunChecks()

RunChecks Run checks to see if resource should be deleted

Jump to

Keyboard shortcuts

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