-
Notifications
You must be signed in to change notification settings - Fork 107
✨ Workload conditions #910
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
base: main
Are you sure you want to change the base?
✨ Workload conditions #910
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: bhperry The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
236902c
to
0877a70
Compare
0a6137c
to
feed50a
Compare
a82b159
to
cc0e15a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #910 +/- ##
==========================================
- Coverage 64.27% 64.26% -0.02%
==========================================
Files 195 197 +2
Lines 19118 19335 +217
==========================================
+ Hits 12288 12425 +137
- Misses 5821 5887 +66
- Partials 1009 1023 +14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
cc0e15a
to
95902d6
Compare
0722403
to
a9e9245
Compare
a9e9245
to
01af4ef
Compare
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
…ion rule Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
Signed-off-by: Ben Perry <[email protected]>
aec6449
to
50d9629
Compare
Signed-off-by: Ben Perry <[email protected]>
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.
Could you add some integration test also? The PR looks good in general.
@@ -387,7 +390,7 @@ func FindManifestConfiguration(resourceMeta workapiv1.ManifestResourceMeta, | |||
} | |||
} | |||
|
|||
if len(rstOption.FeedbackRules) == 0 && rstOption.UpdateStrategy == nil { | |||
if len(rstOption.FeedbackRules) == 0 && len(rstOption.ConditionRules) == 0 && rstOption.UpdateStrategy == nil { |
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.
you might want to add some ut.
"object": obj.Object, | ||
}) | ||
if err != nil { | ||
return metav1.ConditionFalse, workapiv1.ConditionRuleExpressionError, remainingBudget, err |
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.
could you add some comment on why here is false and line156 return unknown?
@@ -77,6 +80,9 @@ func (m *manifestworkReconciler) reconcile( | |||
// Add applied status condition | |||
manifestCondition.Conditions = append(manifestCondition.Conditions, buildAppliedStatusCondition(result)) | |||
|
|||
// Add result conditions | |||
manifestCondition.Conditions = append(manifestCondition.Conditions, result.Conditions...) |
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.
I think this reader should be used in status controller, the thing is status controller will return faster and periodically, and you can use status update interval to control how frequent the resource will be read.
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.
Hmm ok I'll take a look at that
Summary
Support for evaluating manifestwork condition rules
Related PR: open-cluster-management-io/api#362
Related issue(s)
open-cluster-management-io/enhancements#139
#842