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 chains default config #2269

Merged

Conversation

PuneetPunamiya
Copy link
Member

  • After making Chains install through TektonConfig, for backward compatibility to keep chains configured data preserved a mechanism was added to add the data from chains-config configMap to TektonConfig

  • But if Chains is installed through TektonConfig and some default chains config, then those were getting over written because chains-config configMap was empty.

  • Hence with this patch removing this support for backward compatibilty

Fixes: #2160

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 Jul 30, 2024
@tekton-robot tekton-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 30, 2024
@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 30, 2024
@tekton-robot
Copy link
Contributor

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

File Old Coverage New Coverage Delta
pkg/reconciler/shared/tektonconfig/upgrade/pre_upgrade.go 88.5% 87.5% -1.0

After making Chains install through TektonConfig, for backward compatibility
to keep chains configured data preserved a mechanism was added to add
the data from chains-config configMap to TektonConfig

But if Chains is installed through TektonConfig and some default chains
config, then those were getting over written because chains-config
configMap was empty.

Hence with this patch removing this support for backward compatibilty

Fixes: tektoncd#2160

Signed-off-by: PuneetPunamiya <[email protected]>
@tekton-robot
Copy link
Contributor

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

File Old Coverage New Coverage Delta
pkg/reconciler/shared/tektonconfig/upgrade/pre_upgrade.go 88.5% 87.5% -1.0

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jkandasa

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 Jul 30, 2024
@piyush-garg
Copy link
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 30, 2024
@tekton-robot tekton-robot merged commit 680fd8e into tektoncd:main Jul 30, 2024
8 checks passed
@jkandasa jkandasa added the kind/bug Categorizes issue or PR as related to a bug. label Aug 7, 2024
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. kind/bug Categorizes issue or PR as related to a bug. 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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chains section in TektonConfig gets override with default
4 participants