mirror of
https://github.com/rancher/types.git
synced 2025-08-31 12:48:45 +00:00
Add enabled field to user
This commit is contained in:
committed by
Craig Jellick
parent
d00e627aaf
commit
8fa06eae27
@@ -33,6 +33,7 @@ type User struct {
|
||||
MustChangePassword bool `json:"mustChangePassword,omitempty"`
|
||||
PrincipalIDs []string `json:"principalIds,omitempty" norman:"type=array[reference[principal]]"`
|
||||
Me bool `json:"me,omitempty"`
|
||||
Enabled *bool `json:"enabled,omitempty" norman:"default=true"`
|
||||
}
|
||||
|
||||
// UserAttribute will have a CRD (and controller) generated for it, but will not be exposed in the API.
|
||||
|
@@ -6439,6 +6439,15 @@ func (in *User) DeepCopyInto(out *User) {
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.Enabled != nil {
|
||||
in, out := &in.Enabled, &out.Enabled
|
||||
if *in == nil {
|
||||
*out = nil
|
||||
} else {
|
||||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user