v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=managed.upcloud.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: managed.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type DatabaseLogicalDatabase

type DatabaseLogicalDatabase struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DatabaseLogicalDatabaseSpec   `json:"spec,omitempty"`
	Status            DatabaseLogicalDatabaseStatus `json:"status,omitempty"`
}

func (*DatabaseLogicalDatabase) DeepCopy

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

func (*DatabaseLogicalDatabase) DeepCopyInto

func (in *DatabaseLogicalDatabase) DeepCopyInto(out *DatabaseLogicalDatabase)

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

func (*DatabaseLogicalDatabase) DeepCopyObject

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

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

func (*DatabaseLogicalDatabase) SetupWebhookWithManager

func (r *DatabaseLogicalDatabase) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*DatabaseLogicalDatabase) ValidateCreate

func (r *DatabaseLogicalDatabase) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*DatabaseLogicalDatabase) ValidateDelete

func (r *DatabaseLogicalDatabase) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*DatabaseLogicalDatabase) ValidateUpdate

func (r *DatabaseLogicalDatabase) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type DatabaseLogicalDatabaseList

type DatabaseLogicalDatabaseList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of DatabaseLogicalDatabase CRD objects
	Items []DatabaseLogicalDatabase `json:"items,omitempty"`
}

DatabaseLogicalDatabaseList is a list of DatabaseLogicalDatabases

func (*DatabaseLogicalDatabaseList) DeepCopy

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

func (*DatabaseLogicalDatabaseList) DeepCopyInto

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

func (*DatabaseLogicalDatabaseList) DeepCopyObject

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

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

type DatabaseLogicalDatabaseSpec

type DatabaseLogicalDatabaseSpec struct {
	State *DatabaseLogicalDatabaseSpecResource `json:"state,omitempty" tf:"-"`

	Resource DatabaseLogicalDatabaseSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*DatabaseLogicalDatabaseSpec) DeepCopy

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

func (*DatabaseLogicalDatabaseSpec) DeepCopyInto

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

type DatabaseLogicalDatabaseSpecResource

type DatabaseLogicalDatabaseSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Default character set for the database (LC_CTYPE)
	// +optional
	CharacterSet *string `json:"characterSet,omitempty" tf:"character_set"`
	// Default collation for the database (LC_COLLATE)
	// +optional
	Collation *string `json:"collation,omitempty" tf:"collation"`
	// Name of the logical database
	Name *string `json:"name" tf:"name"`
	// Service's UUID for which this user belongs to
	Service *string `json:"service" tf:"service"`
}

func (*DatabaseLogicalDatabaseSpecResource) DeepCopy

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

func (*DatabaseLogicalDatabaseSpecResource) DeepCopyInto

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

type DatabaseLogicalDatabaseStatus

type DatabaseLogicalDatabaseStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*DatabaseLogicalDatabaseStatus) DeepCopy

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

func (*DatabaseLogicalDatabaseStatus) DeepCopyInto

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

type DatabaseMysql

type DatabaseMysql struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DatabaseMysqlSpec   `json:"spec,omitempty"`
	Status            DatabaseMysqlStatus `json:"status,omitempty"`
}

func (*DatabaseMysql) DeepCopy

func (in *DatabaseMysql) DeepCopy() *DatabaseMysql

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

func (*DatabaseMysql) DeepCopyInto

func (in *DatabaseMysql) DeepCopyInto(out *DatabaseMysql)

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

func (*DatabaseMysql) DeepCopyObject

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

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

func (*DatabaseMysql) SetupWebhookWithManager

func (r *DatabaseMysql) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*DatabaseMysql) ValidateCreate

func (r *DatabaseMysql) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*DatabaseMysql) ValidateDelete

func (r *DatabaseMysql) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*DatabaseMysql) ValidateUpdate

func (r *DatabaseMysql) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type DatabaseMysqlList

type DatabaseMysqlList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of DatabaseMysql CRD objects
	Items []DatabaseMysql `json:"items,omitempty"`
}

DatabaseMysqlList is a list of DatabaseMysqls

func (*DatabaseMysqlList) DeepCopy

func (in *DatabaseMysqlList) DeepCopy() *DatabaseMysqlList

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

func (*DatabaseMysqlList) DeepCopyInto

func (in *DatabaseMysqlList) DeepCopyInto(out *DatabaseMysqlList)

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

func (*DatabaseMysqlList) DeepCopyObject

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

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

type DatabaseMysqlSpec

type DatabaseMysqlSpec struct {
	State *DatabaseMysqlSpecResource `json:"state,omitempty" tf:"-"`

	Resource DatabaseMysqlSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*DatabaseMysqlSpec) DeepCopy

func (in *DatabaseMysqlSpec) DeepCopy() *DatabaseMysqlSpec

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

func (*DatabaseMysqlSpec) DeepCopyInto

func (in *DatabaseMysqlSpec) DeepCopyInto(out *DatabaseMysqlSpec)

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

type DatabaseMysqlSpecComponents

type DatabaseMysqlSpecComponents struct {
	// Type of the component
	// +optional
	Component *string `json:"component,omitempty" tf:"component"`
	// Hostname of the component
	// +optional
	Host *string `json:"host,omitempty" tf:"host"`
	// Port number of the component
	// +optional
	Port *int64 `json:"port,omitempty" tf:"port"`
	// Component network route type
	// +optional
	Route *string `json:"route,omitempty" tf:"route"`
	// Usage of the component
	// +optional
	Usage *string `json:"usage,omitempty" tf:"usage"`
}

func (*DatabaseMysqlSpecComponents) DeepCopy

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

func (*DatabaseMysqlSpecComponents) DeepCopyInto

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

type DatabaseMysqlSpecNodeStates

type DatabaseMysqlSpecNodeStates struct {
	// Name plus a node iteration
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// Role of the node
	// +optional
	Role *string `json:"role,omitempty" tf:"role"`
	// State of the node
	// +optional
	State *string `json:"state,omitempty" tf:"state"`
}

func (*DatabaseMysqlSpecNodeStates) DeepCopy

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

func (*DatabaseMysqlSpecNodeStates) DeepCopyInto

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

type DatabaseMysqlSpecProperties

type DatabaseMysqlSpecProperties struct {
	// Custom password for admin user. Defaults to random string. This must be set only when a new service is being created.
	// +optional
	AdminPassword *string `json:"-" sensitive:"true" tf:"admin_password"`
	// Custom username for admin user. This must be set only when a new service is being created.
	// +optional
	AdminUsername *string `json:"adminUsername,omitempty" tf:"admin_username"`
	// Automatic utility network IP Filter
	// +optional
	AutomaticUtilityNetworkIPFilter *bool `json:"automaticUtilityNetworkIPFilter,omitempty" tf:"automatic_utility_network_ip_filter"`
	// The hour of day (in UTC) when backup for the service is started. New backup is only started if previous backup has already completed.
	// +optional
	BackupHour *int64 `json:"backupHour,omitempty" tf:"backup_hour"`
	// The minute of an hour when backup for the service is started. New backup is only started if previous backup has already completed.
	// +optional
	BackupMinute *int64 `json:"backupMinute,omitempty" tf:"backup_minute"`
	// The minimum amount of time in seconds to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default for example if using the MySQL Debezium Kafka connector.
	// +optional
	BinlogRetentionPeriod *int64 `json:"binlogRetentionPeriod,omitempty" tf:"binlog_retention_period"`
	// connect_timeout
	// +optional
	ConnectTimeout *int64 `json:"connectTimeout,omitempty" tf:"connect_timeout"`
	// default_time_zone
	// +optional
	DefaultTimeZone *string `json:"defaultTimeZone,omitempty" tf:"default_time_zone"`
	// group_concat_max_len
	// +optional
	GroupConcatMaxLen *int64 `json:"groupConcatMaxLen,omitempty" tf:"group_concat_max_len"`
	// information_schema_stats_expiry
	// +optional
	InformationSchemaStatsExpiry *int64 `json:"informationSchemaStatsExpiry,omitempty" tf:"information_schema_stats_expiry"`
	// innodb_ft_min_token_size
	// +optional
	InnodbFtMinTokenSize *int64 `json:"innodbFtMinTokenSize,omitempty" tf:"innodb_ft_min_token_size"`
	// innodb_ft_server_stopword_table
	// +optional
	InnodbFtServerStopwordTable *string `json:"innodbFtServerStopwordTable,omitempty" tf:"innodb_ft_server_stopword_table"`
	// innodb_lock_wait_timeout
	// +optional
	InnodbLockWaitTimeout *int64 `json:"innodbLockWaitTimeout,omitempty" tf:"innodb_lock_wait_timeout"`
	// innodb_log_buffer_size
	// +optional
	InnodbLogBufferSize *int64 `json:"innodbLogBufferSize,omitempty" tf:"innodb_log_buffer_size"`
	// innodb_online_alter_log_max_size
	// +optional
	InnodbOnlineAlterLogMaxSize *int64 `json:"innodbOnlineAlterLogMaxSize,omitempty" tf:"innodb_online_alter_log_max_size"`
	// innodb_print_all_deadlocks
	// +optional
	InnodbPrintAllDeadlocks *bool `json:"innodbPrintAllDeadlocks,omitempty" tf:"innodb_print_all_deadlocks"`
	// innodb_rollback_on_timeout
	// +optional
	InnodbRollbackOnTimeout *bool `json:"innodbRollbackOnTimeout,omitempty" tf:"innodb_rollback_on_timeout"`
	// interactive_timeout
	// +optional
	InteractiveTimeout *int64 `json:"interactiveTimeout,omitempty" tf:"interactive_timeout"`
	// internal_tmp_mem_storage_engine
	// +optional
	InternalTmpMemStorageEngine *string `json:"internalTmpMemStorageEngine,omitempty" tf:"internal_tmp_mem_storage_engine"`
	// IP filter
	// +optional
	// +kubebuilder:validation:MaxItems=1024
	IpFilter []string `json:"ipFilter,omitempty" tf:"ip_filter"`
	// long_query_time
	// +optional
	LongQueryTime *float64 `json:"longQueryTime,omitempty" tf:"long_query_time"`
	// max_allowed_packet
	// +optional
	MaxAllowedPacket *int64 `json:"maxAllowedPacket,omitempty" tf:"max_allowed_packet"`
	// max_heap_table_size
	// +optional
	MaxHeapTableSize *int64 `json:"maxHeapTableSize,omitempty" tf:"max_heap_table_size"`
	// Migrate data from existing server
	// +optional
	Migration *DatabaseMysqlSpecPropertiesMigration `json:"migration,omitempty" tf:"migration"`
	// net_read_timeout
	// +optional
	NetReadTimeout *int64 `json:"netReadTimeout,omitempty" tf:"net_read_timeout"`
	// net_write_timeout
	// +optional
	NetWriteTimeout *int64 `json:"netWriteTimeout,omitempty" tf:"net_write_timeout"`
	// Public Access
	// +optional
	PublicAccess *bool `json:"publicAccess,omitempty" tf:"public_access"`
	// slow_query_log
	// +optional
	SlowQueryLog *bool `json:"slowQueryLog,omitempty" tf:"slow_query_log"`
	// sort_buffer_size
	// +optional
	SortBufferSize *int64 `json:"sortBufferSize,omitempty" tf:"sort_buffer_size"`
	// sql_mode
	// +optional
	SqlMode *string `json:"sqlMode,omitempty" tf:"sql_mode"`
	// sql_require_primary_key
	// +optional
	SqlRequirePrimaryKey *bool `json:"sqlRequirePrimaryKey,omitempty" tf:"sql_require_primary_key"`
	// tmp_table_size
	// +optional
	TmpTableSize *int64 `json:"tmpTableSize,omitempty" tf:"tmp_table_size"`
	// MySQL major version
	// +optional
	Version *string `json:"version,omitempty" tf:"version"`
	// wait_timeout
	// +optional
	WaitTimeout *int64 `json:"waitTimeout,omitempty" tf:"wait_timeout"`
}

