Record Class OkeKubernetesClientConfig
java.lang.Object
java.lang.Record
io.micronaut.oraclecloud.oke.kubernetes.client.OkeKubernetesClientConfig
- Record Components:
enabled- Whether the client is enabledclusterId- The OKE cluster IDendpointType- Define which endpoint type to use. One ofPublicEndpoint,PrivateEndpoint,VcnHostnameandLegacyKubernetes. Default isPublicEndpoint.
@Requires(property="oci.oke.kubernetes.client.enabled",value="true",defaultValue="true") @Requires(property="oci.oke.kubernetes.client.cluster-id")
@ConfigurationProperties("oci.oke.kubernetes.client")
public record OkeKubernetesClientConfig(boolean enabled, @NonNull @NotBlank String clusterId, @Nullable com.oracle.bmc.containerengine.model.CreateClusterKubeconfigContentDetails.Endpoint endpointType)
extends Record
Configuration for the OKE kubernetes client.
If enabled, the client will retrieve a kubeconfig from the cluster and sign tokens
with the OCI SDK authentication. This is not required on kubernetes nodes, as there
kubeconfig should already be present.
- Since:
- 4.4.x
- Author:
- Andriy Dmytruk
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOkeKubernetesClientConfig(boolean enabled, @NonNull @NotBlank String clusterId, @Nullable com.oracle.bmc.containerengine.model.CreateClusterKubeconfigContentDetails.Endpoint endpointType) Creates an instance of aOkeKubernetesClientConfigrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull @NotBlank StringReturns the value of theclusterIdrecord component.booleanenabled()Returns the value of theenabledrecord component.@Nullable com.oracle.bmc.containerengine.model.CreateClusterKubeconfigContentDetails.EndpointReturns the value of theendpointTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
PREFIX
- See Also:
-
ENABLED
- See Also:
-
CLUSTER_ID
- See Also:
-
-
Constructor Details
-
OkeKubernetesClientConfig
public OkeKubernetesClientConfig(@Bindable(defaultValue="true") boolean enabled, @NonNull @NotBlank @NonNull @NotBlank String clusterId, @Nullable @Bindable(defaultValue="PublicEndpoint") @Nullable com.oracle.bmc.containerengine.model.CreateClusterKubeconfigContentDetails.Endpoint endpointType) Creates an instance of aOkeKubernetesClientConfigrecord class.- Parameters:
enabled- the value for theenabledrecord componentclusterId- the value for theclusterIdrecord componentendpointType- the value for theendpointTyperecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
enabled
@Bindable(defaultValue="true") public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
clusterId
Returns the value of theclusterIdrecord component.- Returns:
- the value of the
clusterIdrecord component
-
endpointType
@Nullable @Bindable(defaultValue="PublicEndpoint") public @Nullable com.oracle.bmc.containerengine.model.CreateClusterKubeconfigContentDetails.Endpoint endpointType()Returns the value of theendpointTyperecord component.- Returns:
- the value of the
endpointTyperecord component
-