Record Class KubernetesClientProperties
java.lang.Object
java.lang.Record
org.springframework.cloud.kubernetes.commons.KubernetesClientProperties
@ConfigurationProperties("spring.cloud.kubernetes.client")
public record KubernetesClientProperties(Boolean trustCerts, String masterUrl, String apiVersion, String namespace, String caCertFile, String caCertData, String clientCertFile, String clientCertData, String clientKeyFile, String clientKeyData, String clientKeyAlgo, String clientKeyPassphrase, String username, String password, Duration watchReconnectInterval, Duration watchReconnectLimit, Duration connectionTimeout, Duration requestTimeout, Duration loggingInterval, String httpProxy, String httpsProxy, String proxyUsername, String proxyPassword, String oauthToken, String[] noProxy, String serviceAccountNamespacePath, String userAgent)
extends Record
Kubernetes client properties.
- Author:
- Ioannis Canellos
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKubernetesClientProperties(Boolean trustCerts, String masterUrl, String apiVersion, String namespace, String caCertFile, String caCertData, String clientCertFile, String clientCertData, String clientKeyFile, String clientKeyData, String clientKeyAlgo, String clientKeyPassphrase, String username, String password, Duration watchReconnectInterval, Duration watchReconnectLimit, Duration connectionTimeout, Duration requestTimeout, Duration loggingInterval, String httpProxy, String httpsProxy, String proxyUsername, String proxyPassword, String oauthToken, String[] noProxy, String serviceAccountNamespacePath, String userAgent) Creates an instance of aKubernetesClientPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapiVersionrecord component.Returns the value of thecaCertDatarecord component.Returns the value of thecaCertFilerecord component.Returns the value of theclientCertDatarecord component.Returns the value of theclientCertFilerecord component.Returns the value of theclientKeyAlgorecord component.Returns the value of theclientKeyDatarecord component.Returns the value of theclientKeyFilerecord component.Returns the value of theclientKeyPassphraserecord component.Returns the value of theconnectionTimeoutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehttpProxyrecord component.Returns the value of thehttpsProxyrecord component.Returns the value of theloggingIntervalrecord component.Returns the value of themasterUrlrecord component.Returns the value of thenamespacerecord component.String[]noProxy()Returns the value of thenoProxyrecord component.Returns the value of theoauthTokenrecord component.password()Returns the value of thepasswordrecord component.Returns the value of theproxyPasswordrecord component.Returns the value of theproxyUsernamerecord component.Returns the value of therequestTimeoutrecord component.Returns the value of theserviceAccountNamespacePathrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrustCertsrecord component.Returns the value of theuserAgentrecord component.username()Returns the value of theusernamerecord component.Returns the value of thewatchReconnectIntervalrecord component.Returns the value of thewatchReconnectLimitrecord component.withNamespace(String namespace) copy constructor that only changes the namespace.
-
Field Details
-
PREFIX
-
DEFAULT_USER_AGENT
-
SERVICE_ACCOUNT_NAMESPACE_PATH
Default path for namespace file.- See Also:
-
-
Constructor Details
-
KubernetesClientProperties
public KubernetesClientProperties(Boolean trustCerts, String masterUrl, String apiVersion, String namespace, String caCertFile, String caCertData, String clientCertFile, String clientCertData, String clientKeyFile, String clientKeyData, String clientKeyAlgo, String clientKeyPassphrase, String username, String password, Duration watchReconnectInterval, Duration watchReconnectLimit, Duration connectionTimeout, Duration requestTimeout, Duration loggingInterval, String httpProxy, String httpsProxy, String proxyUsername, String proxyPassword, String oauthToken, String[] noProxy, @DefaultValue("/var/run/secrets/kubernetes.io/serviceaccount/namespace") String serviceAccountNamespacePath, @DefaultValue("Spring-Cloud-Kubernetes-Application") String userAgent) Creates an instance of aKubernetesClientPropertiesrecord class.- Parameters:
trustCerts- the value for thetrustCertsrecord componentmasterUrl- the value for themasterUrlrecord componentapiVersion- the value for theapiVersionrecord componentnamespace- the value for thenamespacerecord componentcaCertFile- the value for thecaCertFilerecord componentcaCertData- the value for thecaCertDatarecord componentclientCertFile- the value for theclientCertFilerecord componentclientCertData- the value for theclientCertDatarecord componentclientKeyFile- the value for theclientKeyFilerecord componentclientKeyData- the value for theclientKeyDatarecord componentclientKeyAlgo- the value for theclientKeyAlgorecord componentclientKeyPassphrase- the value for theclientKeyPassphraserecord componentusername- the value for theusernamerecord componentpassword- the value for thepasswordrecord componentwatchReconnectInterval- the value for thewatchReconnectIntervalrecord componentwatchReconnectLimit- the value for thewatchReconnectLimitrecord componentconnectionTimeout- the value for theconnectionTimeoutrecord componentrequestTimeout- the value for therequestTimeoutrecord componentloggingInterval- the value for theloggingIntervalrecord componenthttpProxy- the value for thehttpProxyrecord componenthttpsProxy- the value for thehttpsProxyrecord componentproxyUsername- the value for theproxyUsernamerecord componentproxyPassword- the value for theproxyPasswordrecord componentoauthToken- the value for theoauthTokenrecord componentnoProxy- the value for thenoProxyrecord componentserviceAccountNamespacePath- the value for theserviceAccountNamespacePathrecord componentuserAgent- the value for theuserAgentrecord component
-
-
Method Details
-
withNamespace
copy constructor that only changes the namespace. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
trustCerts
Returns the value of thetrustCertsrecord component.- Returns:
- the value of the
trustCertsrecord component
-
masterUrl
Returns the value of themasterUrlrecord component.- Returns:
- the value of the
masterUrlrecord component
-
apiVersion
Returns the value of theapiVersionrecord component.- Returns:
- the value of the
apiVersionrecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
caCertFile
Returns the value of thecaCertFilerecord component.- Returns:
- the value of the
caCertFilerecord component
-
caCertData
Returns the value of thecaCertDatarecord component.- Returns:
- the value of the
caCertDatarecord component
-
clientCertFile
Returns the value of theclientCertFilerecord component.- Returns:
- the value of the
clientCertFilerecord component
-
clientCertData
Returns the value of theclientCertDatarecord component.- Returns:
- the value of the
clientCertDatarecord component
-
clientKeyFile
Returns the value of theclientKeyFilerecord component.- Returns:
- the value of the
clientKeyFilerecord component
-
clientKeyData
Returns the value of theclientKeyDatarecord component.- Returns:
- the value of the
clientKeyDatarecord component
-
clientKeyAlgo
Returns the value of theclientKeyAlgorecord component.- Returns:
- the value of the
clientKeyAlgorecord component
-
clientKeyPassphrase
Returns the value of theclientKeyPassphraserecord component.- Returns:
- the value of the
clientKeyPassphraserecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
watchReconnectInterval
Returns the value of thewatchReconnectIntervalrecord component.- Returns:
- the value of the
watchReconnectIntervalrecord component
-
watchReconnectLimit
Returns the value of thewatchReconnectLimitrecord component.- Returns:
- the value of the
watchReconnectLimitrecord component
-
connectionTimeout
Returns the value of theconnectionTimeoutrecord component.- Returns:
- the value of the
connectionTimeoutrecord component
-
requestTimeout
Returns the value of therequestTimeoutrecord component.- Returns:
- the value of the
requestTimeoutrecord component
-
loggingInterval
Returns the value of theloggingIntervalrecord component.- Returns:
- the value of the
loggingIntervalrecord component
-
httpProxy
Returns the value of thehttpProxyrecord component.- Returns:
- the value of the
httpProxyrecord component
-
httpsProxy
Returns the value of thehttpsProxyrecord component.- Returns:
- the value of the
httpsProxyrecord component
-
proxyUsername
Returns the value of theproxyUsernamerecord component.- Returns:
- the value of the
proxyUsernamerecord component
-
proxyPassword
Returns the value of theproxyPasswordrecord component.- Returns:
- the value of the
proxyPasswordrecord component
-
oauthToken
Returns the value of theoauthTokenrecord component.- Returns:
- the value of the
oauthTokenrecord component
-
noProxy
Returns the value of thenoProxyrecord component.- Returns:
- the value of the
noProxyrecord component
-
serviceAccountNamespacePath
Returns the value of theserviceAccountNamespacePathrecord component.- Returns:
- the value of the
serviceAccountNamespacePathrecord component
-
userAgent
Returns the value of theuserAgentrecord component.- Returns:
- the value of the
userAgentrecord component
-