config

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 4 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 {
	LogLevel             string
	IntervalSeconds      int
	ClientTimeoutSeconds int
	DryRun               bool
	// MatchingLabelKey is the label key to match resources
	// e.g., `app.kubernetes.io/managed-by`
	MatchingLabelKey string
	// MatchingLabelValue is the label value to match resources
	// e.g., `targetgroup-senpai`
	MatchingLabelValue string
	// VpcId is the VPC ID where target groups will be created
	VpcId string
	// ClusterName is the name of the cluster this instance is running in
	ClusterName string
	// MinInstanceCount is the minimum number of instances required for target group operations
	MinInstanceCount int
	// DeleteOrphanTargetGroups controls whether to delete target groups without corresponding services
	DeleteOrphanTargetGroups bool
	// HealthCheck contains default health check configuration
	HealthCheck HealthCheckConfig
}

func LoadConfigFromEnv

func LoadConfigFromEnv() (Config, error)

type HealthCheckConfig added in v0.2.0

type HealthCheckConfig struct {
	DefaultType               string
	DefaultPath               string
	DefaultIntervalSeconds    int32
	DefaultTimeoutSeconds     int32
	DefaultHealthyThreshold   int32
	DefaultUnhealthyThreshold int32
}

Jump to

Keyboard shortcuts

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