func (*DatabaseMysqlSpecProperties) DeepCopy

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

func (*DatabaseMysqlSpecProperties) DeepCopyInto

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

type DatabaseMysqlSpecPropertiesCodec

type DatabaseMysqlSpecPropertiesCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabaseMysqlSpecPropertiesCodec) Decode

func (DatabaseMysqlSpecPropertiesCodec) Encode

func (DatabaseMysqlSpecPropertiesCodec) IsEmpty

type DatabaseMysqlSpecPropertiesMigration

type DatabaseMysqlSpecPropertiesMigration struct {
	// Database name for bootstrapping the initial connection
	// +optional
	Dbname *string `json:"dbname,omitempty" tf:"dbname"`
	// Hostname or IP address of the server where to migrate data from
	// +optional
	Host *string `json:"host,omitempty" tf:"host"`
	// Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)
	// +optional
	IgnoreDbs *string `json:"ignoreDbs,omitempty" tf:"ignore_dbs"`
	// Password for authentication with the server where to migrate data from
	// +optional
	Password *string `json:"-" sensitive:"true" tf:"password"`
	// Port number of the server where to migrate data from
	// +optional
	Port *int64 `json:"port,omitempty" tf:"port"`
	// The server where to migrate data from is secured with SSL
	// +optional
	Ssl *bool `json:"ssl,omitempty" tf:"ssl"`
	// User name for authentication with the server where to migrate data from
	// +optional
	Username *string `json:"username,omitempty" tf:"username"`
}

func (*DatabaseMysqlSpecPropertiesMigration) DeepCopy

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

func (*DatabaseMysqlSpecPropertiesMigration) DeepCopyInto

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

type DatabaseMysqlSpecPropertiesMigrationCodec

type DatabaseMysqlSpecPropertiesMigrationCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabaseMysqlSpecPropertiesMigrationCodec) Decode

func (DatabaseMysqlSpecPropertiesMigrationCodec) Encode

func (DatabaseMysqlSpecPropertiesMigrationCodec) IsEmpty

type DatabaseMysqlSpecResource

type DatabaseMysqlSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Service component information
	// +optional
	Components []DatabaseMysqlSpecComponents `json:"components,omitempty" tf:"components"`
	// Maintenance window day of week. Lower case weekday name (monday, tuesday, ...)
	// +optional
	MaintenanceWindowDow *string `json:"maintenanceWindowDow,omitempty" tf:"maintenance_window_dow"`
	// Maintenance window UTC time in hh:mm:ss format
	// +optional
	MaintenanceWindowTime *string `json:"maintenanceWindowTime,omitempty" tf:"maintenance_window_time"`
	// Name of the service. The name is used as a prefix for the logical hostname. Must be unique within an account
	Name *string `json:"name" tf:"name"`
	// Information about nodes providing the managed service
	// +optional
	NodeStates []DatabaseMysqlSpecNodeStates `json:"nodeStates,omitempty" tf:"node_states"`
	// Service plan to use. This determines how much resources the instance will have
	Plan *string `json:"plan" tf:"plan"`
	// The administrative power state of the service
	// +optional
	Powered *bool `json:"powered,omitempty" tf:"powered"`
	// Primary database name
	// +optional
	PrimaryDatabase *string `json:"primaryDatabase,omitempty" tf:"primary_database"`
	// Database Engine properties for MySQL
	// +optional
	Properties *DatabaseMysqlSpecProperties `json:"properties,omitempty" tf:"properties"`
	// Hostname to the service instance
	// +optional
	ServiceHost *string `json:"serviceHost,omitempty" tf:"service_host"`
	// Primary username's password to the service instance
	// +optional
	ServicePassword *string `json:"-" sensitive:"true" tf:"service_password"`
	// Port to the service instance
	// +optional
	ServicePort *string `json:"servicePort,omitempty" tf:"service_port"`
	// URI to the service instance
	// +optional
	ServiceURI *string `json:"-" sensitive:"true" tf:"service_uri"`
	// Primary username to the service instance
	// +optional
	ServiceUsername *string `json:"serviceUsername,omitempty" tf:"service_username"`
	// State of the service
	// +optional
	State *string `json:"state,omitempty" tf:"state"`
	// Title of a managed database instance
	// +optional
	Title *string `json:"title,omitempty" tf:"title"`
	// Type of the service
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
	// Zone where the instance resides
	Zone *string `json:"zone" tf:"zone"`
}

