OS
Schema Hub

TokenRequest

TokenRequest contains parameters of a service account token.

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

Resource Structure

audiencestringRequired
audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver.
expirationSecondsinteger
expirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec".