config

package
v0.0.0-...-d7ad274 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSesameImage            = "ghcr.io/projectsesame/sesame:main"
	DefaultEnvoyImage             = "docker.io/envoyproxy/envoy:v1.20.1"
	DefaultMetricsAddr            = ":8080"
	DefaultEnableLeaderElection   = false
	DefaultEnableLeaderElectionID = "0d879e31.projectsesame.io"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// SesameImage is the container image for the Sesame container(s) managed
	// by the operator.
	SesameImage string

	// EnvoyImage is the container image for the Envoy container(s) managed
	// by the operator.
	EnvoyImage string

	// MetricsBindAddress is the TCP address that the operator should bind to for
	// serving prometheus metrics. It can be set to "0" to disable the metrics serving.
	MetricsBindAddress string

	// LeaderElection determines whether or not to use leader election when starting
	// the operator.
	LeaderElection bool

	// LeaderElectionID determines the name of the configmap that leader election will
	// use for holding the leader lock.
	LeaderElectionID string
}

Config is configuration of the operator.

func New

func New() *Config

New returns an operator config using default values.

Jump to

Keyboard shortcuts

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