Merge pull request #1743 from lvyanru8200/delete_statusField

[fix] delete work status 'Resource' field
This commit is contained in:
karmada-bot 2022-05-09 11:27:29 +08:00 committed by GitHub
commit d0321b0608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -330,11 +330,9 @@ func (c *WorkStatusController) buildStatusIdentifier(work *workv1alpha1.Work, cl
identifier := &workv1alpha1.ResourceIdentifier{
Ordinal: ordinal,
// TODO(RainbowMango): Consider merge Group and Version to APIVersion from Work API.
Group: groupVersion.Group,
Version: groupVersion.Version,
Kind: clusterObj.GetKind(),
// TODO(RainbowMango): Consider remove Resource from Work API.
Resource: "", // we don't need this fields.
Group: groupVersion.Group,
Version: groupVersion.Version,
Kind: clusterObj.GetKind(),
Namespace: clusterObj.GetNamespace(),
Name: clusterObj.GetName(),
}