Merge pull request #4228 from wansir/fix-4167

Fix inconsistent user status in member cluster
This commit is contained in:
KubeSphere CI Bot
2021-09-17 16:09:52 +08:00
committed by GitHub
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