fix: Update Secrets failed for multi cluster project
Created by: weili520
Signed-off-by: TheYoungManLi cjl@kubesphere.io
What type of PR is this?
/kind bug
What this PR does / why we need it:
This problem was caused by the response data lost 'kind' and 'apiVersion' fields in multi-cluster projects.
Which issue(s) this PR fixes:
Fixes ##2854 (closed)
Special notes for reviewers:
Before, the put request body lose 'kind' and 'apiVersion' field.
At now:
Does this PR introduced a user-facing change?
Update Secrets failed for multi cluster project.