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
,VcnHostname
andLegacyKubernetes
. 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
-
Constructor Summary
ConstructorDescriptionOkeKubernetesClientConfig
(boolean enabled, @NonNull @NotBlank String clusterId, @Nullable com.oracle.bmc.containerengine.model.CreateClusterKubeconfigContentDetails.Endpoint endpointType) Creates an instance of aOkeKubernetesClientConfig
record class. -
Method Summary
Modifier and TypeMethodDescription@NonNull @NotBlank String
Returns the value of theclusterId
record component.boolean
enabled()
Returns the value of theenabled
record component.@Nullable com.oracle.bmc.containerengine.model.CreateClusterKubeconfigContentDetails.Endpoint
Returns the value of theendpointType
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
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 aOkeKubernetesClientConfig
record class.- Parameters:
enabled
- the value for theenabled
record componentclusterId
- the value for theclusterId
record componentendpointType
- the value for theendpointType
record 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 theenabled
record component.- Returns:
- the value of the
enabled
record component
-
clusterId
Returns the value of theclusterId
record component.- Returns:
- the value of the
clusterId
record component
-
endpointType
@Nullable @Bindable(defaultValue="PublicEndpoint") public @Nullable com.oracle.bmc.containerengine.model.CreateClusterKubeconfigContentDetails.Endpoint endpointType()Returns the value of theendpointType
record component.- Returns:
- the value of the
endpointType
record component
-