OS
Schema Hub

UserInfo

UserInfo holds the information about the user needed to implement the user.Info interface.

Schema URL
https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/authentication.api.k8s.io/UserInfo_v1.json
Usage examples
VS Code / yaml-language-server
# yaml-language-server: $schema=https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/authentication.api.k8s.io/UserInfo_v1.json
kubeconform
kubeconform -schema-location 'https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/{{ .Group }}/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json' manifest.yaml

Resource Structure

extraobject
Any additional information provided by the authenticator.
groupsarray
The names of groups this user is a part of.
uidstring
A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.
usernamestring
The name that uniquely identifies this user among all active users.