func (*DatabaseMysqlSpecResource) DeepCopy

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

func (*DatabaseMysqlSpecResource) DeepCopyInto

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

type DatabaseMysqlStatus

type DatabaseMysqlStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*DatabaseMysqlStatus) DeepCopy

func (in *DatabaseMysqlStatus) DeepCopy() *DatabaseMysqlStatus

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

func (*DatabaseMysqlStatus) DeepCopyInto

func (in *DatabaseMysqlStatus) DeepCopyInto(out *DatabaseMysqlStatus)

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

type DatabasePostgresql

type DatabasePostgresql struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DatabasePostgresqlSpec   `json:"spec,omitempty"`
	Status            DatabasePostgresqlStatus `json:"status,omitempty"`
}

func (*DatabasePostgresql) DeepCopy

func (in *DatabasePostgresql) DeepCopy() *DatabasePostgresql

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

func (*DatabasePostgresql) DeepCopyInto

func (in *DatabasePostgresql) DeepCopyInto(out *DatabasePostgresql)

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

func (*DatabasePostgresql) DeepCopyObject

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

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

func (*DatabasePostgresql) SetupWebhookWithManager

func (r *DatabasePostgresql) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*DatabasePostgresql) ValidateCreate

func (r *DatabasePostgresql) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*DatabasePostgresql) ValidateDelete

func (r *DatabasePostgresql) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*DatabasePostgresql) ValidateUpdate

func (r *DatabasePostgresql) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type DatabasePostgresqlList

type DatabasePostgresqlList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of DatabasePostgresql CRD objects
	Items []DatabasePostgresql `json:"items,omitempty"`
}

DatabasePostgresqlList is a list of DatabasePostgresqls

func (*DatabasePostgresqlList) DeepCopy

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

func (*DatabasePostgresqlList) DeepCopyInto

func (in *DatabasePostgresqlList) DeepCopyInto(out *DatabasePostgresqlList)

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

func (*DatabasePostgresqlList) DeepCopyObject

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

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

type DatabasePostgresqlSpec

type DatabasePostgresqlSpec struct {
	State *DatabasePostgresqlSpecResource `json:"state,omitempty" tf:"-"`

	Resource DatabasePostgresqlSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*DatabasePostgresqlSpec) DeepCopy

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

func (*DatabasePostgresqlSpec) DeepCopyInto

func (in *DatabasePostgresqlSpec) DeepCopyInto(out *DatabasePostgresqlSpec)

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

type DatabasePostgresqlSpecComponents

type DatabasePostgresqlSpecComponents struct {
	// Type of the component
	// +optional
	Component *string `json:"component,omitempty" tf:"component"`
	// Hostname of the component
	// +optional
	Host *string `json:"host,omitempty" tf:"host"`
	// Port number of the component
	// +optional
	Port *int64 `json:"port,omitempty" tf:"port"`
	// Component network route type
	// +optional
	Route *string `json:"route,omitempty" tf:"route"`
	// Usage of the component
	// +optional
	Usage *string `json:"usage,omitempty" tf:"usage"`
}

func (*DatabasePostgresqlSpecComponents) DeepCopy

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

func (*DatabasePostgresqlSpecComponents) DeepCopyInto

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

type DatabasePostgresqlSpecNodeStates

type DatabasePostgresqlSpecNodeStates struct {
	// Name plus a node iteration
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// Role of the node
	// +optional
	Role *string `json:"role,omitempty" tf:"role"`
	// State of the node
	// +optional
	State *string `json:"state,omitempty" tf:"state"`
}

func (*DatabasePostgresqlSpecNodeStates) DeepCopy

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

func (*DatabasePostgresqlSpecNodeStates) DeepCopyInto

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

type DatabasePostgresqlSpecProperties

