Documentation
¶
Index ¶
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
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 ( Initiated = false InitCh = 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 // 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 // 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 GcChan = make(chan struct{}, 1)
GcChan is a channel to call gc logic
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
Types ¶
Click to show internal directories.
Click to hide internal directories.