configs

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigMapNameBlockerConfig = "blocker-config"
)

ConfigMapNameBlockerConfig is a name of a configmap for a blocker

View Source
const (
	ConfigMapNameCICDConfig = "cicd-config"
)

ConfigMapNameCICDConfig is a name of the controller's configmap name

View Source
const (
	ConfigMapNamePluginConfig = "plugin-config"
)

ConfigMapNamePluginConfig is a name of plugin config map

Variables

View Source
var (
	// MergeSyncPeriod is a PR sync period in minute
	MergeSyncPeriod int

	// MergeBlockLabel is a label name which blocks a PR to be merged
	MergeBlockLabel string

	// MergeKindSquashLabel is a label to make a PR to be merged by 'squash'
	MergeKindSquashLabel string

	// MergeKindMergeLabel is a label to make a PR to be merged by 'merge'
	MergeKindMergeLabel string
)

Merge Automation Configs

View Source
var (
	ControllerInitiated = false
	ControllerInitCh    = make(chan struct{}, 1)

	BlockerInitiated = false
	BlockerInitCh    = make(chan struct{}, 1)
)

Initiate-related channel

View Source
var (
	// MaxPipelineRun is the number of PipelineRuns that can run simultaneously
	MaxPipelineRun int

	// ExternalHostName to be used for webhook server (default is ingress host name)
	ExternalHostName string

	// CurrentExternalHostName is NOT a configurable variable! it just stores current hostname which will be used for
	// exposing webhook/result server
	CurrentExternalHostName string

	// ReportRedirectURITemplate is a uri template for report page redirection
	ReportRedirectURITemplate string

	// CollectPeriod is a garbage collection period (in hour)
	CollectPeriod int

	// IntegrationJobTTL is a garbage collection threshold (in hour).
	// If IntegrationJob's .status.completionTime + TTL < now, it's collected
	IntegrationJobTTL int

	// EnableMail is whether to enable mail feature or not
	EnableMail bool

	// SMTPHost is a host (IP:PORT) of the SMTP server
	SMTPHost string

	// SMTPUserSecret is a credential secret for the SMTP server (should be basic type)
	SMTPUserSecret string

	// ExposeMode is a mode to be used for exposing the webhook server (Ingress/LoadBalancer/ClusterIP)
	ExposeMode string

	// IngressClass is a class for ingress instance
	IngressClass string

	// IngressHost is a host for ingress instance
	IngressHost string

	// GitImage is an image url for the git-checkout step
	GitImage string

	// GitCheckoutStepCPURequest is a cpu request of a git checkout step
	GitCheckoutStepCPURequest string

	// GitCheckoutStepMemRequest is a memory request of a git checkout step
	GitCheckoutStepMemRequest string
)

Configs for manager

View Source
var (
	PluginSizeS   = 10
	PluginSizeM   = 30
	PluginSizeL   = 100
	PluginSizeXL  = 500
	PluginSizeXXL = 1000
)

Configs for Size plugin

Functions

func ApplyBlockerConfigChange added in v0.3.0

func ApplyBlockerConfigChange(cm *corev1.ConfigMap) error

ApplyBlockerConfigChange is a configmap handler for blocker-config configmap

func ApplyControllerConfigChange added in v0.3.0

func ApplyControllerConfigChange(cm *corev1.ConfigMap) error

ApplyControllerConfigChange is a configmap handler for cicd-config configmap

func ApplyPluginConfigChange added in v0.4.0

func ApplyPluginConfigChange(cm *corev1.ConfigMap) error

ApplyPluginConfigChange is a configmap handler for plugin-config configmap

func RegisterControllerConfigUpdateChan added in v0.4.0

func RegisterControllerConfigUpdateChan(ch chan struct{})

RegisterControllerConfigUpdateChan registers a channel which accepts controller config's update event

Types

type Handler added in v0.3.0

type Handler func(cm *corev1.ConfigMap) error

Handler is a config map handler function

Jump to

Keyboard shortcuts

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