Update work API to support status collection.
This commit is contained in:
parent
f98172087c
commit
dce4fa7f90
|
@ -52,21 +52,19 @@ type PropagationWorkStatus struct {
|
||||||
// +optional
|
// +optional
|
||||||
Conditions []metav1.Condition `json:"conditions,omitempty"`
|
Conditions []metav1.Condition `json:"conditions,omitempty"`
|
||||||
|
|
||||||
// ManifestConditions represents the conditions of each Kubernetes resource in work
|
// ManifestStatuses contains running status of manifests in spec.
|
||||||
// deployed on managed cluster.
|
|
||||||
// +optional
|
// +optional
|
||||||
ManifestConditions []ManifestCondition `json:"manifestConditions,omitempty"`
|
ManifestStatuses []ManifestStatus `json:"manifestStatuses,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ManifestCondition represents the conditions of the resources deployed on
|
// ManifestStatus contains running status of a specific manifest in spec.
|
||||||
// managed cluster
|
type ManifestStatus struct {
|
||||||
type ManifestCondition struct {
|
|
||||||
// Identifier represents the identity of a resource linking to manifests in spec.
|
// Identifier represents the identity of a resource linking to manifests in spec.
|
||||||
Identifier ResourceIdentifier `json:"identifier"`
|
Identifier ResourceIdentifier `json:"identifier"`
|
||||||
|
|
||||||
// Conditions represents the conditions of this resource on the managed cluster
|
// Status reflects running status of current manifest.
|
||||||
// +optional
|
// +kubebuilder:pruning:PreserveUnknownFields
|
||||||
Conditions []metav1.Condition `json:"conditions,omitempty"`
|
Status runtime.RawExtension `json:",inline"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ResourceIdentifier provides the identifiers needed to interact with any arbitrary object.
|
// ResourceIdentifier provides the identifiers needed to interact with any arbitrary object.
|
||||||
|
|
Loading…
Reference in New Issue