Class V1ServiceAccountTokenProjection
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ServiceAccountTokenProjection
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1ServiceAccountTokenProjection
extends Object
ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet audience in a chainable fashion.boolean
expirationSeconds
(Long expirationSeconds) Set expirationSeconds in a chainable fashion.audience is the intended audience of the token.expirationSeconds is the requested duration of validity of the service account token.getPath()
path is the path relative to the mount point of the file to project the token into.int
hashCode()
Set path in a chainable fashion.void
setAudience
(String audience) Set the audience property valuevoid
setExpirationSeconds
(Long expirationSeconds) Set the expirationSeconds property valuevoid
Set the path property valuetoString()
-
Field Details
-
JSON_PROPERTY_PATH
- See Also:
-
JSON_PROPERTY_AUDIENCE
- See Also:
-
JSON_PROPERTY_EXPIRATION_SECONDS
- See Also:
-
-
Constructor Details
-
V1ServiceAccountTokenProjection
-
-
Method Details
-
getPath
path is the path relative to the mount point of the file to project the token into.- Returns:
- the path property value
-
setPath
Set the path property value- Parameters:
path
- property value to set
-
path
Set path in a chainable fashion.- Returns:
- The same instance of V1ServiceAccountTokenProjection for chaining.
-
getAudience
audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.- Returns:
- the audience property value
-
setAudience
Set the audience property value- Parameters:
audience
- property value to set
-
audience
Set audience in a chainable fashion.- Returns:
- The same instance of V1ServiceAccountTokenProjection for chaining.
-
getExpirationSeconds
expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.- Returns:
- the expirationSeconds property value
-
setExpirationSeconds
Set the expirationSeconds property value- Parameters:
expirationSeconds
- property value to set
-
expirationSeconds
Set expirationSeconds in a chainable fashion.- Returns:
- The same instance of V1ServiceAccountTokenProjection for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-