Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CtxTimeOut           time.Duration
	KanikoContainerImage string
	Prometheus           PrometheusConfig
	ManagerOptions       ManagerOptions
}

Config hosts different parameters that can be set to use on the Build controllers

func NewDefaultConfig

func NewDefaultConfig() *Config

NewDefaultConfig returns a new Config, with context timeout and default Kaniko image.

func (*Config) SetConfigFromEnv

func (c *Config) SetConfigFromEnv() error

SetConfigFromEnv updates the configuration managed by environment variables.

type ManagerOptions added in v0.1.1

type ManagerOptions struct {
	LeaderElectionNamespace string
	LeaseDuration           *time.Duration
	RenewDeadline           *time.Duration
	RetryPeriod             *time.Duration
}

ManagerOptions contains configurable options for the build operator manager

type PrometheusConfig

type PrometheusConfig struct {
	BuildRunCompletionDurationBuckets []float64
	BuildRunEstablishDurationBuckets  []float64
	BuildRunRampUpDurationBuckets     []float64
	HistogramEnabledLabels            []string
}

PrometheusConfig contains the specific configuration for the

Jump to

Keyboard shortcuts

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