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

feat(koperator): Remove pre-upgrade job to set kcore version #1670

Merged
merged 4 commits into from
Oct 19, 2023

Conversation

gracedo
Copy link
Contributor

@gracedo gracedo commented Oct 14, 2023

What problem does this PR solve?:
I noticed that the koperator pre-upgrade job was failing due to insufficient perms Error from server (Forbidden): kommandercores.dkp.d2iq.io "kommander-core" is forbidden: User "system:serviceaccount:kommander:kommander-operator-pre-upgrade" cannot get resource "kommandercores/status" in API group "dkp.d2iq.io" at the cluster scope

However, I realized that since we will not be shipping the declarative upgrade feature in full in the next release, we don't need this pre-upgrade job at all to update existing kcore statuses with the current version. We can instead just let the operator treat it as it would a "fresh install" which is to update the status with the current version and exit without running the upgrade workflow steps that we have added so far.

Which issue(s) does this PR fix?:

https://d2iq.atlassian.net/browse/D2IQ-99516

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Checklist

  • If the PR adds a version bump, ensure there is no breaking change in Licensing model (or NA).
  • If a chart is changed or app configuration is significantly changed, the chart version is correctly incremented (so that apps are not automatically upgraded from a previous version of DKP).

@gracedo gracedo added ready-for-review ok-to-test Signals mergebot that CI checks are ready to be kicked off labels Oct 14, 2023
@gracedo gracedo self-assigned this Oct 14, 2023
@github-actions github-actions bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 14, 2023
@d2iq-mergebot
Copy link
Contributor

This repo has @d2iq-mergebot integration. You can perform the following commands by submitting a comment. Submit a comment with content "@d2iq-mergebot help" to view more detailed help text and examples. Be sure the have a look at the mergebot documentation, too.For help using mergebot, please refer to the README file here: https://github.com/mesosphere/mergebot/blob/main/README.md
Enabled Mergebot commands:
@d2iq-mergebot test all
@d2iq-mergebot test
@d2iq-mergebot override-status
@d2iq-mergebot help
@d2iq-mergebot backport

@coveralls
Copy link

Pull Request Test Coverage Report for Build 6514905293

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 79.532%

Totals Coverage Status
Change from base Build 6508891200: 0.0%
Covered Lines: 136
Relevant Lines: 171

💛 - Coveralls

@cwyl02 cwyl02 marked this pull request as ready for review October 16, 2023 14:59
Copy link
Contributor

@takirala takirala left a comment

Choose a reason for hiding this comment

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

🎉

@gracedo gracedo enabled auto-merge (squash) October 18, 2023 23:41
@gracedo gracedo merged commit 49d7b99 into main Oct 19, 2023
33 checks passed
@gracedo gracedo deleted the gracedo/koperator_preupgrade_D2IQ-99516 branch October 19, 2023 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Signals mergebot that CI checks are ready to be kicked off ready-for-review 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.

5 participants