Fix inconsistent user status in member cluster

Signed-off-by: hongming <hongming@kubesphere.io>
This commit is contained in:
hongming
2021-09-09 19:15:55 +08:00
parent b0506c35a4
commit 559a378ca4
5 changed files with 352 additions and 534 deletions

View File

@@ -45,7 +45,10 @@ type FederatedUserSpec struct {
}
type UserTemplate struct {
Spec v1alpha2.UserSpec `json:"spec,omitempty"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec v1alpha2.UserSpec `json:"spec"`
// +optional
Status v1alpha2.UserStatus `json:"status,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object