constants

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EventuallyTimeout is the default timeout for eventually assertions in tests.
	EventuallyTimeout = 90 * time.Second
	// WebhookReceiverPort is the port on which the webhook receiver listens for incoming HTTP requests.
	WebhookReceiverPort = 3333
	// KubeconfigSecretNamespace is the namespace where the kubeconfig secret is stored.
	KubeconfigSecretNamespace = "default"
	// KubeconfigSecretLabel is the label used to identify the kubeconfig secret.
	KubeconfigSecretLabel = "sigs.k8s.io/multicluster-runtime-kubeconfig"
	// KubeconfigSecretKey is the key in the kubeconfig secret that contains the kubeconfig data.
	KubeconfigSecretKey = "kubeconfig"
)
View Source
const (
	// ResolvedConflictReason is the reason for a resolved conflict event.
	ResolvedConflictReason = "ResolvedConflict"
	// ResolvedConflictMessage is the message for a resolved conflict event.
	ResolvedConflictMessage = "Merged %s into %s with 'ours' strategy to resolve conflicts"

	// TooManyMatchingShaReason indicates that there are too many matching SHAs for the active or proposed commit status.
	TooManyMatchingShaReason = "TooManyMatchingSha"
	// TooManyMatchingShaActiveMessage is the message for too many matching SHAs for the active commit status.
	TooManyMatchingShaActiveMessage = "There are to many matching SHAs for the active commit status"
	// TooManyMatchingShaProposedMessage is the message for too many matching SHAs for the proposed commit status.
	TooManyMatchingShaProposedMessage = "There are to many matching SHAs for the proposed commit status"

	// PullRequestCreatedReason indicates that a pull request has been created.
	PullRequestCreatedReason = "PullRequestCreated"
	// PullRequestCreatedMessage is the message for a created pull request.
	PullRequestCreatedMessage = "Pull Request %s created"

	// PullRequestMergedReason indicates that a pull request has been merged.
	PullRequestMergedReason = "PullRequestMerged"
	// PullRequestMergedMessage is the message for a merged pull request.
	PullRequestMergedMessage = "Pull Request %s merged"
)
View Source
const (
	// TrailerCommitStatusActivePrefix is the prefix for trailers indicating active commit statuses.
	TrailerCommitStatusActivePrefix = "Commit-status-active-"
	// TrailerCommitStatusProposedPrefix is the prefix for trailers indicating proposed commit statuses.
	TrailerCommitStatusProposedPrefix = "Commit-status-proposed-"
	// TrailerPullRequestCreationTime is the trailer key used to store the creation time of the pull request.
	TrailerPullRequestCreationTime = "Pull-request-creation-time"
	// TrailerPullRequestID is the trailer key used to store the pull request ID.
	TrailerPullRequestID = "Pull-request-id"
	// TrailerPullRequestSourceBranch is the trailer key used to store the source branch of the pull request.
	TrailerPullRequestSourceBranch = "Pull-request-source-branch"
	// TrailerPullRequestTargetBranch is the trailer key used to store the target branch of the pull request.
	TrailerPullRequestTargetBranch = "Pull-request-target-branch"
	// TrailerPullRequestUrl is the trailer key used to store the URL of the pull request.
	TrailerPullRequestUrl = "Pull-request-url"
	// TrailerNoOp is the trailer key use to store the No-Op marker.
	TrailerNoOp = "No-op"
	// TrailerShaDryActive is the trailer key used to store the SHA of the active dry commit.
	TrailerShaDryActive = "Sha-dry-active"
	// TrailerShaDryProposed is the trailer key used to store the SHA of the proposed dry commit.
	TrailerShaDryProposed = "Sha-dry-proposed"
	// TrailerShaHydratedActive is the trailer key used to store the SHA of the active hydrated commit.
	TrailerShaHydratedActive = "Sha-hydrated-active"
	// TrailerShaHydratedProposed is the trailer key used to store the SHA of the proposed hydrated commit.
	TrailerShaHydratedProposed = "Sha-hydrated-proposed"
)

Keep sorted alphabetically

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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