v1alpha1

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=dbaas.mariadb.ionoscloud.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "dbaas.mariadb.ionoscloud.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	MariadbCluster_Kind             = "MariadbCluster"
	MariadbCluster_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: MariadbCluster_Kind}.String()
	MariadbCluster_KindAPIVersion   = MariadbCluster_Kind + "." + CRDGroupVersion.String()
	MariadbCluster_GroupVersionKind = CRDGroupVersion.WithKind(MariadbCluster_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type ConnectionsInitParameters

type ConnectionsInitParameters struct {

	// [true] The IP and subnet for the database. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. Please enter in the correct format like IP/Subnet, exp: 192.168.10.0/24. See Private IPs and Configuring the network.
	// The IP and subnet for your cluster.
	Cidr *string `json:"cidr,omitempty" tf:"cidr,omitempty"`

	// [true] The datacenter to connect your cluster to.
	// The datacenter to connect your cluster to.
	// +crossplane:generate:reference:type=github.com/ionos-cloud/provider-upjet-ionoscloud/apis/compute/v1alpha1.Datacenter
	DatacenterID *string `json:"datacenterId,omitempty" tf:"datacenter_id,omitempty"`

	// Reference to a Datacenter in compute to populate datacenterId.
	// +kubebuilder:validation:Optional
	DatacenterIDRef *v1.Reference `json:"datacenterIdRef,omitempty" tf:"-"`

	// Selector for a Datacenter in compute to populate datacenterId.
	// +kubebuilder:validation:Optional
	DatacenterIDSelector *v1.Selector `json:"datacenterIdSelector,omitempty" tf:"-"`

	// [true] The numeric LAN ID to connect your cluster to.
	// The numeric LAN ID to connect your cluster to.
	// +crossplane:generate:reference:type=github.com/ionos-cloud/provider-upjet-ionoscloud/apis/compute/v1alpha1.Lan
	LanID *string `json:"lanId,omitempty" tf:"lan_id,omitempty"`

	// Reference to a Lan in compute to populate lanId.
	// +kubebuilder:validation:Optional
	LanIDRef *v1.Reference `json:"lanIdRef,omitempty" tf:"-"`

	// Selector for a Lan in compute to populate lanId.
	// +kubebuilder:validation:Optional
	LanIDSelector *v1.Selector `json:"lanIdSelector,omitempty" tf:"-"`
}

func (*ConnectionsInitParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionsInitParameters.

func (*ConnectionsInitParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConnectionsObservation

type ConnectionsObservation struct {

	// [true] The IP and subnet for the database. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. Please enter in the correct format like IP/Subnet, exp: 192.168.10.0/24. See Private IPs and Configuring the network.
	// The IP and subnet for your cluster.
	Cidr *string `json:"cidr,omitempty" tf:"cidr,omitempty"`

	// [true] The datacenter to connect your cluster to.
	// The datacenter to connect your cluster to.
	DatacenterID *string `json:"datacenterId,omitempty" tf:"datacenter_id,omitempty"`

	// [true] The numeric LAN ID to connect your cluster to.
	// The numeric LAN ID to connect your cluster to.
	LanID *string `json:"lanId,omitempty" tf:"lan_id,omitempty"`
}

func (*ConnectionsObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionsObservation.

func (*ConnectionsObservation) DeepCopyInto

func (in *ConnectionsObservation) DeepCopyInto(out *ConnectionsObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConnectionsParameters

type ConnectionsParameters struct {

	// [true] The IP and subnet for the database. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. Please enter in the correct format like IP/Subnet, exp: 192.168.10.0/24. See Private IPs and Configuring the network.
	// The IP and subnet for your cluster.
	// +kubebuilder:validation:Optional
	Cidr *string `json:"cidr" tf:"cidr,omitempty"`

	// [true] The datacenter to connect your cluster to.
	// The datacenter to connect your cluster to.
	// +crossplane:generate:reference:type=github.com/ionos-cloud/provider-upjet-ionoscloud/apis/compute/v1alpha1.Datacenter
	// +kubebuilder:validation:Optional
	DatacenterID *string `json:"datacenterId,omitempty" tf:"datacenter_id,omitempty"`

	// Reference to a Datacenter in compute to populate datacenterId.
	// +kubebuilder:validation:Optional
	DatacenterIDRef *v1.Reference `json:"datacenterIdRef,omitempty" tf:"-"`

	// Selector for a Datacenter in compute to populate datacenterId.
	// +kubebuilder:validation:Optional
	DatacenterIDSelector *v1.Selector `json:"datacenterIdSelector,omitempty" tf:"-"`

	// [true] The numeric LAN ID to connect your cluster to.
	// The numeric LAN ID to connect your cluster to.
	// +crossplane:generate:reference:type=github.com/ionos-cloud/provider-upjet-ionoscloud/apis/compute/v1alpha1.Lan
	// +kubebuilder:validation:Optional
	LanID *string `json:"lanId,omitempty" tf:"lan_id,omitempty"`

	// Reference to a Lan in compute to populate lanId.
	// +kubebuilder:validation:Optional
	LanIDRef *v1.Reference `json:"lanIdRef,omitempty" tf:"-"`

	// Selector for a Lan in compute to populate lanId.
	// +kubebuilder:validation:Optional
	LanIDSelector *v1.Selector `json:"lanIdSelector,omitempty" tf:"-"`
}

func (*ConnectionsParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionsParameters.

func (*ConnectionsParameters) DeepCopyInto

func (in *ConnectionsParameters) DeepCopyInto(out *ConnectionsParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CredentialsInitParameters

type CredentialsInitParameters struct {

	// [string] The password for a MariaDB user.
	// The password for a MariaDB user.
	PasswordSecretRef v1.SecretKeySelector `json:"passwordSecretRef" tf:"-"`

	// [string] The username for the initial MariaDB user. Some system usernames are restricted (e.g 'mariadb', 'admin', 'standby').
	// The username for the initial MariaDB user. Some system usernames are restricted (e.g 'mariadb', 'admin', 'standby').
	Username *string `json:"username,omitempty" tf:"username,omitempty"`
}

func (*CredentialsInitParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialsInitParameters.

func (*CredentialsInitParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CredentialsObservation

type CredentialsObservation struct {

	// [string] The username for the initial MariaDB user. Some system usernames are restricted (e.g 'mariadb', 'admin', 'standby').
	// The username for the initial MariaDB user. Some system usernames are restricted (e.g 'mariadb', 'admin', 'standby').
	Username *string `json:"username,omitempty" tf:"username,omitempty"`
}

func (*CredentialsObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialsObservation.

func (*CredentialsObservation) DeepCopyInto

func (in *CredentialsObservation) DeepCopyInto(out *CredentialsObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CredentialsParameters

type CredentialsParameters struct {

	// [string] The password for a MariaDB user.
	// The password for a MariaDB user.
	// +kubebuilder:validation:Optional
	PasswordSecretRef v1.SecretKeySelector `json:"passwordSecretRef" tf:"-"`

	// [string] The username for the initial MariaDB user. Some system usernames are restricted (e.g 'mariadb', 'admin', 'standby').
	// The username for the initial MariaDB user. Some system usernames are restricted (e.g 'mariadb', 'admin', 'standby').
	// +kubebuilder:validation:Optional
	Username *string `json:"username" tf:"username,omitempty"`
}

func (*CredentialsParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialsParameters.

func (*CredentialsParameters) DeepCopyInto

func (in *CredentialsParameters) DeepCopyInto(out *CredentialsParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MaintenanceWindowInitParameters

type MaintenanceWindowInitParameters struct {

	// [string] The name of the week day.
	// The name of the week day.
	DayOfTheWeek *string `json:"dayOfTheWeek,omitempty" tf:"day_of_the_week,omitempty"`

	// [string] Start of the maintenance window in UTC time.
	// Start of the maintenance window in UTC time.
	Time *string `json:"time,omitempty" tf:"time,omitempty"`
}

func (*MaintenanceWindowInitParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceWindowInitParameters.

func (*MaintenanceWindowInitParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MaintenanceWindowObservation

type MaintenanceWindowObservation struct {

	// [string] The name of the week day.
	// The name of the week day.
	DayOfTheWeek *string `json:"dayOfTheWeek,omitempty" tf:"day_of_the_week,omitempty"`

	// [string] Start of the maintenance window in UTC time.
	// Start of the maintenance window in UTC time.
	Time *string `json:"time,omitempty" tf:"time,omitempty"`
}

func (*MaintenanceWindowObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceWindowObservation.

func (*MaintenanceWindowObservation) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MaintenanceWindowParameters

type MaintenanceWindowParameters struct {

	// [string] The name of the week day.
	// The name of the week day.
	// +kubebuilder:validation:Optional
	DayOfTheWeek *string `json:"dayOfTheWeek" tf:"day_of_the_week,omitempty"`

	// [string] Start of the maintenance window in UTC time.
	// Start of the maintenance window in UTC time.
	// +kubebuilder:validation:Optional
	Time *string `json:"time" tf:"time,omitempty"`
}

func (*MaintenanceWindowParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceWindowParameters.

func (*MaintenanceWindowParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MariadbCluster

type MariadbCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.connections) || (has(self.initProvider) && has(self.initProvider.connections))",message="spec.forProvider.connections is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.cores) || (has(self.initProvider) && has(self.initProvider.cores))",message="spec.forProvider.cores is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.credentials) || (has(self.initProvider) && has(self.initProvider.credentials))",message="spec.forProvider.credentials is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.displayName) || (has(self.initProvider) && has(self.initProvider.displayName))",message="spec.forProvider.displayName is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instances) || (has(self.initProvider) && has(self.initProvider.instances))",message="spec.forProvider.instances is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.mariadbVersion) || (has(self.initProvider) && has(self.initProvider.mariadbVersion))",message="spec.forProvider.mariadbVersion is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ram) || (has(self.initProvider) && has(self.initProvider.ram))",message="spec.forProvider.ram is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.storageSize) || (has(self.initProvider) && has(self.initProvider.storageSize))",message="spec.forProvider.storageSize is a required parameter"
	Spec   MariadbClusterSpec   `json:"spec"`
	Status MariadbClusterStatus `json:"status,omitempty"`
}

MariadbCluster is the Schema for the MariadbClusters API. Creates and manages DBaaS MariaDB Cluster objects. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,ionos}

func (*MariadbCluster) DeepCopy

func (in *MariadbCluster) DeepCopy() *MariadbCluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariadbCluster.

func (*MariadbCluster) DeepCopyInto

func (in *MariadbCluster) DeepCopyInto(out *MariadbCluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MariadbCluster) DeepCopyObject

func (in *MariadbCluster) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*MariadbCluster) GetCondition

func (mg *MariadbCluster) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this MariadbCluster.

func (*MariadbCluster) GetConnectionDetailsMapping

func (tr *MariadbCluster) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this MariadbCluster

func (*MariadbCluster) GetDeletionPolicy

func (mg *MariadbCluster) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this MariadbCluster.

func (*MariadbCluster) GetID

func (tr *MariadbCluster) GetID() string

GetID returns ID of underlying Terraform resource of this MariadbCluster

func (*MariadbCluster) GetInitParameters

func (tr *MariadbCluster) GetInitParameters() (map[string]any, error)

GetInitParameters of this MariadbCluster

func (*MariadbCluster) GetManagementPolicies

func (mg *MariadbCluster) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this MariadbCluster.

func (*MariadbCluster) GetMergedParameters

func (tr *MariadbCluster) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this MariadbCluster

func (*MariadbCluster) GetObservation

func (tr *MariadbCluster) GetObservation() (map[string]any, error)

GetObservation of this MariadbCluster

func (*MariadbCluster) GetParameters

func (tr *MariadbCluster) GetParameters() (map[string]any, error)

GetParameters of this MariadbCluster

func (*MariadbCluster) GetProviderConfigReference

func (mg *MariadbCluster) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this MariadbCluster.

func (*MariadbCluster) GetPublishConnectionDetailsTo

func (mg *MariadbCluster) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this MariadbCluster.

func (*MariadbCluster) GetTerraformResourceType

func (mg *MariadbCluster) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this MariadbCluster

func (*MariadbCluster) GetTerraformSchemaVersion

func (tr *MariadbCluster) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*MariadbCluster) GetWriteConnectionSecretToReference

func (mg *MariadbCluster) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this MariadbCluster.

func (*MariadbCluster) Hub

func (tr *MariadbCluster) Hub()

Hub marks this type as a conversion hub.

func (*MariadbCluster) LateInitialize

func (tr *MariadbCluster) LateInitialize(attrs []byte) (bool, error)

LateInitialize this MariadbCluster using its observed tfState. returns True if there are any spec changes for the resource.

func (*MariadbCluster) ResolveReferences

func (mg *MariadbCluster) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this MariadbCluster.

func (*MariadbCluster) SetConditions

func (mg *MariadbCluster) SetConditions(c ...xpv1.Condition)

SetConditions of this MariadbCluster.

func (*MariadbCluster) SetDeletionPolicy

func (mg *MariadbCluster) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this MariadbCluster.

func (*MariadbCluster) SetManagementPolicies

func (mg *MariadbCluster) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this MariadbCluster.

func (*MariadbCluster) SetObservation

func (tr *MariadbCluster) SetObservation(obs map[string]any) error

SetObservation for this MariadbCluster

func (*MariadbCluster) SetParameters

func (tr *MariadbCluster) SetParameters(params map[string]any) error

SetParameters for this MariadbCluster

func (*MariadbCluster) SetProviderConfigReference

func (mg *MariadbCluster) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this MariadbCluster.

func (*MariadbCluster) SetPublishConnectionDetailsTo

func (mg *MariadbCluster) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this MariadbCluster.

func (*MariadbCluster) SetWriteConnectionSecretToReference

func (mg *MariadbCluster) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this MariadbCluster.

type MariadbClusterInitParameters

type MariadbClusterInitParameters struct {

	// The network connection for your cluster. Only one connection is allowed.
	// The network connection for your cluster. Only one connection is allowed.
	Connections *ConnectionsInitParameters `json:"connections,omitempty" tf:"connections,omitempty"`

	// [int] The number of CPU cores per instance.
	// The number of CPU cores per instance.
	Cores *float64 `json:"cores,omitempty" tf:"cores,omitempty"`

	// Credentials for the database user to be created.
	// Credentials for the database user to be created.
	Credentials []CredentialsInitParameters `json:"credentials,omitempty" tf:"credentials,omitempty"`

	// [string] The friendly name of your cluster.
	// The friendly name of your cluster.
	DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`

	// [int] The total number of instances in the cluster (one primary and n-1 secondary).
	// The total number of instances in the cluster (one primary and n-1 secondary).
	Instances *float64 `json:"instances,omitempty" tf:"instances,omitempty"`

	// [string] The location in which the cluster will be created. Different service endpoints are used based on location, possible options are: "de/fra", "de/txl", "es/vit", "fr/par", "gb/lhr", "us/ewr", "us/las", "us/mci". If not set, the endpoint will be the one corresponding to "de/txl".
	// The cluster location
	Location *string `json:"location,omitempty" tf:"location,omitempty"`

	// (Computed) A weekly 4 hour-long window, during which maintenance might occur
	// A weekly 4 hour-long window, during which maintenance might occur.
	MaintenanceWindow *MaintenanceWindowInitParameters `json:"maintenanceWindow,omitempty" tf:"maintenance_window,omitempty"`

	// [string] The MariaDB version of your cluster.
	// The MariaDB version of your cluster.
	MariadbVersion *string `json:"mariadbVersion,omitempty" tf:"mariadb_version,omitempty"`

	// [int] The amount of memory per instance in gigabytes (GB).
	// The amount of memory per instance in gigabytes (GB).
	RAM *float64 `json:"ram,omitempty" tf:"ram,omitempty"`

	// [int] The amount of storage per instance in gigabytes (GB).
	// The amount of storage per instance in gigabytes (GB).
	StorageSize *float64 `json:"storageSize,omitempty" tf:"storage_size,omitempty"`
}

func (*MariadbClusterInitParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariadbClusterInitParameters.

func (*MariadbClusterInitParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MariadbClusterList

type MariadbClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MariadbCluster `json:"items"`
}

MariadbClusterList contains a list of MariadbClusters

func (*MariadbClusterList) DeepCopy

func (in *MariadbClusterList) DeepCopy() *MariadbClusterList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariadbClusterList.

func (*MariadbClusterList) DeepCopyInto

func (in *MariadbClusterList) DeepCopyInto(out *MariadbClusterList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MariadbClusterList) DeepCopyObject

func (in *MariadbClusterList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*MariadbClusterList) GetItems

func (l *MariadbClusterList) GetItems() []resource.Managed

GetItems of this MariadbClusterList.

type MariadbClusterObservation

type MariadbClusterObservation struct {

	// The network connection for your cluster. Only one connection is allowed.
	// The network connection for your cluster. Only one connection is allowed.
	Connections *ConnectionsObservation `json:"connections,omitempty" tf:"connections,omitempty"`

	// [int] The number of CPU cores per instance.
	// The number of CPU cores per instance.
	Cores *float64 `json:"cores,omitempty" tf:"cores,omitempty"`

	// Credentials for the database user to be created.
	// Credentials for the database user to be created.
	Credentials []CredentialsObservation `json:"credentials,omitempty" tf:"credentials,omitempty"`

	// (Computed)[string] The DNS name pointing to your cluster.
	// The DNS name pointing to your cluster.
	DNSName *string `json:"dnsName,omitempty" tf:"dns_name,omitempty"`

	// [string] The friendly name of your cluster.
	// The friendly name of your cluster.
	DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// [int] The total number of instances in the cluster (one primary and n-1 secondary).
	// The total number of instances in the cluster (one primary and n-1 secondary).
	Instances *float64 `json:"instances,omitempty" tf:"instances,omitempty"`

	// [string] The location in which the cluster will be created. Different service endpoints are used based on location, possible options are: "de/fra", "de/txl", "es/vit", "fr/par", "gb/lhr", "us/ewr", "us/las", "us/mci". If not set, the endpoint will be the one corresponding to "de/txl".
	// The cluster location
	Location *string `json:"location,omitempty" tf:"location,omitempty"`

	// (Computed) A weekly 4 hour-long window, during which maintenance might occur
	// A weekly 4 hour-long window, during which maintenance might occur.
	MaintenanceWindow *MaintenanceWindowObservation `json:"maintenanceWindow,omitempty" tf:"maintenance_window,omitempty"`

	// [string] The MariaDB version of your cluster.
	// The MariaDB version of your cluster.
	MariadbVersion *string `json:"mariadbVersion,omitempty" tf:"mariadb_version,omitempty"`

	// [int] The amount of memory per instance in gigabytes (GB).
	// The amount of memory per instance in gigabytes (GB).
	RAM *float64 `json:"ram,omitempty" tf:"ram,omitempty"`

	// [int] The amount of storage per instance in gigabytes (GB).
	// The amount of storage per instance in gigabytes (GB).
	StorageSize *float64 `json:"storageSize,omitempty" tf:"storage_size,omitempty"`
}

func (*MariadbClusterObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariadbClusterObservation.

func (*MariadbClusterObservation) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MariadbClusterParameters

type MariadbClusterParameters struct {

	// The network connection for your cluster. Only one connection is allowed.
	// The network connection for your cluster. Only one connection is allowed.
	// +kubebuilder:validation:Optional
	Connections *ConnectionsParameters `json:"connections,omitempty" tf:"connections,omitempty"`

	// [int] The number of CPU cores per instance.
	// The number of CPU cores per instance.
	// +kubebuilder:validation:Optional
	Cores *float64 `json:"cores,omitempty" tf:"cores,omitempty"`

	// Credentials for the database user to be created.
	// Credentials for the database user to be created.
	// +kubebuilder:validation:Optional
	Credentials []CredentialsParameters `json:"credentials,omitempty" tf:"credentials,omitempty"`

	// [string] The friendly name of your cluster.
	// The friendly name of your cluster.
	// +kubebuilder:validation:Optional
	DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`

	// [int] The total number of instances in the cluster (one primary and n-1 secondary).
	// The total number of instances in the cluster (one primary and n-1 secondary).
	// +kubebuilder:validation:Optional
	Instances *float64 `json:"instances,omitempty" tf:"instances,omitempty"`

	// [string] The location in which the cluster will be created. Different service endpoints are used based on location, possible options are: "de/fra", "de/txl", "es/vit", "fr/par", "gb/lhr", "us/ewr", "us/las", "us/mci". If not set, the endpoint will be the one corresponding to "de/txl".
	// The cluster location
	// +kubebuilder:validation:Optional
	Location *string `json:"location,omitempty" tf:"location,omitempty"`

	// (Computed) A weekly 4 hour-long window, during which maintenance might occur
	// A weekly 4 hour-long window, during which maintenance might occur.
	// +kubebuilder:validation:Optional
	MaintenanceWindow *MaintenanceWindowParameters `json:"maintenanceWindow,omitempty" tf:"maintenance_window,omitempty"`

	// [string] The MariaDB version of your cluster.
	// The MariaDB version of your cluster.
	// +kubebuilder:validation:Optional
	MariadbVersion *string `json:"mariadbVersion,omitempty" tf:"mariadb_version,omitempty"`

	// [int] The amount of memory per instance in gigabytes (GB).
	// The amount of memory per instance in gigabytes (GB).
	// +kubebuilder:validation:Optional
	RAM *float64 `json:"ram,omitempty" tf:"ram,omitempty"`

	// [int] The amount of storage per instance in gigabytes (GB).
	// The amount of storage per instance in gigabytes (GB).
	// +kubebuilder:validation:Optional
	StorageSize *float64 `json:"storageSize,omitempty" tf:"storage_size,omitempty"`
}

func (*MariadbClusterParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariadbClusterParameters.

func (*MariadbClusterParameters) DeepCopyInto

func (in *MariadbClusterParameters) DeepCopyInto(out *MariadbClusterParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MariadbClusterSpec

type MariadbClusterSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     MariadbClusterParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider MariadbClusterInitParameters `json:"initProvider,omitempty"`
}

MariadbClusterSpec defines the desired state of MariadbCluster

func (*MariadbClusterSpec) DeepCopy

func (in *MariadbClusterSpec) DeepCopy() *MariadbClusterSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariadbClusterSpec.

func (*MariadbClusterSpec) DeepCopyInto

func (in *MariadbClusterSpec) DeepCopyInto(out *MariadbClusterSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MariadbClusterStatus

type MariadbClusterStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        MariadbClusterObservation `json:"atProvider,omitempty"`
}

MariadbClusterStatus defines the observed state of MariadbCluster.

func (*MariadbClusterStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariadbClusterStatus.

func (*MariadbClusterStatus) DeepCopyInto

func (in *MariadbClusterStatus) DeepCopyInto(out *MariadbClusterStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL