Skip to content

Commit d76f104

Browse files
Merge pull request #76 from yue9944882/bugfix/manifestwork-status-conditions-omitempty
Bugfix: Adding `omitempty` jsontag for ManifestWork.status.conditions
2 parents f389731 + af4e6b0 commit d76f104

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

work/v1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ type ManifestWorkStatus struct {
117117
// 3. Available represents workload in ManifestWork exists on the managed cluster.
118118
// 4. Degraded represents the current state of workload does not match the desired
119119
// state for a certain period.
120-
Conditions []metav1.Condition `json:"conditions"`
120+
Conditions []metav1.Condition `json:"conditions,omitempty"`
121121

122122
// ResourceStatus represents the status of each resource in manifestwork deployed on a
123123
// managed cluster. The Klusterlet agent on managed cluster syncs the condition from the managed cluster to the hub.

0 commit comments

Comments
 (0)