Documentation
¶
Index ¶
Constants ¶
View Source
const ( PACApplicationNameDefaultValue = "Pipelines as Code CI" HubURLKey = "hub-url" HubCatalogNameKey = "hub-catalog-name" HubCatalogTypeKey = "hub-catalog-type" TektonHubURLDefaultValue = "https://api.hub.tekton.dev/v1" TektonHubCatalogNameDefaultValue = "tekton" ArtifactHubCatalogNameDefaultValue = "artifacthub" ArtifactHubURLDefaultValue = "https://artifacthub.io/api/v1" CustomConsoleNameKey = "custom-console-name" CustomConsoleURLKey = "custom-console-url" CustomConsolePRDetailKey = "custom-console-url-pr-details" CustomConsolePRTaskLogKey = "custom-console-url-pr-tasklog" CustomConsoleNamespaceURLKey = "custom-console-url-namespace" SecretGhAppTokenRepoScopedKey = "secret-github-app-token-scoped" //nolint: gosec )
Variables ¶
View Source
var ( TknBinaryName = `tkn` TknBinaryURL = `https://tekton.dev/docs/cli/#installation` )
Functions ¶
func DefaultValidators ¶ added in v0.27.1
Types ¶
type HubCatalog ¶ added in v0.20.0
type Settings ¶
type Settings struct {
ApplicationName string `default:"Pipelines as Code CI" json:"application-name"`
HubCatalogs *sync.Map
RemoteTasks bool `default:"true" json:"remote-tasks"`
MaxKeepRunsUpperLimit int `json:"max-keep-run-upper-limit"`
DefaultMaxKeepRuns int `json:"default-max-keep-runs"`
BitbucketCloudCheckSourceIP bool `default:"true" json:"bitbucket-cloud-check-source-ip"`
BitbucketCloudAdditionalSourceIP string `json:"bitbucket-cloud-additional-source-ip"`
TektonDashboardURL string `json:"tekton-dashboard-url"`
AutoConfigureNewGitHubRepo bool `default:"false" json:"auto-configure-new-github-repo"`
AutoConfigureRepoNamespaceTemplate string `json:"auto-configure-repo-namespace-template"`
AutoConfigureRepoRepositoryTemplate string `json:"auto-configure-repo-repository-template"`
SecretAutoCreation bool `default:"true" json:"secret-auto-create"`
SecretGHAppRepoScoped bool `default:"true" json:"secret-github-app-token-scoped"`
SecretGhAppTokenScopedExtraRepos string `json:"secret-github-app-scope-extra-repos"`
ErrorLogSnippet bool `default:"true" json:"error-log-snippet"`
ErrorLogSnippetNumberOfLines int `` /* 128-byte string literal not displayed */
ErrorDetection bool `` /* 130-byte string literal not displayed */
ErrorDetectionNumberOfLines int `` /* 130-byte string literal not displayed */
ErrorDetectionSimpleRegexp string `default:"^(?P<filename>[^:]*):(?P<line>[0-9]+):(?P<column>[0-9]+)?([ ]*)?(?P<error>.*)" json:"error-detection-simple-regexp"`
EnableCancelInProgressOnPullRequests bool `json:"enable-cancel-in-progress-on-pull-requests"`
EnableCancelInProgressOnPush bool `json:"enable-cancel-in-progress-on-push"`
SkipPushEventForPRCommits bool `json:"skip-push-event-for-pr-commits" default:"true"` // nolint:tagalign
CustomConsoleName string `json:"custom-console-name"`
CustomConsoleURL string `json:"custom-console-url"`
CustomConsolePRdetail string `json:"custom-console-url-pr-details"`
CustomConsolePRTaskLog string `json:"custom-console-url-pr-tasklog"`
CustomConsoleNamespaceURL string `json:"custom-console-url-namespace"`
RememberOKToTest bool `json:"remember-ok-to-test"`
}
if there is a change performed on the default value, update the same on "config/302-pac-configmap.yaml".
func DefaultSettings ¶ added in v0.26.0
func DefaultSettings() Settings
Click to show internal directories.
Click to hide internal directories.