-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a controller which creates a tekton pipeline run from a prow job #11888
Conversation
Hi @ccojocar. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @fejta |
/assign |
Are there design documents for this? I would love to have a little more rigor for adding 11k LoC. |
/hold eg:
|
/ok-to-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree that a document outlining what you are planning to do will be helpful.
It is not obvious to most people coming to this PR, for example, that this is largely copy/pasted from the build controller.
My understanding was that @rawlingsj had some discussions with @cjwagner and @fejta before initialising this work. Anyhow, I will try to prepare a design document hopefully by the next sig-testing meeting that everyone is on the same page. |
This is the design proposal which I would like to add it on today's sig-testing meeting agenda. |
In the design proposal review was decided to split this functionality in two separate controllers. The controller from this PR which starts directly the Tekton pipeline and another dedicated controller for Jenkins X, that will convert the Jenkins X pipeline file into Tektont CRDs and then start the appropriate pipeline. The Jenkins X controller, it will be implemented in a separate PR. |
LGTM label has been added. Git tree hash: e1dfcaf56889c73451367bce56517ca6e848bd82
|
@fejta I addressed this issues. You can cancel the hold if the changes look fine to you. Thanks |
prow/cmd/pipeline/controller.go
Outdated
// clusterToCtx converts the prow job's cluster to a cluster context | ||
func clusterToCtx(cluster string) string { | ||
if cluster == kube.DefaultClusterAlias { | ||
return kube.InClusterContext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems more appropriate for the other PR. I'd recommend taking out the commit from here as I don't think it works correctly. But happy to address it in a follow-up
LGTM label has been added. Git tree hash: a74ff7c390f71900c7e5389faa30c79a099515dd
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold cancel
LGTM label has been added. Git tree hash: 3416bd2ce169915a9d7dbb550a33eff9740ab636
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ccojocar, fejta The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This controller is able to start a Tekton pipeline using the embedded PipelineRun specification defined in the prow job. The user will have to install beforehand all the resources referenced by this Tekton PipelineRun (such as Pipeline CRD, Task CRDs and PipelineResource CRDs).
Before starting the pipeline, the controller will create dynamically the git PipelineResoruce from prow job git reference and it will add it to the PipelineRun input parameters.
Design Doc
cc @rawlingsj @wbrefvem