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

Fix TektonPipeline Ready check #607

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

nikhil-thomas
Copy link
Member

@nikhil-thomas nikhil-thomas commented Feb 2, 2022

Currently, the availability (creation) of an TektonInstallerSet for
TektonPipeline is considered to be the Ready condition for
TektonPipeline.

This is because the 'ready check' checks the condition
item [0] and that item correspond to 'InstallerSet' available.

The correct check should depend on condition Ready which is set to True
when all other conditions are True.

This patch ensures that the TektonPipeline Ready check checks the true
'Ready' condition.

Example, status.conditions[]

[{InstallerSetAvailable True  {2022-02-02 08:47:06 +0000 UTC}  } {InstallerSetReady False  {2022-02-02 08:47:15 +0000 UTC} Error Installer set not ready: Install failed with message: roles.rbac.authorization.k8s.io "tekton-pipelines-controller" is forbidden: unable to create new content in namespace openshift-pipelines because it is being terminated} {PostReconciler True  {2022-02-02 08:47:07 +0000 UTC}  } {PreReconciler True  {2022-02-02 08:47:06 +0000 UTC}  } {Ready False  {2022-02-02 08:47:15 +0000 UTC} Error Installer set not ready: Install failed with message: roles.rbac.authorization.k8s.io "tekton-pipelines-controller" is forbidden: unable to create new content in namespace openshift-pipelines because it is being terminated}]

ie, status.conditions[0] is InstallerSetAvailable the "true" Ready is the item Ready

Signed-off-by: Nikhil Thomas nikthoma@redhat.com

Changes

Submitter Checklist

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

See the contribution guide for more details.

Release Notes

@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Feb 2, 2022
@tekton-robot tekton-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 2, 2022
Currently, the availability (creation) of an TektonInstallerSet for
TektonPipeline is considered to be the Ready condition for
TektonPipeline. This is because the 'ready check' checks the condition
item [0] and that item correspond to 'InstallerSet' available. The
correct check should depend on condition `Ready` which is set to True
when all other conditions are True.

This patch ensures that the TektonPipeline Ready check checks the true
'Ready' condition.

Signed-off-by: Nikhil Thomas <nikthoma@redhat.com>
@nikhil-thomas nikhil-thomas force-pushed the fix/pipeline-ready-check branch from ab40f78 to bae91e1 Compare February 2, 2022 09:43
@concaf
Copy link
Contributor

concaf commented Feb 2, 2022

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 2, 2022
@sm43 sm43 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 2, 2022
@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

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

@piyush-garg
Copy link
Contributor

/lgtm

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 Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants