Class ConfigureK8s.Request
java.lang.Object
io.helidon.integrations.common.rest.ApiJsonBuilder<ConfigureK8s.Request>
io.helidon.integrations.common.rest.ApiJsonRequest<ConfigureK8s.Request>
io.helidon.integrations.vault.VaultRequest<ConfigureK8s.Request>
io.helidon.integrations.vault.auths.k8s.ConfigureK8s.Request
- All Implemented Interfaces:
- ApiRequest<ConfigureK8s.Request>
- Enclosing class:
- ConfigureK8s
Request object. Can be configured with additional headers, query parameters etc.
- 
Method SummaryModifier and TypeMethodDescriptionAdd PEM formatted public key or certificate used to verify the signatures of Kubernetes service account JWTs.Host string, host:port pair, or URL to the base of the Kubernetes API server.static ConfigureK8s.Requestbuilder()Fluent API builder for configuring a request.disableIssuerValidation(boolean disable) Disable JWT issuer validation.disableLocalCaJwt(boolean disable) Disable defaulting to the local CA cert and service account JWT when running in a Kubernetes pod.Optional JWT issuer.PEM encoded CA cert for use by the TLS client used to talk with the Kubernetes API.tokenReviewerJwt(String token) A service account JWT used to access the TokenReview API to validate other JWTs during login.Methods inherited from class io.helidon.integrations.vault.VaultRequestadd, addCommaDelimitedArray, addToCommaDelimitedArray, durationToTtl, preBuildMethods inherited from class io.helidon.integrations.common.rest.ApiJsonRequestaddHeader, addQueryParam, headers, queryParams, requestId, requestId, requestMediaType, requestMediaType, responseMediaType, responseMediaTypeMethods inherited from class io.helidon.integrations.common.rest.ApiJsonBuilderadd, add, add, add, add, add, addBase64, addToArray, addToArray, addToArray, addToArray, addToArray, addToArray, addToObject, addToObject, addToObject, addToObject, addToObject, emptyArray, me, postBuild, toJsonMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.integrations.common.rest.ApiRequesttoJson
- 
Method Details- 
builderFluent API builder for configuring a request. The request builder is passed as is, without a build method. The equivalent of a build method isApiJsonBuilder.toJson(jakarta.json.JsonBuilderFactory)used by theRestApi.- Returns:
- new request builder
 
- 
addressHost string, host:port pair, or URL to the base of the Kubernetes API server. Required.- Parameters:
- address- k8s API server address
- Returns:
- updated request
 
- 
k8sCaCertPEM encoded CA cert for use by the TLS client used to talk with the Kubernetes API. NOTE: Every line must end with a newline.- Parameters:
- caCertPem- certification authority certificate, available at- /var/run/secrets/kubernetes.io/serviceaccount/ca.crtwhen running in a pod
- Returns:
- updated request
 
- 
tokenReviewerJwtA service account JWT used to access the TokenReview API to validate other JWTs during login. If not set, the JWT submitted in the login payload will be used to access the Kubernetes TokenReview API.- Parameters:
- token- token to use
- Returns:
- updated request
 
- 
addPemKeyAdd PEM formatted public key or certificate used to verify the signatures of Kubernetes service account JWTs. If a certificate is given, its public key will be extracted. Not every installation of Kubernetes exposes these keys.- Parameters:
- pemKey- pem encoded key to add
- Returns:
- updated request
 
- 
issuerOptional JWT issuer. If no issuer is specified, then this plugin will usekubernetes/serviceaccountas the default issuer.- Parameters:
- issuer- issuer of tokens when validating the issuer
- Returns:
- updated request
 
- 
disableIssuerValidationDisable JWT issuer validation. Allows to skip ISS validation.- Parameters:
- disable- whether to disable issuer validation
- Returns:
- updated request
 
- 
disableLocalCaJwtDisable defaulting to the local CA cert and service account JWT when running in a Kubernetes pod.- Parameters:
- disable- whether to disable using local CA cert and service account
- Returns:
- updated request
 
 
-