config

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppName       = "helm-janitor"
	TTLKey        = "janitor/ttl"
	ExpiryKey     = "janitor/expires"
	AnnotationKey = "janitorAnnotations"
	DefaultTTL    = 7 * 24 * 60 * 60 // 7 days in seconds.
)

Functions

func GetenvWithDefault

func GetenvWithDefault(env string, def string) string

GetenvWithDefault

func GetenvWithDefaultBool

func GetenvWithDefaultBool(env string, def bool) bool

GetenvWithDefaultBool

Types

type EnvConfig

type EnvConfig struct {
	Cluster         string `export:"EKS_CLUSTER_NAME" default:"development-lendi-eks-cluster"`
	Region          string `export:"AWS_REGION" default:"ap-southeast-2"`
	JanitorLabel    string `export:"JANITOR_LABEL" default:"helm-janitor=true"`
	TmpFileLocation string `export:"TMP_FILE_LOCATION" default:"/tmp"`
	TmpFilePrefix   string `export:"TMP_FILE_PREFIX" default:"k8s-ca-*"`
	DebugFlag       bool   `export:"DEBUG" default:"false"`
}

EnvConfig

func (*EnvConfig) Init

func (c *EnvConfig) Init()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