ephemeralcluster

package
v0.0.0-...-60e2bcd Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName            = "ephemeral_cluster_provisioner"
	WaitTestStepName          = "wait-test-complete"
	HiveKubeconfigSecret      = EphemeralClusterTestName + "-" + api.HiveAdminKubeconfigSecret
	HiveAdminPasswdSecret     = EphemeralClusterTestName + "-" + api.HiveAdminPasswordSecret
	EphemeralClusterTestName  = "cluster-provisioning"
	EphemeralClusterLabel     = "ci.openshift.io/ephemeral-cluster"
	EphemeralClusterNamespace = "ephemeral-cluster"
	AbortProwJobDeleteEC      = "Ephemeral Cluster deleted"
	DependentProwJobFinalizer = "ephemeralcluster.ci.openshift.io/dependent-prowjob"
	PREventPayload            = "ephemeralcluster.ci.openshift.io/pr-event-payload"
	PREventHeaders            = "ephemeralcluster.ci.openshift.io/pr-event-headers"
	UnresolvedConfigVar       = "UNRESOLVED_CONFIG"
	ProwJobCreatingDoneReason = "ProwJob has been properly created"
	ProwJobNamePrefix         = "ephemeralcluster"
	GitHubGUID                = "X-Github-Delivery"
	TooManyPJsBoundErrMsg     = "Too many ProwJobs bound, this is a bug"
)
View Source
const (
	AbortECNotFound = "Ephemeral Cluster not found"
)

Variables

This section is empty.

Functions

func AddToManager

func AddToManager(log *logrus.Entry, mgr manager.Manager, allManagers map[string]manager.Manager,
	prowConfigAgent *prowconfig.Agent, opts ...ReconcilerOption) error

func ECPredicateFilter

func ECPredicateFilter(object ctrlruntimeclient.Object) bool

func ProwJobFilter

func ProwJobFilter(object ctrlclient.Object) bool

Types

type NewPresubmitFunc

type NewPresubmitFunc func(pr github.PullRequest, baseSHA string, job prowconfig.Presubmit, eventGUID string, additionalLabels map[string]string, modifiers ...pjutil.Modifier) prowv1.ProwJob

type PRMeta

type PRMeta struct {
	Event   *PullRequestEvent
	Headers map[string]string
}

func (PRMeta) GitHubGUID

func (prm PRMeta) GitHubGUID() string

type PullRequestEvent

type PullRequestEvent struct {
	PullRequest *github.PullRequest `json:"pull_request,omitempty"`
}

pullRequestEvent contains more information than the `pull_request` defined here. So far, that's the only field we need. Check https://docs.github.com/en/rest/using-the-rest-api/github-event-types?apiVersion=2022-11-28#pullrequestevent.

type ReconcilerOption

type ReconcilerOption func(*reconcilerOptions)

func WithCLIISTagRef

func WithCLIISTagRef(isTagRef string) ReconcilerOption

Set the image stream tag reference for the `cli` image in the form of `ocp/4.22:cli`.

func WithPolling

func WithPolling(polling time.Duration) ReconcilerOption

Jump to

Keyboard shortcuts

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