Documentation
¶
Index ¶
Constants ¶
View Source
const ( // APIRetry defines the frequency at which we check for updates against the // k8s api when waiting for a specific condition to be true. APIRetry = time.Second * 5 // APITimeout defines the amount of time we should spend querying the k8s api // when waiting for a specific condition to be true. APITimeout = time.Minute * 10 // CLITimeout defines the amount of maximum execution time for CLI commands CLITimeout = time.Second * 90 // ConsistentlyDuration sets the default duration for Consistently. Consistently will verify that your condition is satisfied for this long. ConsistentlyDuration = 30 * time.Second ResourceTimeout = 60 * time.Second // TargetNamespace specify the name of Target namespace TargetNamespace = "openshift-pipelines" // Name of the pipeline controller deployment PipelineControllerName = "tekton-pipelines-controller" PipelineControllerSA = "tekton-pipelines-controller" PipelineWebhookName = "tekton-pipelines-webhook" PipelineWebhookConfiguration = "webhook.tekton.dev" SccAnnotationKey = "operator.tekton.dev" // Name of the trigger deployment TriggerControllerName = "tekton-triggers-controller" TriggerWebhookName = "tekton-triggers-webhook" // Name of the chains deployment ChainsControllerName = "tekton-chains-controller" // Name of the hub deployment HubApiName = "tekton-hub-api" HubDbName = "tekton-hub-db" HubUiName = "tekton-hub-ui" // Name of the manual approval gate deployment MAGController = "manual-approval-gate-controller" MAGWebHook = "manual-approval-gate-webhook" // Default config for auto pruner PrunerSchedule = "0 8 * * *" PrunerNamePrefix = "tekton-resource-pruner-" // Name of PAC deployment PacControllerName = "pipelines-as-code-controller" PacWatcherName = "pipelines-as-code-watcher" PacWebhookName = "pipelines-as-code-webhook" // Name of tkn deployment TknDeployment = "tkn-cli-serve" // Name of console deployment ConsolePluginDeployment = "pipelines-console-plugin" // A token used in triggers tests TriggersSecretToken = "1234567" )
Variables ¶
View Source
var Flags = initializeFlags()
Flags holds the command line flags or defaults for settings in the user's environment. See EnvironmentFlags for a list of supported fields Todo: change initialization of falgs when required by parsing them or from environment variable
View Source
var PrefixesOfDefaultPipelines [9]string = [9]string{"buildah", "s2i-dotnet", "s2i-go", "s2i-java", "s2i-nodejs", "s2i-perl", "s2i-php", "s2i-python", "s2i-ruby"}
View Source
var TektonInstallersetNamePrefixes [34]string = [34]string{
"addon-custom-consolecli",
"addon-custom-openshiftconsole",
"addon-custom-pipelinestemplate",
"addon-custom-resolverstepaction",
"addon-custom-resolvertask",
"addon-custom-triggersresources",
"addon-versioned-resolverstepactions",
"addon-versioned-resolvertasks",
"chain",
"chain-config",
"chain-secret",
"console-link-hub",
"manualapprovalgate-main-deployment",
"manualapprovalgate-main-static",
"openshiftpipelinesascode-main-deployment",
"openshiftpipelinesascode-main-static",
"openshiftpipelinesascode-post",
"pipeline-main-deployment",
"pipeline-main-static",
"pipeline-post",
"pipeline-pre",
"result",
"result-post",
"result-pre",
"rhosp-rbac",
"tekton-config-console-plugin-manifests",
"tekton-hub-api",
"tekton-hub-db",
"tekton-hub-db-migration",
"tekton-hub-ui",
"tektoncd-pruner",
"trigger-main-deployment",
"trigger-main-static",
"validating-mutating-webhook",
}
Name prefixes of installerset
Functions ¶
func RemoveTempDir ¶
func RemoveTempDir()
Types ¶
type EnvironmentFlags ¶
type EnvironmentFlags struct { Cluster string // K8s cluster (defaults to cluster in kubeconfig) Kubeconfig string // Path to kubeconfig (defaults to ./kube/config) DockerRepo string // Docker repo (defaults to $KO_DOCKER_REPO) CSV string // Default csv openshift-pipelines-operator.v0.9.1 Channel string // Default channel canary CatalogSource string SubscriptionName string InstallPlan string // Default Installationplan Automatic OperatorVersion string TknVersion string ClusterArch string // Architecture of the cluster IsDisconnected bool }
EnvironmentFlags define the flags that are needed to run the e2e tests.
Click to show internal directories.
Click to hide internal directories.