config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 9 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 {
	CloudProvider                cloudproviders.CLOUDPROVIDER
	DrainDelay                   int
	CloudTerminationDelay        int
	CloudPrepareTerminationDelay int
	NodeInitialThreshold         int
	Port                         int
	K8sClient                    kubernetes.Interface
	InformerResync               time.Duration
	Namespace                    string
	Hostname                     string
	LeaseLockName                string
	LeaseLockNamespace           string
	NodeLeaseNamespace           string
	InitialDelay                 int
	StartupTime                  time.Time
	NodeSelector                 labels.Selector
}

func GetConfig

func GetConfig() (*Config, error)

func (*Config) SetK8sClient

func (cfg *Config) SetK8sClient(k8sClient kubernetes.Interface, namespace string)

Jump to

Keyboard shortcuts

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