Merge pull request #1743 from lvyanru8200/delete_statusField
[fix] delete work status 'Resource' field
This commit is contained in:
commit
d0321b0608
|
@ -330,11 +330,9 @@ func (c *WorkStatusController) buildStatusIdentifier(work *workv1alpha1.Work, cl
|
||||||
identifier := &workv1alpha1.ResourceIdentifier{
|
identifier := &workv1alpha1.ResourceIdentifier{
|
||||||
Ordinal: ordinal,
|
Ordinal: ordinal,
|
||||||
// TODO(RainbowMango): Consider merge Group and Version to APIVersion from Work API.
|
// TODO(RainbowMango): Consider merge Group and Version to APIVersion from Work API.
|
||||||
Group: groupVersion.Group,
|
Group: groupVersion.Group,
|
||||||
Version: groupVersion.Version,
|
Version: groupVersion.Version,
|
||||||
Kind: clusterObj.GetKind(),
|
Kind: clusterObj.GetKind(),
|
||||||
// TODO(RainbowMango): Consider remove Resource from Work API.
|
|
||||||
Resource: "", // we don't need this fields.
|
|
||||||
Namespace: clusterObj.GetNamespace(),
|
Namespace: clusterObj.GetNamespace(),
|
||||||
Name: clusterObj.GetName(),
|
Name: clusterObj.GetName(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue