Skip to content

This will fix the version command failing for chain and operator#1542

Merged
tekton-robot merged 1 commit into
tektoncd:mainfrom
piyush-garg:fix_version
Mar 23, 2022
Merged

This will fix the version command failing for chain and operator#1542
tekton-robot merged 1 commit into
tektoncd:mainfrom
piyush-garg:fix_version

Conversation

@piyush-garg

@piyush-garg piyush-garg commented Mar 23, 2022

Copy link
Copy Markdown
Contributor

tkn version command is failing for cmponents like chains and operator but
working for pipelines and triggers. The reason is retreiving version from
configmap was failing and pipeline and triggers have backup logic to fetch version
from deployments and hence it was working for them.

For configmap we were checking the not found error but it was returning the
permission error and hence it was not able to iterate through all
namespaces. This will fix the proper error checking

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

See the contribution guide
for more details.

Release Notes

This will fix the version command failing for chain and operator

@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Mar 23, 2022
@tekton-robot tekton-robot requested review from chmouel and sthaha March 23, 2022 10:00
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 23, 2022

@pradeepitm12 pradeepitm12 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 23, 2022
@tekton-robot tekton-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 23, 2022
@tekton-robot

Copy link
Copy Markdown
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/version/version.go 89.3% 89.7% 0.5

@tekton-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pradeepitm12

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 Mar 23, 2022
Comment thread pkg/version/version_test.go Outdated
tkn version command is failing for cmponents like chains and operator but
working for pipelines and triggers. The reason is retreiving version from
configmap was failing and pipeline and triggers have backup logic to fetch version
from deployments and hence it was working for them.

For configmap we were checking the not found error but it was returning the
permission error and hence it was not able to iterate through all
namespaces. This will fix the proper error checking

@vinamra28 vinamra28 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 23, 2022
@tekton-robot

Copy link
Copy Markdown
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/version/version.go 89.3% 89.1% -0.2

@tekton-robot

Copy link
Copy Markdown
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/version/version.go 89.3% 89.1% -0.2

@piyush-garg

Copy link
Copy Markdown
Contributor Author

/hold

@tekton-robot tekton-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 23, 2022
@piyush-garg

Copy link
Copy Markdown
Contributor Author

/hold cancel

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 23, 2022
@tekton-robot tekton-robot merged commit 83672be into tektoncd:main Mar 23, 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 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.

4 participants