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, @NotBlank @NonNull @NotBlank String clusterId, @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
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
enabled
-
clusterId
-
endpointType
@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
-