pkg

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT-0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Kubernetes annotations
	PodEIPAnnotationKey                = "aws-samples.github.com/aws-pod-eip-controller-type"
	PodEIPAnnotationValueAuto          = "auto"
	PodEIPAnnotationValueFixedTag      = "fixed-tag"
	PodEIPAnnotationValueFixedTagValue = "fixed-tag-value"

	PodAddressPoolAnnotationKey          = "aws-samples.github.com/aws-pod-eip-controller-public-ipv4-pool"
	PodAddressFixedTagAnnotationKey      = "aws-samples.github.com/aws-pod-eip-controller-fixed-tag"
	PodAddressFixedTagValueAnnotationKey = "aws-samples.github.com/aws-pod-eip-controller-fixed-tag-value"

	// Kubernetes labels
	PodPublicIPLabel         = "aws-pod-eip-controller-public-ip"
	PodEIPAnnotationKeyLabel = "aws-pod-eip-controller-type"
	PodAddressPoolIDLabel    = "aws-pod-eip-controller-public-ipv4-pool"
	PodFixedTagLabel         = "aws-pod-eip-controller-fixed-tag"
	PodFixedTagValueLabel    = "aws-pod-eip-controller-fixed-tag-value"

	// AWS Tags
	TagTypeKey        = "aws-samples.github.com/aws-pod-eip-controller-type"
	TagClusterNameKey = "aws-samples.github.com/aws-pod-eip-controller-cluster-name"
	TagPodKey         = "aws-samples.github.com/aws-pod-eip-controller-pod"
)

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(level slog.Level) *slog.Logger

func ValidPECType added in v1.2.3

func ValidPECType(pecType string) bool

Types

type Flags

type Flags struct {
	LogLevel       string
	Kubeconfig     string
	ClusterName    string
	VpcID          string
	Region         string
	WatchNamespace string
	ResyncPeriod   int
}

func ParseFlags

func ParseFlags() Flags

func (Flags) SlogLevel

func (f Flags) SlogLevel() slog.Level

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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