-
Notifications
You must be signed in to change notification settings - Fork 20
feat: sync the latest round of changes from the internal fork #10
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
Conversation
Signed-off-by: michaelawyu <chenyu1@microsoft.com>
Title(Describe updated until commit b432a80)Enhance fleet resource handling and testing Description
Changes walkthrough 📝
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to b432a80
Previous suggestionsSuggestions up to commit 1443a67
|
Signed-off-by: michaelawyu <chenyu1@microsoft.com>
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.
Copilot reviewed 37 out of 41 changed files in this pull request and generated 1 comment.
Files not reviewed (4)
- docker/hub-agent.Dockerfile: Language not supported
- docker/member-agent.Dockerfile: Language not supported
- docker/refresh-token.Dockerfile: Language not supported
- go.mod: Language not supported
| By("Validating the 5th cluster has succeeded and stage waiting for AfterStageTasks") | ||
| stageWaitingCondition := generateFalseCondition(updateRun, placementv1beta1.StageUpdatingConditionProgressing) | ||
| stageWaitingCondition.Reason = condition.StageUpdatingWaitingReason | ||
| wantStatus.StagesStatus[0].Clusters[4].Conditions = append(wantStatus.StagesStatus[0].Clusters[4].Conditions, generateTrueCondition(updateRun, placementv1beta1.ClusterUpdatingConditionSucceeded)) |
Copilot
AI
Apr 15, 2025
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.
Ensure that the Conditions array is pre-populated before directly assigning to an index to prevent potential out-of-range errors if the array is empty.
| wantStatus.StagesStatus[0].Clusters[4].Conditions = append(wantStatus.StagesStatus[0].Clusters[4].Conditions, generateTrueCondition(updateRun, placementv1beta1.ClusterUpdatingConditionSucceeded)) | |
| wantStatus.StagesStatus[0].Clusters[4].Conditions = append(wantStatus.StagesStatus[0].Clusters[4].Conditions, generateTrueCondition(updateRun, placementv1beta1.ClusterUpdatingConditionSucceeded)) | |
| if wantStatus.StagesStatus[0].Conditions == nil || len(wantStatus.StagesStatus[0].Conditions) < 1 { | |
| wantStatus.StagesStatus[0].Conditions = make([]metav1.Condition, 1) | |
| } |
Description of your changes
This PR sync'd the latest round of changes from the internal fork.
I have:
make reviewableto ensure this PR is ready for review.How has this code been tested
N/A
Special notes for your reviewer
N/A