-
Notifications
You must be signed in to change notification settings - Fork 27
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
test: stagedUpdateRun e2e tests #1035
Conversation
7c8c67d
to
900db57
Compare
@@ -18,8 +18,8 @@ import ( | |||
// +kubebuilder:resource:scope=Cluster,categories={fleet,fleet-placement},shortName=crsur | |||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | |||
// +kubebuilder:printcolumn:JSONPath=`.spec.placementName`,name="Placement",type=string | |||
// +kubebuilder:printcolumn:JSONPath=`.spec.resourceSnapshotIndex`,name="Resource-Snapshot",type=string | |||
// +kubebuilder:printcolumn:JSONPath=`.status.policySnapshotIndexUsed`,name="Policy-Snapshot",type=string | |||
// +kubebuilder:printcolumn:JSONPath=`.spec.resourceSnapshotIndex`,name="Resource-Snapshot-Index",type=string |
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 am not 100% sure the new name is better
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.
With the fix to use index, instead of name, it only shows a number: e.g. "0", "1". I feel it's better to indicate it's an index.
// Mark the delete stage as started in case it's not. | ||
markStageUpdatingStarted(updateRun.Status.DeletionStageStatus, updateRun.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.
is this idempotent? will it change the LTT or something else?
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.
yes, it's idempotent. What's LTT? The startTime is only set when it's nil. The condition does not change.
Description of your changes
Add e2e tests for staged update run feature.
Fixes #
I have:
make reviewable
to ensure this PR is ready for review.How has this code been tested
Special notes for your reviewer