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

config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 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
	Controllers          Controllers
	KubeAPIOptions       KubeAPIOptions
}

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 ControllerOptions added in v0.4.0

type ControllerOptions struct {
	MaxConcurrentReconciles int
}

ControllerOptions contains configurable options for a controller

type Controllers added in v0.4.0

type Controllers struct {
	Build                ControllerOptions
	BuildRun             ControllerOptions
	BuildStrategy        ControllerOptions
	ClusterBuildStrategy ControllerOptions
}

Controllers contains the options for the different controllers

type KubeAPIOptions added in v0.4.0

type KubeAPIOptions struct {
	QPS   int
	Burst int
}

KubeAPIOptions contains configrable options for the kube API client

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 Shipwright build controller 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