config

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 16 Imported by: 207

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
	IdentityEndpointURL            string
	EndpointURL                    string
	AllowUnsafeEndpointURL         bool
	LogLevel                       string
	ResourceTags                   []string
	WatchNamespace                 string
	EnableWebhookServer            bool
	WebhookServerAddr              string
	DeletionPolicy                 ackv1alpha1.DeletionPolicy
	ReconcileDefaultResyncSeconds  int
	ReconcileResourceResyncSeconds []string
}

Config contains configuration options for ACK service controllers

func (*Config) BindFlags

func (cfg *Config) BindFlags()

BindFlags defines CLI/runtime configuration options

func (*Config) ParseReconcileResourceResyncSeconds added in v0.24.0

func (cfg *Config) ParseReconcileResourceResyncSeconds() (map[string]time.Duration, error)

ParseReconcileResourceResyncSeconds parses the values of the --reconcile-resource-resync-seconds flag and returns a map that maps resource names to resync periods. The flag arguments are expected to have the format "resource=seconds", where "resource" is the name of the resource and "seconds" is the number of seconds that the reconciler should wait before reconciling the resource again.

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

Jump to

Keyboard shortcuts

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