type DatabasePostgresqlSpecProperties struct {
	// Custom password for admin user. Defaults to random string. This must be set only when a new service is being created.
	// +optional
	AdminPassword *string `json:"-" sensitive:"true" tf:"admin_password"`
	// Custom username for admin user. This must be set only when a new service is being created.
	// +optional
	AdminUsername *string `json:"adminUsername,omitempty" tf:"admin_username"`
	// Automatic utility network IP Filter
	// +optional
	AutomaticUtilityNetworkIPFilter *bool `json:"automaticUtilityNetworkIPFilter,omitempty" tf:"automatic_utility_network_ip_filter"`
	// autovacuum_analyze_scale_factor
	// +optional
	AutovacuumAnalyzeScaleFactor *float64 `json:"autovacuumAnalyzeScaleFactor,omitempty" tf:"autovacuum_analyze_scale_factor"`
	// autovacuum_analyze_threshold
	// +optional
	AutovacuumAnalyzeThreshold *int64 `json:"autovacuumAnalyzeThreshold,omitempty" tf:"autovacuum_analyze_threshold"`
	// autovacuum_freeze_max_age
	// +optional
	AutovacuumFreezeMaxAge *int64 `json:"autovacuumFreezeMaxAge,omitempty" tf:"autovacuum_freeze_max_age"`
	// autovacuum_max_workers
	// +optional
	AutovacuumMaxWorkers *int64 `json:"autovacuumMaxWorkers,omitempty" tf:"autovacuum_max_workers"`
	// autovacuum_naptime
	// +optional
	AutovacuumNaptime *int64 `json:"autovacuumNaptime,omitempty" tf:"autovacuum_naptime"`
	// autovacuum_vacuum_cost_delay
	// +optional
	AutovacuumVacuumCostDelay *int64 `json:"autovacuumVacuumCostDelay,omitempty" tf:"autovacuum_vacuum_cost_delay"`
	// autovacuum_vacuum_cost_limit
	// +optional
	AutovacuumVacuumCostLimit *int64 `json:"autovacuumVacuumCostLimit,omitempty" tf:"autovacuum_vacuum_cost_limit"`
	// autovacuum_vacuum_scale_factor
	// +optional
	AutovacuumVacuumScaleFactor *float64 `json:"autovacuumVacuumScaleFactor,omitempty" tf:"autovacuum_vacuum_scale_factor"`
	// autovacuum_vacuum_threshold
	// +optional
	AutovacuumVacuumThreshold *int64 `json:"autovacuumVacuumThreshold,omitempty" tf:"autovacuum_vacuum_threshold"`
	// The hour of day (in UTC) when backup for the service is started. New backup is only started if previous backup has already completed.
	// +optional
	BackupHour *int64 `json:"backupHour,omitempty" tf:"backup_hour"`
	// The minute of an hour when backup for the service is started. New backup is only started if previous backup has already completed.
	// +optional
	BackupMinute *int64 `json:"backupMinute,omitempty" tf:"backup_minute"`
	// bgwriter_delay
	// +optional
	BgwriterDelay *int64 `json:"bgwriterDelay,omitempty" tf:"bgwriter_delay"`
	// bgwriter_flush_after
	// +optional
	BgwriterFlushAfter *int64 `json:"bgwriterFlushAfter,omitempty" tf:"bgwriter_flush_after"`
	// bgwriter_lru_maxpages
	// +optional
	BgwriterLruMaxpages *int64 `json:"bgwriterLruMaxpages,omitempty" tf:"bgwriter_lru_maxpages"`
	// bgwriter_lru_multiplier
	// +optional
	BgwriterLruMultiplier *float64 `json:"bgwriterLruMultiplier,omitempty" tf:"bgwriter_lru_multiplier"`
	// deadlock_timeout
	// +optional
	DeadlockTimeout *int64 `json:"deadlockTimeout,omitempty" tf:"deadlock_timeout"`
	// idle_in_transaction_session_timeout
	// +optional
	IdleInTransactionSessionTimeout *int64 `json:"idleInTransactionSessionTimeout,omitempty" tf:"idle_in_transaction_session_timeout"`
	// IP filter
	// +optional
	// +kubebuilder:validation:MaxItems=1024
	IpFilter []string `json:"ipFilter,omitempty" tf:"ip_filter"`
	// jit
	// +optional
	Jit *bool `json:"jit,omitempty" tf:"jit"`
	// log_autovacuum_min_duration
	// +optional
	LogAutovacuumMinDuration *int64 `json:"logAutovacuumMinDuration,omitempty" tf:"log_autovacuum_min_duration"`
	// log_error_verbosity
	// +optional
	LogErrorVerbosity *string `json:"logErrorVerbosity,omitempty" tf:"log_error_verbosity"`
	// log_line_prefix
	// +optional
	LogLinePrefix *string `json:"logLinePrefix,omitempty" tf:"log_line_prefix"`
	// log_min_duration_statement
	// +optional
	LogMinDurationStatement *int64 `json:"logMinDurationStatement,omitempty" tf:"log_min_duration_statement"`
	// max_files_per_process
	// +optional
	MaxFilesPerProcess *int64 `json:"maxFilesPerProcess,omitempty" tf:"max_files_per_process"`
	// max_locks_per_transaction
	// +optional
	MaxLocksPerTransaction *int64 `json:"maxLocksPerTransaction,omitempty" tf:"max_locks_per_transaction"`
	// max_logical_replication_workers
	// +optional
	MaxLogicalReplicationWorkers *int64 `json:"maxLogicalReplicationWorkers,omitempty" tf:"max_logical_replication_workers"`
	// max_parallel_workers
	// +optional
	MaxParallelWorkers *int64 `json:"maxParallelWorkers,omitempty" tf:"max_parallel_workers"`
	// max_parallel_workers_per_gather
	// +optional
	MaxParallelWorkersPerGather *int64 `json:"maxParallelWorkersPerGather,omitempty" tf:"max_parallel_workers_per_gather"`
	// max_pred_locks_per_transaction
	// +optional
	MaxPredLocksPerTransaction *int64 `json:"maxPredLocksPerTransaction,omitempty" tf:"max_pred_locks_per_transaction"`
	// max_prepared_transactions
	// +optional
	MaxPreparedTransactions *int64 `json:"maxPreparedTransactions,omitempty" tf:"max_prepared_transactions"`
	// max_replication_slots
	// +optional
	MaxReplicationSlots *int64 `json:"maxReplicationSlots,omitempty" tf:"max_replication_slots"`
	// max_stack_depth
	// +optional
	MaxStackDepth *int64 `json:"maxStackDepth,omitempty" tf:"max_stack_depth"`
	// max_standby_archive_delay
	// +optional
	MaxStandbyArchiveDelay *int64 `json:"maxStandbyArchiveDelay,omitempty" tf:"max_standby_archive_delay"`
	// max_standby_streaming_delay
	// +optional
	MaxStandbyStreamingDelay *int64 `json:"maxStandbyStreamingDelay,omitempty" tf:"max_standby_streaming_delay"`
	// max_wal_senders
	// +optional
	MaxWalSenders *int64 `json:"maxWalSenders,omitempty" tf:"max_wal_senders"`
	// max_worker_processes
	// +optional
	MaxWorkerProcesses *int64 `json:"maxWorkerProcesses,omitempty" tf:"max_worker_processes"`
	// Migrate data from existing server
	// +optional
	Migration *DatabasePostgresqlSpecPropertiesMigration `json:"migration,omitempty" tf:"migration"`
	// pg_partman_bgw.interval
	// +optional
	PgPartmanBgwInterval *int64 `json:"pgPartmanBgwInterval,omitempty" tf:"pg_partman_bgw_interval"`
	// pg_partman_bgw.role
	// +optional
	PgPartmanBgwRole *string `json:"pgPartmanBgwRole,omitempty" tf:"pg_partman_bgw_role"`
	// Should the service which is being forked be a read replica
	// +optional
	PgReadReplica *bool `json:"pgReadReplica,omitempty" tf:"pg_read_replica"`
	// Name of the PG Service from which to fork (deprecated, use service_to_fork_from). This has effect only when a new service is being created.
	// +optional
	PgServiceToForkFrom *string `json:"pgServiceToForkFrom,omitempty" tf:"pg_service_to_fork_from"`
	// pg_stat_statements.track
	// +optional
	PgStatStatementsTrack *string `json:"pgStatStatementsTrack,omitempty" tf:"pg_stat_statements_track"`
	// PGBouncer connection pooling settings
	// +optional
	Pgbouncer *DatabasePostgresqlSpecPropertiesPgbouncer `json:"pgbouncer,omitempty" tf:"pgbouncer"`
	// PGLookout settings
	// +optional
	Pglookout *DatabasePostgresqlSpecPropertiesPglookout `json:"pglookout,omitempty" tf:"pglookout"`
	// Public Access
	// +optional
	PublicAccess *bool `json:"publicAccess,omitempty" tf:"public_access"`
	// shared_buffers_percentage
	// +optional
	SharedBuffersPercentage *float64 `json:"sharedBuffersPercentage,omitempty" tf:"shared_buffers_percentage"`
	// Synchronous replication type. Note that the service plan also needs to support synchronous replication.
	// +optional
	SynchronousReplication *string `json:"synchronousReplication,omitempty" tf:"synchronous_replication"`
	// temp_file_limit
	// +optional
	TempFileLimit *int64 `json:"tempFileLimit,omitempty" tf:"temp_file_limit"`
	// TimescaleDB extension configuration values
	// +optional
	Timescaledb *DatabasePostgresqlSpecPropertiesTimescaledb `json:"timescaledb,omitempty" tf:"timescaledb"`
	// timezone
	// +optional
	Timezone *string `json:"timezone,omitempty" tf:"timezone"`
	// track_activity_query_size
	// +optional
	TrackActivityQuerySize *int64 `json:"trackActivityQuerySize,omitempty" tf:"track_activity_query_size"`
	// track_commit_timestamp
	// +optional
	TrackCommitTimestamp *string `json:"trackCommitTimestamp,omitempty" tf:"track_commit_timestamp"`
	// track_functions
	// +optional
	TrackFunctions *string `json:"trackFunctions,omitempty" tf:"track_functions"`
	// track_io_timing
	// +optional
	TrackIoTiming *string `json:"trackIoTiming,omitempty" tf:"track_io_timing"`
	// Variant of the PostgreSQL service, may affect the features that are exposed by default
	// +optional
	Variant *string `json:"variant,omitempty" tf:"variant"`
	// PostgreSQL major version
	// +optional
	Version *string `json:"version,omitempty" tf:"version"`
	// wal_sender_timeout
	// +optional
	WalSenderTimeout *int64 `json:"walSenderTimeout,omitempty" tf:"wal_sender_timeout"`
	// wal_writer_delay
	// +optional
	WalWriterDelay *int64 `json:"walWriterDelay,omitempty" tf:"wal_writer_delay"`
	// work_mem
	// +optional
	WorkMem *int64 `json:"workMem,omitempty" tf:"work_mem"`
}

