Class ConfigureK8s.Request
java.lang.Object
io.helidon.integrations.common.rest.ApiJsonBuilder<T>
io.helidon.integrations.common.rest.ApiJsonRequest<T>
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 Summary
Modifier 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.Request
builder()
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.VaultRequest
add, addCommaDelimitedArray, addToCommaDelimitedArray, durationToTtl, preBuild
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonRequest
addHeader, addQueryParam, headers, queryParams, requestId, requestId, requestMediaType, requestMediaType, responseMediaType, responseMediaType
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonBuilder
add, add, add, add, add, add, addBase64, addToArray, addToArray, addToArray, addToArray, addToArray, addToArray, addToObject, addToObject, addToObject, addToObject, addToObject, emptyArray, me, postBuild, toJson
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.integrations.common.rest.ApiRequest
toJson
-
Method Details
-
builder
Fluent 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
-
address
Host string, host:port pair, or URL to the base of the Kubernetes API server. Required.- Parameters:
address
- k8s API server address- Returns:
- updated request
-
k8sCaCert
PEM 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.crt
when running in a pod- Returns:
- updated request
-
tokenReviewerJwt
A 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
-
addPemKey
Add 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
-
issuer
Optional JWT issuer. If no issuer is specified, then this plugin will usekubernetes/serviceaccount
as the default issuer.- Parameters:
issuer
- issuer of tokens when validating the issuer- Returns:
- updated request
-
disableIssuerValidation
Disable JWT issuer validation. Allows to skip ISS validation.- Parameters:
disable
- whether to disable issuer validation- Returns:
- updated request
-
disableLocalCaJwt
Disable 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
-