TokenRequest

data class TokenRequest(val audience: String, val expirationSeconds: Int? = null)

TokenRequest contains parameters of a service account token.

Constructors

Link copied to clipboard
constructor(audience: String, expirationSeconds: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver.

Link copied to clipboard
val expirationSeconds: Int? = null

expirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec".