CmdID / kubectl / kubectl auth
kubectl auth whoami
Experimental: Check self subject attributes kubectl reference
5 options Its page in the kubectl reference
Options
--allow-missing-template-keysIf true, ignore any errors in templates when a field or map key is missing in the template.--help, -hhelp for whoami--output, -oOutput format.--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.--templateTemplate string or path to template file to use when -o=go-template, -o=go-template-file.