We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8a60ca commit 26f79b8Copy full SHA for 26f79b8
pkg/cli/whoami/whoami.go
@@ -166,6 +166,7 @@ func (o *WhoAmIOptions) Run() error {
166
return nil
167
case o.Output == "yaml":
168
u, err := o.UserInterface.Users().Get(context.TODO(), "~", metav1.GetOptions{})
169
+ u.SetGroupVersionKind(userv1.GroupVersion.WithKind("User"))
170
if err != nil {
171
return err
172
}
@@ -178,6 +179,7 @@ func (o *WhoAmIOptions) Run() error {
178
179
180
case o.Output == "json":
181
182
183
184
185
0 commit comments