config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RuntimeEnv      string
	DrainConditions DrainConditions
	KubeConfig      *rest.Config
	NodeName        string
	EnableTracing   bool
}

Config is a struct that holds the configuration for the application

func ReadConfiguration

func ReadConfiguration(ctx context.Context) (Config, error)

type ContextValues added in v0.2.0

type ContextValues struct {
	Logger *zap.SugaredLogger
	State  *appstate.State
	Tracer *trace.Tracer
}

ContextValues is a struct that holds the logger and state of the application for use in the shared application context

type DrainConditions

type DrainConditions struct {
	DrainOnFreeze    bool
	DrainOnReboot    bool
	DrainOnRedeploy  bool
	DrainOnPreempt   bool
	DrainOnTerminate bool
}

DrainConditions is a struct that holds the VM scheduled event types that would trigger a drain

func (*DrainConditions) DrainableConditions added in v1.0.0

func (dc *DrainConditions) DrainableConditions() []string

Jump to

Keyboard shortcuts

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