-
Notifications
You must be signed in to change notification settings - Fork 904
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(health): terraform conflict #3419
Conversation
Signed-off-by: Evan Li <evan.li97@outlook.com>
Codecov Report
@@ Coverage Diff @@
## master #3419 +/- ##
=======================================
Coverage 39.25% 39.26%
=======================================
Files 267 267
Lines 26415 26416 +1
=======================================
+ Hits 10370 10372 +2
- Misses 14360 14361 +1
+ Partials 1685 1683 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
if configuration.Status.Apply.State != terraformtypes.Available { | ||
if appRev.Name != configuration.GetLabels()["app.oam.dev/appRevision"] || | ||
configuration.Status.Apply.State != terraformtypes.Available || | ||
configuration.Status.ObservedGeneration != configuration.Generation { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an &&
logic to check whether configuration.Status.ObservedGeneration
is set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That good. here we also need to compare apprev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will happen if we don't compare apprev?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In kubebuilder, client.Get always gets data from the cache, so client.Get gets data from the cache immediately after applying object.
Signed-off-by: Evan Li evan.li97@outlook.com
Description of your changes
"Fixes #3355": Fix health state of the terrafrom comp