Skip to content
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

Query PipelineResources only if needed #1725

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

lcarva
Copy link
Contributor

@lcarva lcarva commented Sep 22, 2022

Change the tkn pipeline start command to only query for PipelineResources in the cluster if the Pipeline uses Resources. As PipelineResources are marked as deprecated, some cluster maintainers may decide to not install this CRD altogether.

Changes

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests (if functionality changed/added)
  • Run the code checkers with make check
  • Regenerate the manpages, docs and go formatting with make generated
  • Commit messages follow commit message best practices

Release Notes

NONE

Change the `tkn pipeline start` command to only query for
PipelineResources in the cluster if the Pipeline uses Resources.
As PipelineResources are marked as deprecated, some cluster maintainers
may decide to not install this CRD altogether.

Signed-off-by: Luiz Carvalho <lucarval@redhat.com>
@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Sep 22, 2022
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 22, 2022
@lcarva
Copy link
Contributor Author

lcarva commented Sep 22, 2022

/retest

I can't tell exactly what the failure is. Maybe it's a random failure. For posterity, the failed tests were:

task: TestTaskStartE2E
task: TestTaskStartE2E/Start_taskRun_with_--workspace_and_volumenClaimTemplate

@lcarva
Copy link
Contributor Author

lcarva commented Sep 22, 2022

Ok, I see other open PRs have the same test failure. Probably broken in main.

@vdemeester
Copy link
Member

@lcarva yeah, @piyush-garg is looking into it (tektoncd/pipeline#5537).

@piyush-garg
Copy link
Contributor

/retest

@piyush-garg
Copy link
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 27, 2022
@lcarva
Copy link
Contributor Author

lcarva commented Sep 27, 2022

I still see the same test error as before. Maybe tektoncd/pipeline#5537 is not completely done? I rebased my branch with main, but there are no changes.

@chmouel
Copy link
Member

chmouel commented Sep 27, 2022

/retest
/lgtm

@vdemeester
Copy link
Member

/retest

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 28, 2022
@piyush-garg
Copy link
Contributor

/retest

@tekton-robot tekton-robot merged commit c8dd769 into tektoncd:main Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants