Package io.fabric8.kubernetes.api.model
Class ServiceAccountTokenProjection
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.ServiceAccountTokenProjection
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ServiceAccountTokenProjectionBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ServiceAccountTokenProjection extends Object implements io.fabric8.kubernetes.api.builder.Editable<ServiceAccountTokenProjectionBuilder>, KubernetesResource
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).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceAccountTokenProjection()
No args constructor for use in serializationServiceAccountTokenProjection(String audience, Long expirationSeconds, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceAccountTokenProjectionBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getAudience()
audience is the intended audience of the token.Long
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.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setAudience(String audience)
audience is the intended audience of the token.void
setExpirationSeconds(Long expirationSeconds)
expirationSeconds is the requested duration of validity of the service account token.void
setPath(String path)
path is the path relative to the mount point of the file to project the token into.ServiceAccountTokenProjectionBuilder
toBuilder()
-
-
-
Method Detail
-
getAudience
public 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.
-
setAudience
public void setAudience(String audience)
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
public Long 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.
-
setExpirationSeconds
public void setExpirationSeconds(Long expirationSeconds)
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.
-
getPath
public String getPath()
path is the path relative to the mount point of the file to project the token into.
-
setPath
public void setPath(String path)
path is the path relative to the mount point of the file to project the token into.
-
edit
public ServiceAccountTokenProjectionBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<ServiceAccountTokenProjectionBuilder>
-
toBuilder
public ServiceAccountTokenProjectionBuilder toBuilder()
-
-