Package com.vaadin.kubernetes.starter
Class KubernetesKitProperties
java.lang.Object
com.vaadin.kubernetes.starter.KubernetesKitProperties
@ConfigurationProperties(prefix="vaadin.kubernetes")
public class KubernetesKitProperties
extends Object
Definition of configuration properties for the Kubernetes Kit starter.
- Since:
- 1.0
- Author:
- Vaadin Ltd
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the application version used during rolling updates.Gets the amount of time to be added to the HTTP session timeout to determine the expiration of the backend session.Gets the name of the distributed storage session key cookie.Gets the distributed storage session key cookie's SameSite attribute value.Deprecated, for removal: This API element is subject to removal in a future version.Gets the names of the cookies used by the ingress controller or gateway implementation for sticky sessions.Gets the name of the HTTP request header used to detect a new application version during rolling updates.booleanChecks if auto-configuration of Kubernetes Kit is enabled.booleanChecks if rolling update support is enabled.voidsetAppVersion(String appVersion) Sets the application version used during rolling updates.voidsetAutoConfigure(boolean autoConfigure) Enables or disables auto-configuration ofKubernetesKitConfiguration.voidsetBackendSessionExpirationTolerance(Duration backendSessionExpirationTolerance) Sets the amount of time to be added to the HTTP session timeout to determine the expiration of the backend session.voidsetClusterKeyCookieName(String clusterKeyCookieName) Sets the name of the distributed storage session key cookie.voidsetClusterKeyCookieSameSite(SameSite sameSite) Sets the distributed storage session key cookie's SameSite attribute.voidsetRollingUpdates(boolean rollingUpdates) Enables or disables rolling update support.voidsetStickySessionCookieName(String stickySessionCookieName) Deprecated, for removal: This API element is subject to removal in a future version.UsesetStickySessionCookieNames(List)instead to support multiple cookie names.voidsetStickySessionCookieNames(List<String> stickySessionCookieName) Sets the names of the cookies used by the ingress controller or gateway implementation for sticky sessions.voidsetUpdateVersionHeaderName(String updateVersionHeaderName) Sets the name of the HTTP request header used to detect a new application version during rolling updates.
-
Field Details
-
PREFIX
The prefix for Kubernetes Kit starter properties.- See Also:
-
-
Constructor Details
-
KubernetesKitProperties
public KubernetesKitProperties()
-
-
Method Details
-
isAutoConfigure
public boolean isAutoConfigure()Checks if auto-configuration of Kubernetes Kit is enabled.- Returns:
- true, if auto-configuration is enabled
-
setAutoConfigure
public void setAutoConfigure(boolean autoConfigure) Enables or disables auto-configuration ofKubernetesKitConfiguration.- Parameters:
autoConfigure-trueto enable auto-configuration,falseto disable
-
setBackendSessionExpirationTolerance
Sets the amount of time to be added to the HTTP session timeout to determine the expiration of the backend session. -
getBackendSessionExpirationTolerance
Gets the amount of time to be added to the HTTP session timeout to determine the expiration of the backend session. -
getClusterKeyCookieName
Gets the name of the distributed storage session key cookie.- Returns:
- the name of the distributed storage session key cookie
-
setClusterKeyCookieName
Sets the name of the distributed storage session key cookie.- Parameters:
clusterKeyCookieName- the name of the distributed storage session key cookie
-
getClusterKeyCookieSameSite
Gets the distributed storage session key cookie's SameSite attribute value.- Returns:
- the distributed storage session key cookie's SameSite attribute value
-
setClusterKeyCookieSameSite
Sets the distributed storage session key cookie's SameSite attribute.- Parameters:
sameSite- value of the distributed storage session key cookie's SameSite attribute
-
isRollingUpdates
public boolean isRollingUpdates()Checks if rolling update support is enabled.- Returns:
trueif rolling update support is enabled- See Also:
-
setRollingUpdates
public void setRollingUpdates(boolean rollingUpdates) Enables or disables rolling update support.- Parameters:
rollingUpdates-trueto enable,falseto disable- See Also:
-
getUpdateVersionHeaderName
Gets the name of the HTTP request header used to detect a new application version during rolling updates.- Returns:
- the update version header name
- See Also:
-
setUpdateVersionHeaderName
Sets the name of the HTTP request header used to detect a new application version during rolling updates.- Parameters:
updateVersionHeaderName- the update version header name- See Also:
-
getAppVersion
Gets the application version used during rolling updates.- Returns:
- the application version, or
nullif not set - See Also:
-
setAppVersion
Sets the application version used during rolling updates.- Parameters:
appVersion- the application version- See Also:
-
getStickySessionCookieNames
Gets the names of the cookies used by the ingress controller or gateway implementation for sticky sessions.- Returns:
- the sticky session cookie names
- See Also:
-
getStickySessionCookieName
@Deprecated(since="3.1", forRemoval=true) @DeprecatedConfigurationProperty(since="3.1", replacement="vaadin.kubernetes.sticky-session-cookie-names", reason="Replaced by vaadin.kubernetes.sticky-session-cookie-names which accepts a list of cookie names.") public String getStickySessionCookieName()Deprecated, for removal: This API element is subject to removal in a future version.UsegetStickySessionCookieNames()instead to get all configured cookie names.Gets the name of the cookie used by the ingress controller or gateway implementation for sticky sessions.- Returns:
- the first sticky session cookie name, or
nullif none configured - See Also:
-
setStickySessionCookieNames
Sets the names of the cookies used by the ingress controller or gateway implementation for sticky sessions.- Parameters:
stickySessionCookieName- the sticky session cookie names- See Also:
-
setStickySessionCookieName
@Deprecated(since="3.1", forRemoval=true) public void setStickySessionCookieName(String stickySessionCookieName) Deprecated, for removal: This API element is subject to removal in a future version.UsesetStickySessionCookieNames(List)instead to support multiple cookie names.Sets the name of the cookie used by the ingress controller or gateway implementation for sticky sessions.- Parameters:
stickySessionCookieName- the sticky session cookie name- See Also:
-
getStickySessionCookieNames()instead to get all configured cookie names.