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(operator): prevent re-execution of workload tasks that have been cancelled in a previous KLT version #718

Merged
merged 2 commits into from
Jan 31, 2023

Conversation

bacherfl
Copy link
Member

Closes #680
This PR prevents tasks of WorkloadInstances being attempted to be reconciled if they are in the Cancelled state (which had been replaced with Deprecated recently).

Signed-off-by: Florian Bacher florian.bacher@dynatrace.com

…cancelled in a previous KLT version

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@codecov
Copy link

codecov bot commented Jan 30, 2023

Codecov Report

Merging #718 (e6c10fe) into main (a9f41d7) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #718   +/-   ##
=======================================
  Coverage   57.33%   57.33%           
=======================================
  Files          88       88           
  Lines        7001     7004    +3     
=======================================
+ Hits         4014     4016    +2     
- Misses       2821     2822    +1     
  Partials      166      166           
Impacted Files Coverage Δ
operator/apis/lifecycle/v1alpha2/common/common.go 100.00% <100.00%> (ø)
operator/controllers/common/phasehandler.go 82.08% <100.00%> (+0.83%) ⬆️
...lers/lifecycle/keptnworkloadinstance/controller.go 80.99% <0.00%> (-0.46%) ⬇️
Flag Coverage Δ
component-tests 54.23% <75.00%> (+0.72%) ⬆️
keptn-cert-manager 67.50% <ø> (ø)
keptn-lifecycle-operator 53.15% <100.00%> (+0.10%) ⬆️
scheduler 21.17% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@sonarcloud
Copy link

sonarcloud bot commented Jan 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bacherfl bacherfl marked this pull request as ready for review January 30, 2023 10:14
Copy link
Contributor

@odubajDT odubajDT left a comment

Choose a reason for hiding this comment

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

awesome job, thx for the fix :)

@bacherfl bacherfl merged commit d89e179 into keptn:main Jan 31, 2023
@keptn-bot keptn-bot mentioned this pull request Jan 31, 2023
@bacherfl bacherfl deleted the fix/680/cancelled-phase branch January 31, 2023 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KLT running "old" tasks?
3 participants