Documentation
¶
Index ¶
- Constants
- Variables
- func ApplyBlockerConfigChange(cm *corev1.ConfigMap) error
- func ApplyControllerConfigChange(cm *corev1.ConfigMap) error
- func ApplyEmailTemplateConfigChange(cm *corev1.ConfigMap) error
- func ApplyPluginConfigChange(cm *corev1.ConfigMap) error
- func RegisterControllerConfigUpdateChan(ch chan struct{})
- type Handler
Constants ¶
View Source
const ( ConfigMapNameCICDConfig = "cicd-config" ConfigMapNameEmailTemplate = "email-template" )
Names of config maps
View Source
const (
ConfigMapNameBlockerConfig = "blocker-config"
)
ConfigMapNameBlockerConfig is a name of a configmap for a blocker
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 // ApprovalRequestMailTitle is a title for the approval request mail ApprovalRequestMailTitle string // ApprovalRequestMailContent is a content of the approval request mail ApprovalRequestMailContent string // ApprovalResultMailTitle is a title for the approval result mail ApprovalResultMailTitle string // ApprovalResultMailContent is a content of the approval result mail ApprovalResultMailContent 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 )
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
ApplyBlockerConfigChange is a configmap handler for blocker-config configmap
func ApplyControllerConfigChange ¶ added in v0.3.0
ApplyControllerConfigChange is a configmap handler for cicd-config configmap
func ApplyEmailTemplateConfigChange ¶ added in v0.3.0
ApplyEmailTemplateConfigChange is a configmap handler for email-template configmap
func ApplyPluginConfigChange ¶ added in v0.4.0
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 ¶
Click to show internal directories.
Click to hide internal directories.