func (*DatabasePostgresqlSpecProperties) DeepCopy

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

func (*DatabasePostgresqlSpecProperties) DeepCopyInto

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

type DatabasePostgresqlSpecPropertiesCodec

type DatabasePostgresqlSpecPropertiesCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabasePostgresqlSpecPropertiesCodec) Decode

func (DatabasePostgresqlSpecPropertiesCodec) Encode

func (DatabasePostgresqlSpecPropertiesCodec) IsEmpty

type DatabasePostgresqlSpecPropertiesMigration

type DatabasePostgresqlSpecPropertiesMigration struct {
	// Database name for bootstrapping the initial connection
	// +optional
	Dbname *string `json:"dbname,omitempty" tf:"dbname"`
	// Hostname or IP address of the server where to migrate data from
	// +optional
	Host *string `json:"host,omitempty" tf:"host"`
	// Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)
	// +optional
	IgnoreDbs *string `json:"ignoreDbs,omitempty" tf:"ignore_dbs"`
	// Password for authentication with the server where to migrate data from
	// +optional
	Password *string `json:"-" sensitive:"true" tf:"password"`
	// Port number of the server where to migrate data from
	// +optional
	Port *int64 `json:"port,omitempty" tf:"port"`
	// The server where to migrate data from is secured with SSL
	// +optional
	Ssl *bool `json:"ssl,omitempty" tf:"ssl"`
	// User name for authentication with the server where to migrate data from
	// +optional
	Username *string `json:"username,omitempty" tf:"username"`
}

