Skip to content

Commit 7760d6f

Browse files
committed
a
1 parent 1b8449c commit 7760d6f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

apis/placement/v1beta1/clusterresourceplacement_types.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,8 @@ type ClusterResourcePlacementStatus struct {
827827
// For example, a condition of `ClusterResourcePlacementWorkSynchronized` type
828828
// is observing the synchronization status of the resource snapshot with the resource index $ObservedResourceIndex.
829829
// If the rollout strategy type is `RollingUpdate`, `ObservedResourceIndex` is the default-latest resource snapshot index.
830-
// If the rollout strategy type is `External`, rollout and version control are managed by an external controller, and this field remains empty.
830+
// If the rollout strategy type is `External`, rollout and version control are managed by an external controller,
831+
// and this field is not empty only if all targeted clusters observe the same resource index in `PlacementStatuses`.
831832
// +kubebuilder:validation:Optional
832833
ObservedResourceIndex string `json:"observedResourceIndex,omitempty"`
833834

@@ -958,13 +959,14 @@ type ResourcePlacementStatus struct {
958959
DiffedPlacements []DiffedResourcePlacement `json:"diffedPlacements,omitempty"`
959960

960961
// ObservedResourceIndex is the index of the resource snapshot that is currently being rolled out to the given cluster.
961-
// During rollout, depending on the rollout strategy, clusters may observe different resource snapshot indices.
962-
// ObservedResourceIndex is the resource snapshot index observed by the conditions in the ResourcePlacementStatus.
963962
// This field is only meaningful if the `ClusterName` is not empty.
964963
// +kubebuilder:validation:Optional
965964
ObservedResourceIndex string `json:"observedResourceIndex,omitempty"`
966965

967966
// Conditions is an array of current observed conditions for ResourcePlacementStatus.
967+
// Each condition corresponds to the resource at the index specified by `ObservedResourceIndex`.
968+
// For example, if the RolloutStarted condition is true,
969+
// it refers to the resource currently indicated by `ObservedResourceIndex` is being rolled out.
968970
// +kubebuilder:validation:Optional
969971
Conditions []metav1.Condition `json:"conditions,omitempty"`
970972
}

0 commit comments

Comments
 (0)