mirror of
https://github.com/rancher/types.git
synced 2025-05-07 22:56:19 +00:00
Revert "[2.4] Add UserInfo field to UserAttributes"
This commit is contained in:
parent
b5fb46b182
commit
054202acf6
apis/management.cattle.io/v3
client/management/v3
@ -80,7 +80,6 @@ type UserAttribute struct {
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
|
||||
UserName string
|
||||
UserPrincipal Principal
|
||||
GroupPrincipals map[string]Principals // the value is a []Principal, but code generator cannot handle slice as a value
|
||||
LastRefresh string
|
||||
NeedsRefresh bool
|
||||
|
@ -10088,7 +10088,6 @@ func (in *UserAttribute) DeepCopyInto(out *UserAttribute) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.UserPrincipal.DeepCopyInto(&out.UserPrincipal)
|
||||
if in.GroupPrincipals != nil {
|
||||
in, out := &in.GroupPrincipals, &out.GroupPrincipals
|
||||
*out = make(map[string]Principals, len(*in))
|
||||
|
@ -14,7 +14,6 @@ const (
|
||||
UserAttributeFieldRemoved = "removed"
|
||||
UserAttributeFieldUUID = "uuid"
|
||||
UserAttributeFieldUserName = "userName"
|
||||
UserAttributeFieldUserPrincipal = "userPrincipal"
|
||||
)
|
||||
|
||||
type UserAttribute struct {
|
||||
@ -30,5 +29,4 @@ type UserAttribute struct {
|
||||
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
|
||||
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
|
||||
UserName string `json:"userName,omitempty" yaml:"userName,omitempty"`
|
||||
UserPrincipal *Principal `json:"userPrincipal,omitempty" yaml:"userPrincipal,omitempty"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user