-
Notifications
You must be signed in to change notification settings - Fork 858
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: support to sync the revision and the workflow status #4419
Conversation
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #4419 +/- ##
==========================================
+ Coverage 59.38% 59.94% +0.56%
==========================================
Files 342 347 +5
Lines 34115 34381 +266
==========================================
+ Hits 20258 20611 +353
+ Misses 11201 11024 -177
- Partials 2656 2746 +90
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
klog.ErrorS(err, "failed to get controller revision", "oam app name", appName, "workflow name", record.WorkflowName, "record name", record.Name) | ||
var revision = &model.ApplicationRevision{AppPrimaryKey: record.AppPrimaryKey, Version: record.RevisionPrimaryKey} | ||
if err := w.Store.Get(ctx, revision); err != nil { | ||
log.Logger.Errorf("failed to get the application revision from database %s", err.Error()) |
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.
Same setRecordTerminate
here?
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.
If the application revision is not found, set the record status to failure.
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: barnettZQG barnett.zqg@gmail.com
Description of your changes
ux.oam.dev/from-namespace
app.oam.dev/source-of-truth
ux.oam.dev/synced-generation
Fixes #
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
Special notes for your reviewer