func (*DatabasePostgresqlSpecPropertiesMigration) DeepCopy

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

func (*DatabasePostgresqlSpecPropertiesMigration) DeepCopyInto

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

type DatabasePostgresqlSpecPropertiesMigrationCodec

type DatabasePostgresqlSpecPropertiesMigrationCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabasePostgresqlSpecPropertiesMigrationCodec) Decode

func (DatabasePostgresqlSpecPropertiesMigrationCodec) Encode

func (DatabasePostgresqlSpecPropertiesMigrationCodec) IsEmpty

type DatabasePostgresqlSpecPropertiesPgbouncer

type DatabasePostgresqlSpecPropertiesPgbouncer struct {
	// If the automatically created database pools have been unused this many seconds, they are freed. If 0 then timeout is disabled. [seconds]
	// +optional
	AutodbIdleTimeout *int64 `json:"autodbIdleTimeout,omitempty" tf:"autodb_idle_timeout"`
	// Do not allow more than this many server connections per database (regardless of user). Setting it to 0 means unlimited.
	// +optional
	AutodbMaxDbConnections *int64 `json:"autodbMaxDbConnections,omitempty" tf:"autodb_max_db_connections"`
	// PGBouncer pool mode
	// +optional
	AutodbPoolMode *string `json:"autodbPoolMode,omitempty" tf:"autodb_pool_mode"`
	// If non-zero then create automatically a pool of that size per user when a pool doesn't exist.
	// +optional
	AutodbPoolSize *int64 `json:"autodbPoolSize,omitempty" tf:"autodb_pool_size"`
	// List of parameters to ignore when given in startup packet
	// +optional
	// +kubebuilder:validation:MaxItems=32
	IgnoreStartupParameters []string `json:"ignoreStartupParameters,omitempty" tf:"ignore_startup_parameters"`
	// Add more server connections to pool if below this number. Improves behavior when usual load comes suddenly back after period of total inactivity. The value is effectively capped at the pool size.
	// +optional
	MinPoolSize *int64 `json:"minPoolSize,omitempty" tf:"min_pool_size"`
	// If a server connection has been idle more than this many seconds it will be dropped. If 0 then timeout is disabled. [seconds]
	// +optional
	ServerIdleTimeout *int64 `json:"serverIdleTimeout,omitempty" tf:"server_idle_timeout"`
	// The pooler will close an unused server connection that has been connected longer than this. [seconds]
	// +optional
	ServerLifetime *int64 `json:"serverLifetime,omitempty" tf:"server_lifetime"`
	// Run server_reset_query (DISCARD ALL) in all pooling modes
	// +optional
	ServerResetQueryAlways *bool `json:"serverResetQueryAlways,omitempty" tf:"server_reset_query_always"`
}

func (*DatabasePostgresqlSpecPropertiesPgbouncer) DeepCopy

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

func (*DatabasePostgresqlSpecPropertiesPgbouncer) DeepCopyInto

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

type DatabasePostgresqlSpecPropertiesPgbouncerCodec

type DatabasePostgresqlSpecPropertiesPgbouncerCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabasePostgresqlSpecPropertiesPgbouncerCodec) Decode

func (DatabasePostgresqlSpecPropertiesPgbouncerCodec) Encode

func (DatabasePostgresqlSpecPropertiesPgbouncerCodec) IsEmpty

type DatabasePostgresqlSpecPropertiesPglookout

type DatabasePostgresqlSpecPropertiesPglookout struct {
	// max_failover_replication_time_lag
	// +optional
	MaxFailoverReplicationTimeLag *int64 `json:"maxFailoverReplicationTimeLag,omitempty" tf:"max_failover_replication_time_lag"`
}

func (*DatabasePostgresqlSpecPropertiesPglookout) DeepCopy

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

func (*DatabasePostgresqlSpecPropertiesPglookout) DeepCopyInto

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

type DatabasePostgresqlSpecPropertiesPglookoutCodec

type DatabasePostgresqlSpecPropertiesPglookoutCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabasePostgresqlSpecPropertiesPglookoutCodec) Decode

func (DatabasePostgresqlSpecPropertiesPglookoutCodec) Encode

func (DatabasePostgresqlSpecPropertiesPglookoutCodec) IsEmpty

type DatabasePostgresqlSpecPropertiesTimescaledb

type DatabasePostgresqlSpecPropertiesTimescaledb struct {
	// timescaledb.max_background_workers
	// +optional
	MaxBackgroundWorkers *int64 `json:"maxBackgroundWorkers,omitempty" tf:"max_background_workers"`
}

func (*DatabasePostgresqlSpecPropertiesTimescaledb) DeepCopy

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

func (*DatabasePostgresqlSpecPropertiesTimescaledb) DeepCopyInto

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

type DatabasePostgresqlSpecPropertiesTimescaledbCodec

type DatabasePostgresqlSpecPropertiesTimescaledbCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabasePostgresqlSpecPropertiesTimescaledbCodec) Decode

func (DatabasePostgresqlSpecPropertiesTimescaledbCodec) Encode

func (DatabasePostgresqlSpecPropertiesTimescaledbCodec) IsEmpty

type DatabasePostgresqlSpecResource

type DatabasePostgresqlSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Service component information
	// +optional
	Components []DatabasePostgresqlSpecComponents `json:"components,omitempty" tf:"components"`
	// Maintenance window day of week. Lower case weekday name (monday, tuesday, ...)
	// +optional
	MaintenanceWindowDow *string `json:"maintenanceWindowDow,omitempty" tf:"maintenance_window_dow"`
	// Maintenance window UTC time in hh:mm:ss format
	// +optional
	MaintenanceWindowTime *string `json:"maintenanceWindowTime,omitempty" tf:"maintenance_window_time"`
	// Name of the service. The name is used as a prefix for the logical hostname. Must be unique within an account
	Name *string `json:"name" tf:"name"`
	// Information about nodes providing the managed service
	// +optional
	NodeStates []DatabasePostgresqlSpecNodeStates `json:"nodeStates,omitempty" tf:"node_states"`
	// Service plan to use. This determines how much resources the instance will have
	Plan *string `json:"plan" tf:"plan"`
	// The administrative power state of the service
	// +optional
	Powered *bool `json:"powered,omitempty" tf:"powered"`
	// Primary database name
	// +optional
	PrimaryDatabase *string `json:"primaryDatabase,omitempty" tf:"primary_database"`
	// Database Engine properties for PostgreSQL
	// +optional
	Properties *DatabasePostgresqlSpecProperties `json:"properties,omitempty" tf:"properties"`
	// Hostname to the service instance
	// +optional
	ServiceHost *string `json:"serviceHost,omitempty" tf:"service_host"`
	// Primary username's password to the service instance
	// +optional
	ServicePassword *string `json:"-" sensitive:"true" tf:"service_password"`
	// Port to the service instance
	// +optional
	ServicePort *string `json:"servicePort,omitempty" tf:"service_port"`
	// URI to the service instance
	// +optional
	ServiceURI *string `json:"-" sensitive:"true" tf:"service_uri"`
	// Primary username to the service instance
	// +optional
	ServiceUsername *string `json:"serviceUsername,omitempty" tf:"service_username"`
	// SSL Connection Mode for PostgreSQL
	// +optional
	Sslmode *string `json:"sslmode,omitempty" tf:"sslmode"`
	// State of the service
	// +optional
	State *string `json:"state,omitempty" tf:"state"`
	// Title of a managed database instance
	// +optional
	Title *string `json:"title,omitempty" tf:"title"`
	// Type of the service
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
	// Zone where the instance resides
	Zone *string `json:"zone" tf:"zone"`
}

func (*DatabasePostgresqlSpecResource) DeepCopy

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

func (*DatabasePostgresqlSpecResource) DeepCopyInto

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

type DatabasePostgresqlStatus

type DatabasePostgresqlStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*DatabasePostgresqlStatus) DeepCopy

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

func (*DatabasePostgresqlStatus) DeepCopyInto

func (in *DatabasePostgresqlStatus) DeepCopyInto(out *DatabasePostgresqlStatus)

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

type DatabaseUser

type DatabaseUser struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DatabaseUserSpec   `json:"spec,omitempty"`
	Status            DatabaseUserStatus `json:"status,omitempty"`
}

func (*DatabaseUser) DeepCopy

func (in *DatabaseUser) DeepCopy() *DatabaseUser

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

func (*DatabaseUser) DeepCopyInto

func (in *DatabaseUser) DeepCopyInto(out *DatabaseUser)

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

func (*DatabaseUser) DeepCopyObject

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

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

func (*DatabaseUser) SetupWebhookWithManager

func (r *DatabaseUser) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*DatabaseUser) ValidateCreate

func (r *DatabaseUser) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*DatabaseUser) ValidateDelete

func (r *DatabaseUser) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*DatabaseUser) ValidateUpdate

func (r *DatabaseUser) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type DatabaseUserList

type DatabaseUserList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of DatabaseUser CRD objects
	Items []DatabaseUser `json:"items,omitempty"`
}

DatabaseUserList is a list of DatabaseUsers

func (*DatabaseUserList) DeepCopy

func (in *DatabaseUserList) DeepCopy() *DatabaseUserList

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

func (*DatabaseUserList) DeepCopyInto

func (in *DatabaseUserList) DeepCopyInto(out *DatabaseUserList)

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

func (*DatabaseUserList) DeepCopyObject

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

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

type DatabaseUserSpec

type DatabaseUserSpec struct {
	State *DatabaseUserSpecResource `json:"state,omitempty" tf:"-"`

	Resource DatabaseUserSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*DatabaseUserSpec) DeepCopy

func (in *DatabaseUserSpec) DeepCopy() *DatabaseUserSpec

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

func (*DatabaseUserSpec) DeepCopyInto

func (in *DatabaseUserSpec) DeepCopyInto(out *DatabaseUserSpec)

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

type DatabaseUserSpecResource

type DatabaseUserSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Password for the database user. Defaults to a random value
	// +optional
	Password *string `json:"-" sensitive:"true" tf:"password"`
	// Service's UUID for which this user belongs to
	Service *string `json:"service" tf:"service"`
	// Type of the user. Only normal type users can be created
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
	// Name of the database user
	Username *string `json:"username" tf:"username"`
}

func (*DatabaseUserSpecResource) DeepCopy

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

func (*DatabaseUserSpecResource) DeepCopyInto

func (in *DatabaseUserSpecResource) DeepCopyInto(out *DatabaseUserSpecResource)

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

type DatabaseUserStatus

type DatabaseUserStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*DatabaseUserStatus) DeepCopy

func (in *DatabaseUserStatus) DeepCopy() *DatabaseUserStatus

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

func (*DatabaseUserStatus) DeepCopyInto

func (in *DatabaseUserStatus) DeepCopyInto(out *DatabaseUserStatus)

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