config

package
v0.0.0-...-c3677c5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// UseNewNetworkDriver returns which network driver to use
	UseNewNetworkDriver bool
	// DisableMetrics makes it so we don't send metrics to Atlas
	DisableMetrics bool
	// LogUpload returns settings about the log uploader
	//LogUpload logUpload
	LogsTmpDir string
	// Stack returns the stack configuration variable
	Stack string
	// Docker returns the Docker-specific configuration settings
	DockerHost     string
	DockerRegistry string
	DockerUsername string
	DockerPassword string
	// What region we're running in
	AwsRegion string

	// MetatronEnabled returns if Metatron is enabled
	MetatronEnabled      bool
	MetatronServiceImage string

	// Enable an in-container logviewer via a volume container?
	ContainerLogViewer    bool
	LogViewerServiceImage string

	// Enable abmetrix service
	ContainerAbmetrixEnabled bool
	AbmetrixServiceImage     string

	// Enable an in-container system mesh image?
	ContainerServiceMeshEnabled bool
	ProxydServiceImage          string

	// Do we enable a container-specific SSHD?
	ContainerSSHD    bool
	SSHDServiceImage string

	ContainerSSHDCAFile string
	ContainerSSHDUsers  cli.StringSlice
	SSHAccountID        string

	// Do we enable spectatord titus-system-service?
	ContainerSpectatord    bool
	SpectatordServiceImage string

	// Do we enable SystemDNS titus-system-service?
	ContainerSystemDNS    bool
	SystemDNSServiceImage string
	// Flags to enable SystemDNS per NetworkMode
	SystemDNSEnabledHighScale           bool
	SystemDNSEnabledIpv6Only            bool
	SystemDNSEnabledIpv6AndIpv4Fallback bool
	SystemDNSEnabledIpv6andIpv4         bool
	SystemDNSEnabledIpv4Only            bool
	SystemDNSEnabledUnknownNetworkMode  bool

	// Do we enable tracing-collector titus-system-service?
	ContainerTracingCollector    bool
	TracingCollectorServiceImage string

	// Do we enable atlas-titus-agent titus-system-service?
	ContainerAtlasTitusAgent    bool
	AtlasTitusAgentServiceImage string

	ContainerToolsImage string

	CopyUploaders cli.StringSlice
	S3Uploaders   cli.StringSlice
	NoopUploaders cli.StringSlice

	// The RuntimeDir is a tmpdir containing the pod state.json and other sensitive info
	RuntimeDir string

	//Used to disable the TSA
	EnableTransitionNetworkMode bool
	InStandaloneMode            bool
	// contains filtered or unexported fields
}

Config contains the executor configuration

func GenerateConfiguration

func GenerateConfiguration(args []string) (*Config, error)

GenerateConfiguration is only meant to validate the behaviour of parsing command line arguments

func NewConfig

func NewConfig() (*Config, []cli.Flag)

NewConfig generates a configuration and a set of flags to passed to urfave/cli

func (*Config) GetEnvFromHost

func (c *Config) GetEnvFromHost() map[string]string

func (*Config) GetHardcodedEnv

func (c *Config) GetHardcodedEnv() map[string]string

Jump to

Keyboard shortcuts

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