config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 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
	EnabledLabels                     []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