-
Notifications
You must be signed in to change notification settings - Fork 26
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: add resource snapshot info in the crp status #589
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -340,6 +340,11 @@ type ClusterResourcePlacementStatus struct { | |
// +optional | ||
SelectedResources []ResourceIdentifier `json:"selectedResources,omitempty"` | ||
|
||
// ClusterResourceSnapshots is a list of clusterResourceSnapshot names. | ||
// ClusterResourceSnapshot is used to store a snapshot of selected resources by a resource placement policy. | ||
// A placement could produce multiple clusterResourceSnapshots to select large amount of resources. | ||
ClusterResourceSnapshots []string `json:"clusterResourceSnapshots,omitempty"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does the PlacementStatuses reflect the status of the listed ClusterResourceSnapshots or they can correspond to a previous version of the snapshots? Basically, will we produce 2?
|
||
|
||
// PlacementStatuses contains a list of placement status on the clusters that are selected by PlacementPolicy. | ||
// Each selected cluster according to the latest resource placement is guaranteed to have a corresponding placementStatuses. | ||
// In the pickN case, there are N placement statuses where N = NumberOfClusters; Or in the pickFixed case, there are | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Does this only contain the most recent resource snapshots or all existing resource snapshots for this placement?
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 assume this only contains the current resource snapshots.
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.
If so, be explicit in the comment.