Record Class OkeKubernetesClientConfig

java.lang.Object
java.lang.Record
io.micronaut.oraclecloud.oke.kubernetes.client.OkeKubernetesClientConfig
Record Components:
enabled - Whether the client is enabled
clusterId - The OKE cluster ID
endpointType - Define which endpoint type to use. One of PublicEndpoint, PrivateEndpoint, VcnHostname and LegacyKubernetes. Default is PublicEndpoint.

@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
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    OkeKubernetesClientConfig(boolean enabled, @NonNull @NotBlank String clusterId, @Nullable com.oracle.bmc.containerengine.model.CreateClusterKubeconfigContentDetails.Endpoint endpointType)
    Creates an instance of a OkeKubernetesClientConfig record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull @NotBlank String
    Returns the value of the clusterId record component.
    boolean
    Returns the value of the enabled record component.
    @Nullable com.oracle.bmc.containerengine.model.CreateClusterKubeconfigContentDetails.Endpoint
    Returns the value of the endpointType record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • 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 a OkeKubernetesClientConfig record class.
      Parameters:
      enabled - the value for the enabled record component
      clusterId - the value for the clusterId record component
      endpointType - the value for the endpointType record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • enabled

      @Bindable(defaultValue="true") public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • clusterId

      @NonNull @NotBlank public @NonNull @NotBlank String clusterId()
      Returns the value of the clusterId 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 the endpointType record component.
      Returns:
      the value of the endpointType record component