config

package
Version: v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 11 Imported by: 97

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MetricsAddr              string
	EnableLeaderElection     bool
	EnableDevelopmentLogging bool
	AccountID                string
	Region                   string
	EndpointURL              string
	LogLevel                 string
	ResourceTags             []string
	WatchNamespace           string
	EnableWebhookServer      bool
	WebhookServerAddr        string
}

Config contains configuration otpions for ACK service controllers

func (*Config) BindFlags

func (cfg *Config) BindFlags()

BindFlags defines CLI/runtime configuration options

func (*Config) SetAWSAccountID added in v0.15.0

func (cfg *Config) SetAWSAccountID() error

SetAWSAccountID uses sts GetCallerIdentity API to find AWS AccountId and set in Config

func (*Config) SetupLogger

func (cfg *Config) SetupLogger()

SetupLogger initializes the logger used in the service controller

func (*Config) Validate

func (cfg *Config) Validate() error

Validate ensures the options are valid

Source Files

Jump to

Keyboard shortcuts

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