Skip to content
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

Merged
merged 1 commit into from
Feb 14, 2025
Merged

test: stagedUpdateRun e2e tests #1035

merged 1 commit into from
Feb 14, 2025

Conversation

jwtty
Copy link
Contributor

@jwtty jwtty commented Feb 7, 2025

Description of your changes

Add e2e tests for staged update run feature.

Fixes #

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

@jwtty jwtty force-pushed the stagerun-e2e branch 3 times, most recently from 7c8c67d to 900db57 Compare February 11, 2025 03:26
@@ -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
Copy link
Contributor

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

Copy link
Contributor Author

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.

Comment on lines +203 to +204
// Mark the delete stage as started in case it's not.
markStageUpdatingStarted(updateRun.Status.DeletionStageStatus, updateRun.Generation)
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@jwtty jwtty merged commit f27b73d into Azure:main Feb 14, 2025
12 checks passed
@jwtty jwtty deleted the stagerun-e2e branch February 14, 2025 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants