Skip to content

Conversation

@sm43
Copy link
Member

@sm43 sm43 commented Jan 27, 2022

after the introduction of installerSet, it was observed that
multiple installerSet are getting created during upgrades,
this adds logic to remove those installeSet.
as we have now changed labels on installerSets and query them
compared to by their name which we used to save in status.

so this deletes any older installerSet which doesn't have the
new label of type.

Signed-off-by: Shivam Mukhade smukhade@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

after the introduction of installerSet, it was observed that
multiple installerSet are getting created during upgrades,
this adds logic to remove those installeSet.
as we have now changed labels on installerSets and query them
compared to by their name which we used to save in status.

so this deletes any older installerSet which doesn't have the
new label of type.

Signed-off-by: Shivam Mukhade <smukhade@redhat.com>
@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Jan 27, 2022
@tekton-robot tekton-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 27, 2022
@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/kubernetes/tektoninstallerset/query.go 83.3% 81.5% -1.9

Comment on lines +57 to +63
// CleanUpObsoleteResources cleans up obsolete resources
// this is required because after TektonInstallerSet were introduced
// it was observed that during upgrade multiple installerSets were
// getting created
// now that we have label based query and we have new labels
// this cleanup is just to make sure we delete all older installerSets
// from the cluster
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for adding this 🙃

@nikhil-thomas
Copy link
Member

/approve

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nikhil-thomas

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 Jan 27, 2022
@concaf
Copy link
Contributor

concaf commented Jan 27, 2022

/lgtm

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

/lgtm

@tekton-robot tekton-robot merged commit 236f666 into tektoncd:main Jan 27, 2022
@sm43 sm43 deleted the obsolete-res branch August 19, 2022 05:29
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants