Fix cannot change user status to disabled

This commit is contained in:
hongming
2022-03-01 11:36:17 +08:00
parent 970780993e
commit 4457f61a22
7 changed files with 38 additions and 38 deletions

View File

@@ -164,7 +164,7 @@ const (
type UserStatus struct {
// The user status
// +optional
State *UserState `json:"state,omitempty"`
State UserState `json:"state,omitempty"`
// +optional
Reason string `json:"reason,omitempty"`
// +optional

View File

@@ -770,11 +770,6 @@ func (in *UserSpec) DeepCopy() *UserSpec {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *UserStatus) DeepCopyInto(out *UserStatus) {
*out = *in
if in.State != nil {
in, out := &in.State, &out.State
*out = new(UserState)
**out = **in
}
if in.LastTransitionTime != nil {
in, out := &in.LastTransitionTime, &out.LastTransitionTime
*out = (*in).DeepCopy()