config

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 8 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
	GitContainerTemplate          corev1.Container
	MutateImageContainerTemplate  corev1.Container
	BundleContainerTemplate       corev1.Container
	WaiterContainerTemplate       corev1.Container
	RemoteArtifactsContainerImage string
	TerminationLogPath            string
	Prometheus                    PrometheusConfig
	ManagerOptions                ManagerOptions
	Controllers                   Controllers
	KubeAPIOptions                KubeAPIOptions
	GitRewriteRule                bool
}

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 configurable 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