Package org.cdk8s.plus24.k8s
Interface ServiceAccountTokenProjection
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ServiceAccountTokenProjection.Jsii$Proxy
@Generated(value="jsii-pacmak/1.69.0 (build f656c31)", date="2022-10-05T02:57:36.743Z") @Stability(Stable) public interface ServiceAccountTokenProjection extends software.amazon.jsii.JsiiSerializable
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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ServiceAccountTokenProjection.Builder
A builder forServiceAccountTokenProjection
static class
ServiceAccountTokenProjection.Jsii$Proxy
An implementation forServiceAccountTokenProjection
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ServiceAccountTokenProjection.Builder
builder()
default String
getAudience()
audience is the intended audience of the token.default Number
getExpirationSeconds()
expirationSeconds is the requested duration of validity of the service account token.String
getPath()
path is the path relative to the mount point of the file to project the token into.
-
-
-
Method Detail
-
getPath
@Stability(Stable) @NotNull String getPath()
path is the path relative to the mount point of the file to project the token into.
-
getAudience
@Stability(Stable) @Nullable default String 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.
-
getExpirationSeconds
@Stability(Stable) @Nullable default Number 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.
Default: 1 hour and must be at least 10 minutes.
-
builder
@Stability(Stable) static ServiceAccountTokenProjection.Builder builder()
-
-