Documentation
¶
Index ¶
- Constants
- func AddToManager(log *logrus.Entry, mgr manager.Manager, allManagers map[string]manager.Manager, ...) error
- func ECPredicateFilter(object ctrlruntimeclient.Object) bool
- func ProwJobFilter(object ctrlclient.Object) bool
- type NewPresubmitFunc
- type PRMeta
- type PullRequestEvent
- type ReconcilerOption
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 ECPredicateFilter ¶
func ECPredicateFilter(object ctrlruntimeclient.Object) bool
func ProwJobFilter ¶
func ProwJobFilter(object ctrlclient.Object) bool
Types ¶
type NewPresubmitFunc ¶
type PRMeta ¶
type PRMeta struct { Event *PullRequestEvent Headers map[string]string }
func (PRMeta) GitHubGUID ¶
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
Click to show internal directories.
Click to hide internal directories.