Package io.fabric8.kubernetes.client.dsl
Interface TokenRequestable
-
- All Known Subinterfaces:
ServiceAccountResource
public interface TokenRequestable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default io.fabric8.kubernetes.api.model.authentication.TokenRequesttokenRequest()Request a token to authenticate to the kubernetes api server as the given service account.io.fabric8.kubernetes.api.model.authentication.TokenRequesttokenRequest(io.fabric8.kubernetes.api.model.authentication.TokenRequest tokenRequest)Request a token to authenticate to the kubernetes api server as the given service account.
-
-
-
Method Detail
-
tokenRequest
default io.fabric8.kubernetes.api.model.authentication.TokenRequest tokenRequest()
Request a token to authenticate to the kubernetes api server as the given service account. Creates an opinionated TokenRequest object with default expiration seconds time of 3600.- Returns:
- TokenRequest object containing token in status
-
tokenRequest
io.fabric8.kubernetes.api.model.authentication.TokenRequest tokenRequest(io.fabric8.kubernetes.api.model.authentication.TokenRequest tokenRequest)
Request a token to authenticate to the kubernetes api server as the given service account.- Parameters:
tokenRequest- TokenRequest- Returns:
- TokenRequest object containing token in status
-
-