-
Notifications
You must be signed in to change notification settings - Fork 915
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: Uplevel AnalysisRun status to Rollout status #578
Conversation
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.
LGTM
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 approach is fine. Lets just use a Status.AbortedAt timestamp to help indicate we reconciled the abort, instead of another boolean.
pkg/apis/rollouts/v1alpha1/types.go
Outdated
// CurrentBackgroundAnalysisRun indicates the analysisRun for the Background step | ||
// TODO(Depreciated): Remove in v0.10 |
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.
s/Depreciated/Deprecated
pkg/apis/rollouts/v1alpha1/types.go
Outdated
@@ -550,13 +561,25 @@ type CanaryStatus struct { | |||
// +optional | |||
StableRS string `json:"stableRS,omitempty"` | |||
// CurrentStepAnalysisRun indicates the analysisRun for the current step index | |||
// TODO(Depreciated): Remove in v0.10 |
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.
s/Depreciated/Deprecated/
pkg/apis/rollouts/v1alpha1/types.go
Outdated
CurrentBackgroundAnalysisRun string `json:"currentBackgroundAnalysisRun,omitempty"` | ||
// CurrentStepAnalysisRunStatus indicates the status of the current background analysis run |
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.
Comment should be CurrentBackgroundAnalysisRunStatus
pkg/apis/rollouts/v1alpha1/types.go
Outdated
// the controller needs to do some specific work when a Rollout is aborted. For example, the reconcileAbort is used | ||
// to indicate if the Rollout should enter an aborted state when the latest AnalysisRun is a failure, or the controller | ||
// has already put the Rollout into an aborted and should create a new AnalysisRun. | ||
ReconciledAbort bool `json:"reconciledAbort,omitempty"` |
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.
Instead of ReconciledAbort bool
, can we have AbortedAt *metav1.Time
which gets cleared out whenever Status.Abort = true
54e2d7c
to
39b5d31
Compare
Codecov Report
@@ Coverage Diff @@
## master #578 +/- ##
==========================================
- Coverage 85.80% 85.75% -0.05%
==========================================
Files 87 87
Lines 8297 8376 +79
==========================================
+ Hits 7119 7183 +64
- Misses 844 857 +13
- Partials 334 336 +2
Continue to review full report at Codecov.
|
Closes #559