Documentation ¶
Overview ¶
+groupName=ci.openshift.io
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type CIOperatorMetadata
- type ImageTagOverride
- type PayloadOverrides
- type PullRequest
- type PullRequestPayloadJobSpec
- type PullRequestPayloadJobStatus
- type PullRequestPayloadQualificationRun
- type PullRequestPayloadQualificationRunList
- type PullRequestPayloadTestSpec
- type PullRequestPayloadTestStatus
- type PullRequestUnderTest
- type ReleaseControllerConfig
- type ReleaseJobSpec
Constants ¶
const (
PullRequestPayloadQualificationRunLabel = "pullrequestpayloadqualificationruns.ci.openshift.io"
)
Variables ¶
var ( // SchemeBuilder collects functions that add things to a scheme. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme applies all the stored functions to the scheme. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: "ci.openshift.io", Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type CIOperatorMetadata ¶
type CIOperatorMetadata struct { Org string `json:"org"` Repo string `json:"repo"` Branch string `json:"branch"` Variant string `json:"variant,omitempty"` }
CIOperatorMetadata describes the source repo for which a config is written
func (*CIOperatorMetadata) DeepCopy ¶
func (in *CIOperatorMetadata) DeepCopy() *CIOperatorMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIOperatorMetadata.
func (*CIOperatorMetadata) DeepCopyInto ¶
func (in *CIOperatorMetadata) DeepCopyInto(out *CIOperatorMetadata)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageTagOverride ¶
type ImageTagOverride struct { // Name is the name of the image like "machine-os-content" Name string `json:"name"` // Tag is the tag to override the image with like "4.16-art-latest-2024-02-05-071231" Tag string `json:"tag"` }
ImageTagOverride describes a specific image name that should be overridden with the provided tag
func (*ImageTagOverride) DeepCopy ¶
func (in *ImageTagOverride) DeepCopy() *ImageTagOverride
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageTagOverride.
func (*ImageTagOverride) DeepCopyInto ¶
func (in *ImageTagOverride) DeepCopyInto(out *ImageTagOverride)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PayloadOverrides ¶
type PayloadOverrides struct { // BasePullSpec specifies the base payload pullspec for the "latest" release payload // (alternate from the default of the 4.x CI payload) to layer changes on top of. BasePullSpec string `json:"base,omitempty"` // ImageTagOverrides allow specific image tags to be overridden ImageTagOverrides []ImageTagOverride `json:"tags,omitempty"` }
PayloadOverrides allows overrides to the base payload.
func (*PayloadOverrides) DeepCopy ¶
func (in *PayloadOverrides) DeepCopy() *PayloadOverrides
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PayloadOverrides.
func (*PayloadOverrides) DeepCopyInto ¶
func (in *PayloadOverrides) DeepCopyInto(out *PayloadOverrides)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PullRequest ¶
type PullRequest struct { Number int `json:"number"` Author string `json:"author"` SHA string `json:"sha"` Title string `json:"title"` }
PullRequest identifies a pull request in a repository
func (*PullRequest) DeepCopy ¶
func (in *PullRequest) DeepCopy() *PullRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequest.
func (*PullRequest) DeepCopyInto ¶
func (in *PullRequest) DeepCopyInto(out *PullRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PullRequestPayloadJobSpec ¶
type PullRequestPayloadJobSpec struct { // ReleaseControllerConfig specifies the source of the selected jobs ReleaseControllerConfig ReleaseControllerConfig `json:"releaseControllerConfig"` // Jobs is a list of jobs to be executed. This list should be fully specified // when the custom resource is created and should not be changed afterwards. Jobs []ReleaseJobSpec `json:"releaseJobSpec"` }
PullRequestPayloadJobSpec specifies the list of jobs that should be executed together with information about the data source (Release Controller Config) used to make the list
func (*PullRequestPayloadJobSpec) DeepCopy ¶
func (in *PullRequestPayloadJobSpec) DeepCopy() *PullRequestPayloadJobSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestPayloadJobSpec.
func (*PullRequestPayloadJobSpec) DeepCopyInto ¶
func (in *PullRequestPayloadJobSpec) DeepCopyInto(out *PullRequestPayloadJobSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PullRequestPayloadJobStatus ¶
type PullRequestPayloadJobStatus struct { // ReleaseJobName is a name of the job that corresponds to the name corresponding to the // ReleaseJobSpec tuple. This name is inferred from ReleaseJobSpec data and corresponds to // the name which the user would see in e.g. release-controller ReleaseJobName string `json:"jobName"` // ProwJob is a name of the submitted ProwJob resource ProwJob string `json:"prowJob"` Status prowv1.ProwJobStatus `json:"status,omitempty"` }
PullRequestPayloadJobStatus is a reference to a Prowjob submitted for a single item from the list of jobs to be submitted
func (*PullRequestPayloadJobStatus) DeepCopy ¶
func (in *PullRequestPayloadJobStatus) DeepCopy() *PullRequestPayloadJobStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestPayloadJobStatus.
func (*PullRequestPayloadJobStatus) DeepCopyInto ¶
func (in *PullRequestPayloadJobStatus) DeepCopyInto(out *PullRequestPayloadJobStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PullRequestPayloadQualificationRun ¶
type PullRequestPayloadQualificationRun struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` // Spec is considered immutable and should be entirely created by the requestor Spec PullRequestPayloadTestSpec `json:"spec"` Status PullRequestPayloadTestStatus `json:"status,omitempty"` }
PullRequestPayloadQualificationRun represents the intent to run a battery of OCP release payload validating jobs
func (*PullRequestPayloadQualificationRun) DeepCopy ¶
func (in *PullRequestPayloadQualificationRun) DeepCopy() *PullRequestPayloadQualificationRun
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestPayloadQualificationRun.
func (*PullRequestPayloadQualificationRun) DeepCopyInto ¶
func (in *PullRequestPayloadQualificationRun) DeepCopyInto(out *PullRequestPayloadQualificationRun)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PullRequestPayloadQualificationRun) DeepCopyObject ¶
func (in *PullRequestPayloadQualificationRun) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PullRequestPayloadQualificationRunList ¶
type PullRequestPayloadQualificationRunList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []PullRequestPayloadQualificationRun `json:"items"` }
PullRequestPayloadQualificationRunList is a list of PullRequestPayloadQualificationRun resources
func (*PullRequestPayloadQualificationRunList) DeepCopy ¶
func (in *PullRequestPayloadQualificationRunList) DeepCopy() *PullRequestPayloadQualificationRunList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestPayloadQualificationRunList.
func (*PullRequestPayloadQualificationRunList) DeepCopyInto ¶
func (in *PullRequestPayloadQualificationRunList) DeepCopyInto(out *PullRequestPayloadQualificationRunList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PullRequestPayloadQualificationRunList) DeepCopyObject ¶
func (in *PullRequestPayloadQualificationRunList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PullRequestPayloadTestSpec ¶
type PullRequestPayloadTestSpec struct { // PullRequests specifies the code to be tested. Immutable and required. PullRequests []PullRequestUnderTest `json:"pullRequests"` // Jobs specifies the jobs to be executed. Immutable. Jobs PullRequestPayloadJobSpec `json:"jobs"` // InitialPayloadBase specifies the base payload pullspec for the "initial" release payload InitialPayloadBase string `json:"initial,omitempty"` // PayloadOverrides specifies overrides to the base payload. PayloadOverrides PayloadOverrides `json:"payload,omitempty"` }
PullRequestPayloadTestSpec specifies for which PR the payload qualification run was requested and the list of individual jobs that should be executed.
func (*PullRequestPayloadTestSpec) DeepCopy ¶
func (in *PullRequestPayloadTestSpec) DeepCopy() *PullRequestPayloadTestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestPayloadTestSpec.
func (*PullRequestPayloadTestSpec) DeepCopyInto ¶
func (in *PullRequestPayloadTestSpec) DeepCopyInto(out *PullRequestPayloadTestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PullRequestPayloadTestStatus ¶
type PullRequestPayloadTestStatus struct { Conditions []metav1.Condition `json:"conditions,omitempty"` Jobs []PullRequestPayloadJobStatus `json:"jobs,omitempty"` }
PullRequestPayloadTestStatus provides runtime data, such as references to submitted ProwJobs, whether all jobs are submitted, finished, etc.
func (*PullRequestPayloadTestStatus) DeepCopy ¶
func (in *PullRequestPayloadTestStatus) DeepCopy() *PullRequestPayloadTestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestPayloadTestStatus.
func (*PullRequestPayloadTestStatus) DeepCopyInto ¶
func (in *PullRequestPayloadTestStatus) DeepCopyInto(out *PullRequestPayloadTestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PullRequestUnderTest ¶
type PullRequestUnderTest struct { // Org is something like "openshift" in github.com/openshift/kubernetes Org string `json:"org"` // Repo is something like "kubernetes" in github.com/openshift/kubernetes Repo string `json:"repo"` // BaseRef identifies the target branch for the PR BaseRef string `json:"baseRef"` // BaseSHA identifies the HEAD of BaseRef at the time BaseSHA string `json:"baseSHA"` // PullRequest identifies a pull request, omit to only utilize the repo at the BaseRef and BaseSHA PullRequest *PullRequest `json:"pr,omitempty"` }
PullRequestUnderTest describes the state of the repo that will be under test This is a combination of the PR revision and base ref revision. Tested code is the specific revision of the PR merged into the base branch with a specific branch as a HEAD
func (*PullRequestUnderTest) DeepCopy ¶
func (in *PullRequestUnderTest) DeepCopy() *PullRequestUnderTest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestUnderTest.
func (*PullRequestUnderTest) DeepCopyInto ¶
func (in *PullRequestUnderTest) DeepCopyInto(out *PullRequestUnderTest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReleaseControllerConfig ¶
type ReleaseControllerConfig struct { // OCP is an OCP version, such as "4.10" OCP string `json:"ocp"` // Release is a release type, such as "nightly" or "ci" Release string `json:"release"` // Specifier specifies which jobs were selected from the release controller configs. Example: "informing" Specifier string `json:"specifier"` // Revision is a git revision of the release controller configuration files. Optional. Revision string `json:"revision,omitempty"` }
ReleaseControllerConfig captures which Release Controller configuration to use to extract the list of jobs.
func (*ReleaseControllerConfig) DeepCopy ¶
func (in *ReleaseControllerConfig) DeepCopy() *ReleaseControllerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaseControllerConfig.
func (*ReleaseControllerConfig) DeepCopyInto ¶
func (in *ReleaseControllerConfig) DeepCopyInto(out *ReleaseControllerConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReleaseJobSpec ¶
type ReleaseJobSpec struct { // CIOperatorConfig identifies the ci-operator configuration with the test CIOperatorConfig CIOperatorMetadata `json:"ciOperatorConfig"` // Test is the name of the test in the ci-operator configuration Test string `json:"test"` // AggregatedCount is a number that specifies how many instances of the job will run in parallel. // When the value is 0 it means that the job is not run as aggregated and 1 means that // the job is aggregated with a single execution. AggregatedCount int `json:"aggregatedCount,omitempty"` }
ReleaseJobSpec identifies the release payload one qualification test to execute. In this context, "test" means one item in the specified ci-operator configuration file. This structure corresponds to a single configured Prowjob (like "periodic-ci-openshift-release-master-ci-4.9-e2e-gcp") and serves as a specification for dynamically building a one-off Prowjob that runs the identical test as the configured one.
func (*ReleaseJobSpec) DeepCopy ¶
func (in *ReleaseJobSpec) DeepCopy() *ReleaseJobSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaseJobSpec.
func (*ReleaseJobSpec) DeepCopyInto ¶
func (in *ReleaseJobSpec) DeepCopyInto(out *ReleaseJobSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReleaseJobSpec) JobName ¶
func (s *ReleaseJobSpec) JobName(prefix string) string
JobName maps the name in the spec to the corresponding Prow job name. It matches the `ReleaseJobName` value in the status.