v1alpha1

package
Version: v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 20 Imported by: 10

Documentation

Overview

+k8s:deepcopy-gen=package,register +k8s:conversion-gen=kubedb.dev/apimachinery/apis/kubedb/v1alpha2 +k8s:openapi-gen=true +k8s:defaulter-gen=TypeMeta +groupName=kubedb.com

Index

Constants

View Source
const (
	ResourceCodeElasticsearch     = "es"
	ResourceKindElasticsearch     = "Elasticsearch"
	ResourceSingularElasticsearch = "elasticsearch"
	ResourcePluralElasticsearch   = "elasticsearches"
)
View Source
const (
	ResourceCodeEtcd     = "etc"
	ResourceKindEtcd     = "Etcd"
	ResourceSingularEtcd = "etcd"
	ResourcePluralEtcd   = "etcds"
)
View Source
const (
	ResourceCodeMariaDB     = "md"
	ResourceKindMariaDB     = "MariaDB"
	ResourceSingularMariaDB = "mariadb"
	ResourcePluralMariaDB   = "mariadbs"
)
View Source
const (
	ResourceCodeMemcached     = "mc"
	ResourceKindMemcached     = "Memcached"
	ResourceSingularMemcached = "memcached"
	ResourcePluralMemcached   = "memcacheds"
)
View Source
const (
	ResourceCodeMongoDB     = "mg"
	ResourceKindMongoDB     = "MongoDB"
	ResourceSingularMongoDB = "mongodb"
	ResourcePluralMongoDB   = "mongodbs"
)
View Source
const (
	ResourceCodeMySQL     = "my"
	ResourceKindMySQL     = "MySQL"
	ResourceSingularMySQL = "mysql"
	ResourcePluralMySQL   = "mysqls"
)
View Source
const (
	ResourceCodePerconaXtraDB     = "px"
	ResourceKindPerconaXtraDB     = "PerconaXtraDB"
	ResourceSingularPerconaXtraDB = "perconaxtradb"
	ResourcePluralPerconaXtraDB   = "perconaxtradbs"
)
View Source
const (
	ResourceCodePostgres     = "pg"
	ResourceKindPostgres     = "Postgres"
	ResourceSingularPostgres = "postgres"
	ResourcePluralPostgres   = "postgreses"
)
View Source
const (
	ResourceCodeRedis     = "rd"
	ResourceKindRedis     = "Redis"
	ResourceSingularRedis = "redis"
	ResourcePluralRedis   = "redises"
)

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: kubedb.GroupName, Version: "v1alpha1"}

Functions

func Convert_int64_To_types_IntHash

func Convert_int64_To_types_IntHash(in *int64, out *types.IntHash, s conversion.Scope) error

func Convert_types_IntHash_To_int64

func Convert_types_IntHash_To_int64(in *types.IntHash, out *int64, s conversion.Scope) error

func Convert_v1alpha1_ElasticsearchClusterTopology_To_v1alpha2_ElasticsearchClusterTopology

func Convert_v1alpha1_ElasticsearchClusterTopology_To_v1alpha2_ElasticsearchClusterTopology(in *ElasticsearchClusterTopology, out *v1alpha2.ElasticsearchClusterTopology, s conversion.Scope) error

func Convert_v1alpha1_ElasticsearchList_To_v1alpha2_ElasticsearchList

func Convert_v1alpha1_ElasticsearchList_To_v1alpha2_ElasticsearchList(in *ElasticsearchList, out *v1alpha2.ElasticsearchList, s conversion.Scope) error

Convert_v1alpha1_ElasticsearchList_To_v1alpha2_ElasticsearchList is an autogenerated conversion function.

func Convert_v1alpha1_ElasticsearchNode_To_v1alpha2_ElasticsearchNode

func Convert_v1alpha1_ElasticsearchNode_To_v1alpha2_ElasticsearchNode(in *ElasticsearchNode, out *v1alpha2.ElasticsearchNode, s conversion.Scope) error

func Convert_v1alpha1_ElasticsearchSpec_To_v1alpha2_ElasticsearchSpec

func Convert_v1alpha1_ElasticsearchSpec_To_v1alpha2_ElasticsearchSpec(in *ElasticsearchSpec, out *v1alpha2.ElasticsearchSpec, s conversion.Scope) error

func Convert_v1alpha1_ElasticsearchStatus_To_v1alpha2_ElasticsearchStatus

func Convert_v1alpha1_ElasticsearchStatus_To_v1alpha2_ElasticsearchStatus(in *ElasticsearchStatus, out *v1alpha2.ElasticsearchStatus, s conversion.Scope) error

func Convert_v1alpha1_Elasticsearch_To_v1alpha2_Elasticsearch

func Convert_v1alpha1_Elasticsearch_To_v1alpha2_Elasticsearch(in *Elasticsearch, out *v1alpha2.Elasticsearch, s conversion.Scope) error

Convert_v1alpha1_Elasticsearch_To_v1alpha2_Elasticsearch is an autogenerated conversion function.

func Convert_v1alpha1_EtcdList_To_v1alpha2_EtcdList

func Convert_v1alpha1_EtcdList_To_v1alpha2_EtcdList(in *EtcdList, out *v1alpha2.EtcdList, s conversion.Scope) error

Convert_v1alpha1_EtcdList_To_v1alpha2_EtcdList is an autogenerated conversion function.

func Convert_v1alpha1_EtcdSpec_To_v1alpha2_EtcdSpec

func Convert_v1alpha1_EtcdSpec_To_v1alpha2_EtcdSpec(in *EtcdSpec, out *v1alpha2.EtcdSpec, s conversion.Scope) error

func Convert_v1alpha1_EtcdStatus_To_v1alpha2_EtcdStatus

func Convert_v1alpha1_EtcdStatus_To_v1alpha2_EtcdStatus(in *EtcdStatus, out *v1alpha2.EtcdStatus, s conversion.Scope) error

func Convert_v1alpha1_Etcd_To_v1alpha2_Etcd

func Convert_v1alpha1_Etcd_To_v1alpha2_Etcd(in *Etcd, out *v1alpha2.Etcd, s conversion.Scope) error

Convert_v1alpha1_Etcd_To_v1alpha2_Etcd is an autogenerated conversion function.

func Convert_v1alpha1_InitSpec_To_v1alpha2_InitSpec

func Convert_v1alpha1_InitSpec_To_v1alpha2_InitSpec(in *InitSpec, out *v1alpha2.InitSpec, s conversion.Scope) error

func Convert_v1alpha1_LeaderElectionConfig_To_v1alpha2_PostgreLeaderElectionConfig

func Convert_v1alpha1_LeaderElectionConfig_To_v1alpha2_PostgreLeaderElectionConfig(in *LeaderElectionConfig, out *v1alpha2.PostgreLeaderElectionConfig, s conversion.Scope) error

func Convert_v1alpha1_MariaDBList_To_v1alpha2_MariaDBList

func Convert_v1alpha1_MariaDBList_To_v1alpha2_MariaDBList(in *MariaDBList, out *v1alpha2.MariaDBList, s conversion.Scope) error

Convert_v1alpha1_MariaDBList_To_v1alpha2_MariaDBList is an autogenerated conversion function.

func Convert_v1alpha1_MariaDBSpec_To_v1alpha2_MariaDBSpec

func Convert_v1alpha1_MariaDBSpec_To_v1alpha2_MariaDBSpec(in *MariaDBSpec, out *v1alpha2.MariaDBSpec, s conversion.Scope) error

func Convert_v1alpha1_MariaDBStatus_To_v1alpha2_MariaDBStatus

func Convert_v1alpha1_MariaDBStatus_To_v1alpha2_MariaDBStatus(in *MariaDBStatus, out *v1alpha2.MariaDBStatus, s conversion.Scope) error

func Convert_v1alpha1_MariaDB_To_v1alpha2_MariaDB

func Convert_v1alpha1_MariaDB_To_v1alpha2_MariaDB(in *MariaDB, out *v1alpha2.MariaDB, s conversion.Scope) error

Convert_v1alpha1_MariaDB_To_v1alpha2_MariaDB is an autogenerated conversion function.

func Convert_v1alpha1_MemberSecret_To_v1alpha2_MemberSecret

func Convert_v1alpha1_MemberSecret_To_v1alpha2_MemberSecret(in *MemberSecret, out *v1alpha2.MemberSecret, s conversion.Scope) error

Convert_v1alpha1_MemberSecret_To_v1alpha2_MemberSecret is an autogenerated conversion function.

func Convert_v1alpha1_MemcachedList_To_v1alpha2_MemcachedList

func Convert_v1alpha1_MemcachedList_To_v1alpha2_MemcachedList(in *MemcachedList, out *v1alpha2.MemcachedList, s conversion.Scope) error

Convert_v1alpha1_MemcachedList_To_v1alpha2_MemcachedList is an autogenerated conversion function.

func Convert_v1alpha1_MemcachedSpec_To_v1alpha2_MemcachedSpec

func Convert_v1alpha1_MemcachedSpec_To_v1alpha2_MemcachedSpec(in *MemcachedSpec, out *v1alpha2.MemcachedSpec, s conversion.Scope) error

func Convert_v1alpha1_MemcachedStatus_To_v1alpha2_MemcachedStatus

func Convert_v1alpha1_MemcachedStatus_To_v1alpha2_MemcachedStatus(in *MemcachedStatus, out *v1alpha2.MemcachedStatus, s conversion.Scope) error

func Convert_v1alpha1_Memcached_To_v1alpha2_Memcached

func Convert_v1alpha1_Memcached_To_v1alpha2_Memcached(in *Memcached, out *v1alpha2.Memcached, s conversion.Scope) error

Convert_v1alpha1_Memcached_To_v1alpha2_Memcached is an autogenerated conversion function.

func Convert_v1alpha1_MongoDBConfigNode_To_v1alpha2_MongoDBConfigNode

func Convert_v1alpha1_MongoDBConfigNode_To_v1alpha2_MongoDBConfigNode(in *MongoDBConfigNode, out *v1alpha2.MongoDBConfigNode, s conversion.Scope) error

Convert_v1alpha1_MongoDBConfigNode_To_v1alpha2_MongoDBConfigNode is an autogenerated conversion function.

func Convert_v1alpha1_MongoDBList_To_v1alpha2_MongoDBList

func Convert_v1alpha1_MongoDBList_To_v1alpha2_MongoDBList(in *MongoDBList, out *v1alpha2.MongoDBList, s conversion.Scope) error

Convert_v1alpha1_MongoDBList_To_v1alpha2_MongoDBList is an autogenerated conversion function.

func Convert_v1alpha1_MongoDBMongosNode_To_v1alpha2_MongoDBMongosNode

func Convert_v1alpha1_MongoDBMongosNode_To_v1alpha2_MongoDBMongosNode(in *MongoDBMongosNode, out *v1alpha2.MongoDBMongosNode, s conversion.Scope) error

func Convert_v1alpha1_MongoDBNode_To_v1alpha2_MongoDBNode

func Convert_v1alpha1_MongoDBNode_To_v1alpha2_MongoDBNode(in *MongoDBNode, out *v1alpha2.MongoDBNode, s conversion.Scope) error

func Convert_v1alpha1_MongoDBReplicaSet_To_v1alpha2_MongoDBReplicaSet

func Convert_v1alpha1_MongoDBReplicaSet_To_v1alpha2_MongoDBReplicaSet(in *MongoDBReplicaSet, out *v1alpha2.MongoDBReplicaSet, s conversion.Scope) error

func Convert_v1alpha1_MongoDBShardNode_To_v1alpha2_MongoDBShardNode

func Convert_v1alpha1_MongoDBShardNode_To_v1alpha2_MongoDBShardNode(in *MongoDBShardNode, out *v1alpha2.MongoDBShardNode, s conversion.Scope) error

Convert_v1alpha1_MongoDBShardNode_To_v1alpha2_MongoDBShardNode is an autogenerated conversion function.

func Convert_v1alpha1_MongoDBShardingTopology_To_v1alpha2_MongoDBShardingTopology

func Convert_v1alpha1_MongoDBShardingTopology_To_v1alpha2_MongoDBShardingTopology(in *MongoDBShardingTopology, out *v1alpha2.MongoDBShardingTopology, s conversion.Scope) error

Convert_v1alpha1_MongoDBShardingTopology_To_v1alpha2_MongoDBShardingTopology is an autogenerated conversion function.

func Convert_v1alpha1_MongoDBSpec_To_v1alpha2_MongoDBSpec

func Convert_v1alpha1_MongoDBSpec_To_v1alpha2_MongoDBSpec(in *MongoDBSpec, out *v1alpha2.MongoDBSpec, s conversion.Scope) error

func Convert_v1alpha1_MongoDBStatus_To_v1alpha2_MongoDBStatus

func Convert_v1alpha1_MongoDBStatus_To_v1alpha2_MongoDBStatus(in *MongoDBStatus, out *v1alpha2.MongoDBStatus, s conversion.Scope) error

func Convert_v1alpha1_MongoDB_To_v1alpha2_MongoDB

func Convert_v1alpha1_MongoDB_To_v1alpha2_MongoDB(in *MongoDB, out *v1alpha2.MongoDB, s conversion.Scope) error

Convert_v1alpha1_MongoDB_To_v1alpha2_MongoDB is an autogenerated conversion function.

func Convert_v1alpha1_MySQLGroupSpec_To_v1alpha2_MySQLGroupSpec

func Convert_v1alpha1_MySQLGroupSpec_To_v1alpha2_MySQLGroupSpec(in *MySQLGroupSpec, out *v1alpha2.MySQLGroupSpec, s conversion.Scope) error

func Convert_v1alpha1_MySQLList_To_v1alpha2_MySQLList

func Convert_v1alpha1_MySQLList_To_v1alpha2_MySQLList(in *MySQLList, out *v1alpha2.MySQLList, s conversion.Scope) error

Convert_v1alpha1_MySQLList_To_v1alpha2_MySQLList is an autogenerated conversion function.

func Convert_v1alpha1_MySQLSpec_To_v1alpha2_MySQLSpec

func Convert_v1alpha1_MySQLSpec_To_v1alpha2_MySQLSpec(in *MySQLSpec, out *v1alpha2.MySQLSpec, s conversion.Scope) error

func Convert_v1alpha1_MySQLStatus_To_v1alpha2_MySQLStatus

func Convert_v1alpha1_MySQLStatus_To_v1alpha2_MySQLStatus(in *MySQLStatus, out *v1alpha2.MySQLStatus, s conversion.Scope) error

func Convert_v1alpha1_MySQLTopology_To_v1alpha2_MySQLTopology added in v0.25.0

func Convert_v1alpha1_MySQLTopology_To_v1alpha2_MySQLTopology(in *MySQLTopology, out *v1alpha2.MySQLTopology, s conversion.Scope) error

Convert_v1alpha1_MySQLTopology_To_v1alpha2_MySQLTopology is an autogenerated conversion function.

func Convert_v1alpha1_MySQL_To_v1alpha2_MySQL

func Convert_v1alpha1_MySQL_To_v1alpha2_MySQL(in *MySQL, out *v1alpha2.MySQL, s conversion.Scope) error

Convert_v1alpha1_MySQL_To_v1alpha2_MySQL is an autogenerated conversion function.

func Convert_v1alpha1_PerconaXtraDBList_To_v1alpha2_PerconaXtraDBList

func Convert_v1alpha1_PerconaXtraDBList_To_v1alpha2_PerconaXtraDBList(in *PerconaXtraDBList, out *v1alpha2.PerconaXtraDBList, s conversion.Scope) error

Convert_v1alpha1_PerconaXtraDBList_To_v1alpha2_PerconaXtraDBList is an autogenerated conversion function.

func Convert_v1alpha1_PerconaXtraDBSpec_To_v1alpha2_PerconaXtraDBSpec

func Convert_v1alpha1_PerconaXtraDBSpec_To_v1alpha2_PerconaXtraDBSpec(in *PerconaXtraDBSpec, out *v1alpha2.PerconaXtraDBSpec, s conversion.Scope) error

func Convert_v1alpha1_PerconaXtraDBStatus_To_v1alpha2_PerconaXtraDBStatus

func Convert_v1alpha1_PerconaXtraDBStatus_To_v1alpha2_PerconaXtraDBStatus(in *PerconaXtraDBStatus, out *v1alpha2.PerconaXtraDBStatus, s conversion.Scope) error

func Convert_v1alpha1_PerconaXtraDB_To_v1alpha2_PerconaXtraDB

func Convert_v1alpha1_PerconaXtraDB_To_v1alpha2_PerconaXtraDB(in *PerconaXtraDB, out *v1alpha2.PerconaXtraDB, s conversion.Scope) error

Convert_v1alpha1_PerconaXtraDB_To_v1alpha2_PerconaXtraDB is an autogenerated conversion function.

func Convert_v1alpha1_PostgresList_To_v1alpha2_PostgresList

func Convert_v1alpha1_PostgresList_To_v1alpha2_PostgresList(in *PostgresList, out *v1alpha2.PostgresList, s conversion.Scope) error

Convert_v1alpha1_PostgresList_To_v1alpha2_PostgresList is an autogenerated conversion function.

func Convert_v1alpha1_PostgresSpec_To_v1alpha2_PostgresSpec

func Convert_v1alpha1_PostgresSpec_To_v1alpha2_PostgresSpec(in *PostgresSpec, out *v1alpha2.PostgresSpec, s conversion.Scope) error

func Convert_v1alpha1_PostgresStatus_To_v1alpha2_PostgresStatus

func Convert_v1alpha1_PostgresStatus_To_v1alpha2_PostgresStatus(in *PostgresStatus, out *v1alpha2.PostgresStatus, s conversion.Scope) error

func Convert_v1alpha1_Postgres_To_v1alpha2_Postgres

func Convert_v1alpha1_Postgres_To_v1alpha2_Postgres(in *Postgres, out *v1alpha2.Postgres, s conversion.Scope) error

Convert_v1alpha1_Postgres_To_v1alpha2_Postgres is an autogenerated conversion function.

func Convert_v1alpha1_RecoveryTarget_To_v1alpha2_RecoveryTarget

func Convert_v1alpha1_RecoveryTarget_To_v1alpha2_RecoveryTarget(in *RecoveryTarget, out *v1alpha2.RecoveryTarget, s conversion.Scope) error

Convert_v1alpha1_RecoveryTarget_To_v1alpha2_RecoveryTarget is an autogenerated conversion function.

func Convert_v1alpha1_RedisClusterSpec_To_v1alpha2_RedisClusterSpec

func Convert_v1alpha1_RedisClusterSpec_To_v1alpha2_RedisClusterSpec(in *RedisClusterSpec, out *v1alpha2.RedisClusterSpec, s conversion.Scope) error

Convert_v1alpha1_RedisClusterSpec_To_v1alpha2_RedisClusterSpec is an autogenerated conversion function.

func Convert_v1alpha1_RedisList_To_v1alpha2_RedisList

func Convert_v1alpha1_RedisList_To_v1alpha2_RedisList(in *RedisList, out *v1alpha2.RedisList, s conversion.Scope) error

Convert_v1alpha1_RedisList_To_v1alpha2_RedisList is an autogenerated conversion function.

func Convert_v1alpha1_RedisSpec_To_v1alpha2_RedisSpec

func Convert_v1alpha1_RedisSpec_To_v1alpha2_RedisSpec(in *RedisSpec, out *v1alpha2.RedisSpec, s conversion.Scope) error

func Convert_v1alpha1_RedisStatus_To_v1alpha2_RedisStatus

func Convert_v1alpha1_RedisStatus_To_v1alpha2_RedisStatus(in *RedisStatus, out *v1alpha2.RedisStatus, s conversion.Scope) error

func Convert_v1alpha1_Redis_To_v1alpha2_Redis

func Convert_v1alpha1_Redis_To_v1alpha2_Redis(in *Redis, out *v1alpha2.Redis, s conversion.Scope) error

Convert_v1alpha1_Redis_To_v1alpha2_Redis is an autogenerated conversion function.

func Convert_v1alpha1_ScriptSourceSpec_To_v1alpha2_ScriptSourceSpec

func Convert_v1alpha1_ScriptSourceSpec_To_v1alpha2_ScriptSourceSpec(in *ScriptSourceSpec, out *v1alpha2.ScriptSourceSpec, s conversion.Scope) error

Convert_v1alpha1_ScriptSourceSpec_To_v1alpha2_ScriptSourceSpec is an autogenerated conversion function.

func Convert_v1alpha1_TLSPolicy_To_v1alpha2_TLSPolicy

func Convert_v1alpha1_TLSPolicy_To_v1alpha2_TLSPolicy(in *TLSPolicy, out *v1alpha2.TLSPolicy, s conversion.Scope) error

Convert_v1alpha1_TLSPolicy_To_v1alpha2_TLSPolicy is an autogenerated conversion function.

func Convert_v1alpha2_ElasticsearchClusterTopology_To_v1alpha1_ElasticsearchClusterTopology

func Convert_v1alpha2_ElasticsearchClusterTopology_To_v1alpha1_ElasticsearchClusterTopology(in *v1alpha2.ElasticsearchClusterTopology, out *ElasticsearchClusterTopology, s conversion.Scope) error

func Convert_v1alpha2_ElasticsearchList_To_v1alpha1_ElasticsearchList

func Convert_v1alpha2_ElasticsearchList_To_v1alpha1_ElasticsearchList(in *v1alpha2.ElasticsearchList, out *ElasticsearchList, s conversion.Scope) error

Convert_v1alpha2_ElasticsearchList_To_v1alpha1_ElasticsearchList is an autogenerated conversion function.

func Convert_v1alpha2_ElasticsearchNode_To_v1alpha1_ElasticsearchNode

func Convert_v1alpha2_ElasticsearchNode_To_v1alpha1_ElasticsearchNode(in *v1alpha2.ElasticsearchNode, out *ElasticsearchNode, s conversion.Scope) error

func Convert_v1alpha2_ElasticsearchSpec_To_v1alpha1_ElasticsearchSpec

func Convert_v1alpha2_ElasticsearchSpec_To_v1alpha1_ElasticsearchSpec(in *v1alpha2.ElasticsearchSpec, out *ElasticsearchSpec, s conversion.Scope) error

func Convert_v1alpha2_ElasticsearchStatus_To_v1alpha1_ElasticsearchStatus

func Convert_v1alpha2_ElasticsearchStatus_To_v1alpha1_ElasticsearchStatus(in *v1alpha2.ElasticsearchStatus, out *ElasticsearchStatus, s conversion.Scope) error

func Convert_v1alpha2_Elasticsearch_To_v1alpha1_Elasticsearch

func Convert_v1alpha2_Elasticsearch_To_v1alpha1_Elasticsearch(in *v1alpha2.Elasticsearch, out *Elasticsearch, s conversion.Scope) error

Convert_v1alpha2_Elasticsearch_To_v1alpha1_Elasticsearch is an autogenerated conversion function.

func Convert_v1alpha2_EtcdList_To_v1alpha1_EtcdList

func Convert_v1alpha2_EtcdList_To_v1alpha1_EtcdList(in *v1alpha2.EtcdList, out *EtcdList, s conversion.Scope) error

Convert_v1alpha2_EtcdList_To_v1alpha1_EtcdList is an autogenerated conversion function.

func Convert_v1alpha2_EtcdSpec_To_v1alpha1_EtcdSpec

func Convert_v1alpha2_EtcdSpec_To_v1alpha1_EtcdSpec(in *v1alpha2.EtcdSpec, out *EtcdSpec, s conversion.Scope) error

func Convert_v1alpha2_EtcdStatus_To_v1alpha1_EtcdStatus

func Convert_v1alpha2_EtcdStatus_To_v1alpha1_EtcdStatus(in *v1alpha2.EtcdStatus, out *EtcdStatus, s conversion.Scope) error

func Convert_v1alpha2_Etcd_To_v1alpha1_Etcd

func Convert_v1alpha2_Etcd_To_v1alpha1_Etcd(in *v1alpha2.Etcd, out *Etcd, s conversion.Scope) error

Convert_v1alpha2_Etcd_To_v1alpha1_Etcd is an autogenerated conversion function.

func Convert_v1alpha2_InitSpec_To_v1alpha1_InitSpec

func Convert_v1alpha2_InitSpec_To_v1alpha1_InitSpec(in *v1alpha2.InitSpec, out *InitSpec, s conversion.Scope) error

func Convert_v1alpha2_MariaDBList_To_v1alpha1_MariaDBList

func Convert_v1alpha2_MariaDBList_To_v1alpha1_MariaDBList(in *v1alpha2.MariaDBList, out *MariaDBList, s conversion.Scope) error

Convert_v1alpha2_MariaDBList_To_v1alpha1_MariaDBList is an autogenerated conversion function.

func Convert_v1alpha2_MariaDBSpec_To_v1alpha1_MariaDBSpec

func Convert_v1alpha2_MariaDBSpec_To_v1alpha1_MariaDBSpec(in *v1alpha2.MariaDBSpec, out *MariaDBSpec, s conversion.Scope) error

func Convert_v1alpha2_MariaDBStatus_To_v1alpha1_MariaDBStatus

func Convert_v1alpha2_MariaDBStatus_To_v1alpha1_MariaDBStatus(in *v1alpha2.MariaDBStatus, out *MariaDBStatus, s conversion.Scope) error

func Convert_v1alpha2_MariaDB_To_v1alpha1_MariaDB

func Convert_v1alpha2_MariaDB_To_v1alpha1_MariaDB(in *v1alpha2.MariaDB, out *MariaDB, s conversion.Scope) error

Convert_v1alpha2_MariaDB_To_v1alpha1_MariaDB is an autogenerated conversion function.

func Convert_v1alpha2_MemberSecret_To_v1alpha1_MemberSecret

func Convert_v1alpha2_MemberSecret_To_v1alpha1_MemberSecret(in *v1alpha2.MemberSecret, out *MemberSecret, s conversion.Scope) error

Convert_v1alpha2_MemberSecret_To_v1alpha1_MemberSecret is an autogenerated conversion function.

func Convert_v1alpha2_MemcachedList_To_v1alpha1_MemcachedList

func Convert_v1alpha2_MemcachedList_To_v1alpha1_MemcachedList(in *v1alpha2.MemcachedList, out *MemcachedList, s conversion.Scope) error

Convert_v1alpha2_MemcachedList_To_v1alpha1_MemcachedList is an autogenerated conversion function.

func Convert_v1alpha2_MemcachedSpec_To_v1alpha1_MemcachedSpec

func Convert_v1alpha2_MemcachedSpec_To_v1alpha1_MemcachedSpec(in *v1alpha2.MemcachedSpec, out *MemcachedSpec, s conversion.Scope) error

func Convert_v1alpha2_MemcachedStatus_To_v1alpha1_MemcachedStatus

func Convert_v1alpha2_MemcachedStatus_To_v1alpha1_MemcachedStatus(in *v1alpha2.MemcachedStatus, out *MemcachedStatus, s conversion.Scope) error

func Convert_v1alpha2_Memcached_To_v1alpha1_Memcached

func Convert_v1alpha2_Memcached_To_v1alpha1_Memcached(in *v1alpha2.Memcached, out *Memcached, s conversion.Scope) error

Convert_v1alpha2_Memcached_To_v1alpha1_Memcached is an autogenerated conversion function.

func Convert_v1alpha2_MongoDBConfigNode_To_v1alpha1_MongoDBConfigNode

func Convert_v1alpha2_MongoDBConfigNode_To_v1alpha1_MongoDBConfigNode(in *v1alpha2.MongoDBConfigNode, out *MongoDBConfigNode, s conversion.Scope) error

Convert_v1alpha2_MongoDBConfigNode_To_v1alpha1_MongoDBConfigNode is an autogenerated conversion function.

func Convert_v1alpha2_MongoDBList_To_v1alpha1_MongoDBList

func Convert_v1alpha2_MongoDBList_To_v1alpha1_MongoDBList(in *v1alpha2.MongoDBList, out *MongoDBList, s conversion.Scope) error

Convert_v1alpha2_MongoDBList_To_v1alpha1_MongoDBList is an autogenerated conversion function.

func Convert_v1alpha2_MongoDBMongosNode_To_v1alpha1_MongoDBMongosNode

func Convert_v1alpha2_MongoDBMongosNode_To_v1alpha1_MongoDBMongosNode(in *v1alpha2.MongoDBMongosNode, out *MongoDBMongosNode, s conversion.Scope) error

Convert_v1alpha2_MongoDBMongosNode_To_v1alpha1_MongoDBMongosNode is an autogenerated conversion function.

func Convert_v1alpha2_MongoDBNode_To_v1alpha1_MongoDBNode

func Convert_v1alpha2_MongoDBNode_To_v1alpha1_MongoDBNode(in *v1alpha2.MongoDBNode, out *MongoDBNode, s conversion.Scope) error

func Convert_v1alpha2_MongoDBReplicaSet_To_v1alpha1_MongoDBReplicaSet

func Convert_v1alpha2_MongoDBReplicaSet_To_v1alpha1_MongoDBReplicaSet(in *v1alpha2.MongoDBReplicaSet, out *MongoDBReplicaSet, s conversion.Scope) error

Convert_v1alpha2_MongoDBReplicaSet_To_v1alpha1_MongoDBReplicaSet is an autogenerated conversion function.

func Convert_v1alpha2_MongoDBShardNode_To_v1alpha1_MongoDBShardNode

func Convert_v1alpha2_MongoDBShardNode_To_v1alpha1_MongoDBShardNode(in *v1alpha2.MongoDBShardNode, out *MongoDBShardNode, s conversion.Scope) error

Convert_v1alpha2_MongoDBShardNode_To_v1alpha1_MongoDBShardNode is an autogenerated conversion function.

func Convert_v1alpha2_MongoDBShardingTopology_To_v1alpha1_MongoDBShardingTopology

func Convert_v1alpha2_MongoDBShardingTopology_To_v1alpha1_MongoDBShardingTopology(in *v1alpha2.MongoDBShardingTopology, out *MongoDBShardingTopology, s conversion.Scope) error

Convert_v1alpha2_MongoDBShardingTopology_To_v1alpha1_MongoDBShardingTopology is an autogenerated conversion function.

func Convert_v1alpha2_MongoDBSpec_To_v1alpha1_MongoDBSpec

func Convert_v1alpha2_MongoDBSpec_To_v1alpha1_MongoDBSpec(in *v1alpha2.MongoDBSpec, out *MongoDBSpec, s conversion.Scope) error

func Convert_v1alpha2_MongoDBStatus_To_v1alpha1_MongoDBStatus

func Convert_v1alpha2_MongoDBStatus_To_v1alpha1_MongoDBStatus(in *v1alpha2.MongoDBStatus, out *MongoDBStatus, s conversion.Scope) error

func Convert_v1alpha2_MongoDB_To_v1alpha1_MongoDB

func Convert_v1alpha2_MongoDB_To_v1alpha1_MongoDB(in *v1alpha2.MongoDB, out *MongoDB, s conversion.Scope) error

Convert_v1alpha2_MongoDB_To_v1alpha1_MongoDB is an autogenerated conversion function.

func Convert_v1alpha2_MySQLGroupSpec_To_v1alpha1_MySQLGroupSpec

func Convert_v1alpha2_MySQLGroupSpec_To_v1alpha1_MySQLGroupSpec(in *v1alpha2.MySQLGroupSpec, out *MySQLGroupSpec, s conversion.Scope) error

Convert_v1alpha2_MySQLGroupSpec_To_v1alpha1_MySQLGroupSpec is an autogenerated conversion function.

func Convert_v1alpha2_MySQLList_To_v1alpha1_MySQLList

func Convert_v1alpha2_MySQLList_To_v1alpha1_MySQLList(in *v1alpha2.MySQLList, out *MySQLList, s conversion.Scope) error

Convert_v1alpha2_MySQLList_To_v1alpha1_MySQLList is an autogenerated conversion function.

func Convert_v1alpha2_MySQLSpec_To_v1alpha1_MySQLSpec

func Convert_v1alpha2_MySQLSpec_To_v1alpha1_MySQLSpec(in *v1alpha2.MySQLSpec, out *MySQLSpec, s conversion.Scope) error

func Convert_v1alpha2_MySQLStatus_To_v1alpha1_MySQLStatus

func Convert_v1alpha2_MySQLStatus_To_v1alpha1_MySQLStatus(in *v1alpha2.MySQLStatus, out *MySQLStatus, s conversion.Scope) error

func Convert_v1alpha2_MySQLTopology_To_v1alpha1_MySQLTopology added in v0.25.0

func Convert_v1alpha2_MySQLTopology_To_v1alpha1_MySQLTopology(in *v1alpha2.MySQLTopology, out *MySQLTopology, s conversion.Scope) error

Convert_v1alpha2_MySQLTopology_To_v1alpha1_MySQLTopology is an autogenerated conversion function.

func Convert_v1alpha2_MySQL_To_v1alpha1_MySQL

func Convert_v1alpha2_MySQL_To_v1alpha1_MySQL(in *v1alpha2.MySQL, out *MySQL, s conversion.Scope) error

Convert_v1alpha2_MySQL_To_v1alpha1_MySQL is an autogenerated conversion function.

func Convert_v1alpha2_PerconaXtraDBList_To_v1alpha1_PerconaXtraDBList

func Convert_v1alpha2_PerconaXtraDBList_To_v1alpha1_PerconaXtraDBList(in *v1alpha2.PerconaXtraDBList, out *PerconaXtraDBList, s conversion.Scope) error

Convert_v1alpha2_PerconaXtraDBList_To_v1alpha1_PerconaXtraDBList is an autogenerated conversion function.

func Convert_v1alpha2_PerconaXtraDBSpec_To_v1alpha1_PerconaXtraDBSpec

func Convert_v1alpha2_PerconaXtraDBSpec_To_v1alpha1_PerconaXtraDBSpec(in *v1alpha2.PerconaXtraDBSpec, out *PerconaXtraDBSpec, s conversion.Scope) error

func Convert_v1alpha2_PerconaXtraDBStatus_To_v1alpha1_PerconaXtraDBStatus

func Convert_v1alpha2_PerconaXtraDBStatus_To_v1alpha1_PerconaXtraDBStatus(in *v1alpha2.PerconaXtraDBStatus, out *PerconaXtraDBStatus, s conversion.Scope) error

func Convert_v1alpha2_PerconaXtraDB_To_v1alpha1_PerconaXtraDB

func Convert_v1alpha2_PerconaXtraDB_To_v1alpha1_PerconaXtraDB(in *v1alpha2.PerconaXtraDB, out *PerconaXtraDB, s conversion.Scope) error

Convert_v1alpha2_PerconaXtraDB_To_v1alpha1_PerconaXtraDB is an autogenerated conversion function.

func Convert_v1alpha2_PostgreLeaderElectionConfig_To_v1alpha1_LeaderElectionConfig

func Convert_v1alpha2_PostgreLeaderElectionConfig_To_v1alpha1_LeaderElectionConfig(in *v1alpha2.PostgreLeaderElectionConfig, out *LeaderElectionConfig, s conversion.Scope) error

func Convert_v1alpha2_PostgresList_To_v1alpha1_PostgresList

func Convert_v1alpha2_PostgresList_To_v1alpha1_PostgresList(in *v1alpha2.PostgresList, out *PostgresList, s conversion.Scope) error

Convert_v1alpha2_PostgresList_To_v1alpha1_PostgresList is an autogenerated conversion function.

func Convert_v1alpha2_PostgresSpec_To_v1alpha1_PostgresSpec

func Convert_v1alpha2_PostgresSpec_To_v1alpha1_PostgresSpec(in *v1alpha2.PostgresSpec, out *PostgresSpec, s conversion.Scope) error

func Convert_v1alpha2_PostgresStatus_To_v1alpha1_PostgresStatus

func Convert_v1alpha2_PostgresStatus_To_v1alpha1_PostgresStatus(in *v1alpha2.PostgresStatus, out *PostgresStatus, s conversion.Scope) error

func Convert_v1alpha2_Postgres_To_v1alpha1_Postgres

func Convert_v1alpha2_Postgres_To_v1alpha1_Postgres(in *v1alpha2.Postgres, out *Postgres, s conversion.Scope) error

Convert_v1alpha2_Postgres_To_v1alpha1_Postgres is an autogenerated conversion function.

func Convert_v1alpha2_RecoveryTarget_To_v1alpha1_RecoveryTarget

func Convert_v1alpha2_RecoveryTarget_To_v1alpha1_RecoveryTarget(in *v1alpha2.RecoveryTarget, out *RecoveryTarget, s conversion.Scope) error

Convert_v1alpha2_RecoveryTarget_To_v1alpha1_RecoveryTarget is an autogenerated conversion function.

func Convert_v1alpha2_RedisClusterSpec_To_v1alpha1_RedisClusterSpec

func Convert_v1alpha2_RedisClusterSpec_To_v1alpha1_RedisClusterSpec(in *v1alpha2.RedisClusterSpec, out *RedisClusterSpec, s conversion.Scope) error

Convert_v1alpha2_RedisClusterSpec_To_v1alpha1_RedisClusterSpec is an autogenerated conversion function.

func Convert_v1alpha2_RedisList_To_v1alpha1_RedisList

func Convert_v1alpha2_RedisList_To_v1alpha1_RedisList(in *v1alpha2.RedisList, out *RedisList, s conversion.Scope) error

Convert_v1alpha2_RedisList_To_v1alpha1_RedisList is an autogenerated conversion function.

func Convert_v1alpha2_RedisSpec_To_v1alpha1_RedisSpec

func Convert_v1alpha2_RedisSpec_To_v1alpha1_RedisSpec(in *v1alpha2.RedisSpec, out *RedisSpec, s conversion.Scope) error

func Convert_v1alpha2_RedisStatus_To_v1alpha1_RedisStatus

func Convert_v1alpha2_RedisStatus_To_v1alpha1_RedisStatus(in *v1alpha2.RedisStatus, out *RedisStatus, s conversion.Scope) error

func Convert_v1alpha2_Redis_To_v1alpha1_Redis

func Convert_v1alpha2_Redis_To_v1alpha1_Redis(in *v1alpha2.Redis, out *Redis, s conversion.Scope) error

Convert_v1alpha2_Redis_To_v1alpha1_Redis is an autogenerated conversion function.

func Convert_v1alpha2_ScriptSourceSpec_To_v1alpha1_ScriptSourceSpec

func Convert_v1alpha2_ScriptSourceSpec_To_v1alpha1_ScriptSourceSpec(in *v1alpha2.ScriptSourceSpec, out *ScriptSourceSpec, s conversion.Scope) error

Convert_v1alpha2_ScriptSourceSpec_To_v1alpha1_ScriptSourceSpec is an autogenerated conversion function.

func Convert_v1alpha2_TLSPolicy_To_v1alpha1_TLSPolicy

func Convert_v1alpha2_TLSPolicy_To_v1alpha1_TLSPolicy(in *v1alpha2.TLSPolicy, out *TLSPolicy, s conversion.Scope) error

Convert_v1alpha2_TLSPolicy_To_v1alpha1_TLSPolicy is an autogenerated conversion function.

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type BackupScheduleSpec

type BackupScheduleSpec struct {
	CronExpression string `json:"cronExpression,omitempty"`

	// SnapshotID Spec
	store.Backend `json:",inline"`

	// StorageType can be durable or ephemeral.
	// If not given, database storage type will be used.
	// +optional
	StorageType *StorageType `json:"storageType,omitempty"`

	// PodTemplate is an optional configuration for pods used to take database snapshots
	// +optional
	PodTemplate ofst.PodTemplateSpec `json:"podTemplate,omitempty"`

	// PodVolumeClaimSpec is used to specify temporary storage for backup/restore Job.
	// If not given, database's PvcSpec will be used.
	// If storageType is durable, then a PVC will be created using this PVCSpec.
	// If storageType is ephemeral, then an empty directory will be created of size PvcSpec.Resources.Requests[core.ResourceStorage].
	// +optional
	PodVolumeClaimSpec *core.PersistentVolumeClaimSpec `json:"podVolumeClaimSpec,omitempty"`
}

func (*BackupScheduleSpec) DeepCopy

func (in *BackupScheduleSpec) DeepCopy() *BackupScheduleSpec

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

func (*BackupScheduleSpec) DeepCopyInto

func (in *BackupScheduleSpec) DeepCopyInto(out *BackupScheduleSpec)

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

type ClusterAuthMode

type ClusterAuthMode string

ClusterAuthMode represents the clusterAuthMode of mongodb clusters ( replicaset or sharding) ref: https://docs.mongodb.com/manual/reference/program/mongod/#cmdoption-mongod-clusterauthmode

const (
	// ClusterAuthModeKeyFile represents `keyFile` mongodb clusterAuthMode. In this mode, Use a keyfile for authentication. Accept only keyfiles.
	ClusterAuthModeKeyFile ClusterAuthMode = "keyFile"

	// ClusterAuthModeSendKeyFile represents `sendKeyFile` mongodb clusterAuthMode.
	// This mode is for rolling upgrade purposes. Send a keyfile for authentication but can accept both keyfiles
	// and x.509 certificates.
	ClusterAuthModeSendKeyFile ClusterAuthMode = "sendKeyFile"

	// ClusterAuthModeSendX509 represents `sendx509` mongodb clusterAuthMode. This mode is usually for rolling upgrade purposes.
	// Send the x.509 certificate for authentication but can accept both keyfiles and x.509 certificates.
	ClusterAuthModeSendX509 ClusterAuthMode = "sendX509"

	// ClusterAuthModeX509 represents `x509` mongodb clusterAuthMode. This is the recommended clusterAuthMode.
	// Send the x.509 certificate for authentication and accept only x.509 certificates.
	ClusterAuthModeX509 ClusterAuthMode = "x509"
)

type DatabasePhase

type DatabasePhase string
const (
	// used for Databases that are currently running
	DatabasePhaseRunning DatabasePhase = "Running"
	// used for Databases that are currently creating
	DatabasePhaseCreating DatabasePhase = "Creating"
	// used for Databases that are currently initializing
	DatabasePhaseInitializing DatabasePhase = "Initializing"
	// used for Databases that are Failed
	DatabasePhaseFailed DatabasePhase = "Failed"
)

type Elasticsearch

type Elasticsearch struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ElasticsearchSpec   `json:"spec,omitempty"`
	Status            ElasticsearchStatus `json:"status,omitempty"`
}

Elasticsearch defines a Elasticsearch database.

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

+kubebuilder:object:root=true +kubebuilder:skipversion

func (*Elasticsearch) DeepCopy

func (in *Elasticsearch) DeepCopy() *Elasticsearch

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

func (*Elasticsearch) DeepCopyInto

func (in *Elasticsearch) DeepCopyInto(out *Elasticsearch)

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

func (*Elasticsearch) DeepCopyObject

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

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

type ElasticsearchAuthPlugin

type ElasticsearchAuthPlugin string
const (
	ElasticsearchAuthPluginSearchGuard ElasticsearchAuthPlugin = "SearchGuard" // Default
	ElasticsearchAuthPluginNone        ElasticsearchAuthPlugin = "None"
	ElasticsearchAuthPluginXpack       ElasticsearchAuthPlugin = "X-Pack"
)

type ElasticsearchClusterTopology

type ElasticsearchClusterTopology struct {
	Master ElasticsearchNode `json:"master"`
	Data   ElasticsearchNode `json:"data"`
	Client ElasticsearchNode `json:"client"`
}

func (*ElasticsearchClusterTopology) DeepCopy

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

func (*ElasticsearchClusterTopology) DeepCopyInto

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

type ElasticsearchList

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

func (*ElasticsearchList) DeepCopy

func (in *ElasticsearchList) DeepCopy() *ElasticsearchList

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

func (*ElasticsearchList) DeepCopyInto

func (in *ElasticsearchList) DeepCopyInto(out *ElasticsearchList)

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

func (*ElasticsearchList) DeepCopyObject

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

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

type ElasticsearchNode

type ElasticsearchNode struct {
	// Replicas represents number of replica for this specific type of node
	Replicas *int32 `json:"replicas,omitempty"`
	Prefix   string `json:"prefix,omitempty"`
	// Storage to specify how storage shall be used.
	Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"`
	// Compute Resources required by the sidecar container.
	Resources core.ResourceRequirements `json:"resources,omitempty"`
	// An eviction is allowed if at most "maxUnavailable" pods selected by
	// "selector" are unavailable after the eviction, i.e. even in absence of
	// the evicted pod. For example, one can prevent all voluntary evictions
	// by specifying 0. This is a mutually exclusive setting with "minAvailable".
	// +optional
	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
}

func (*ElasticsearchNode) DeepCopy

func (in *ElasticsearchNode) DeepCopy() *ElasticsearchNode

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

func (*ElasticsearchNode) DeepCopyInto

func (in *ElasticsearchNode) DeepCopyInto(out *ElasticsearchNode)

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

type ElasticsearchSpec

type ElasticsearchSpec struct {
	// Version of Elasticsearch to be deployed.
	Version types.StrYo `json:"version"`

	// Number of instances to deploy for a Elasticsearch database.
	Replicas *int32 `json:"replicas,omitempty"`

	// Elasticsearch topology for node specification
	Topology *ElasticsearchClusterTopology `json:"topology,omitempty"`

	// To enable ssl in transport & http layer
	EnableSSL bool `json:"enableSSL,omitempty"`

	// Secret with SSL certificates
	CertificateSecret *core.SecretVolumeSource `json:"certificateSecret,omitempty"`

	// Authentication plugin used by Elasticsearch cluster. If unset, defaults to SearchGuard.
	AuthPlugin ElasticsearchAuthPlugin `json:"authPlugin,omitempty"`

	// Database authentication secret
	DatabaseSecret *core.SecretVolumeSource `json:"databaseSecret,omitempty"`

	// StorageType can be durable (default) or ephemeral
	StorageType StorageType `json:"storageType,omitempty"`

	// Storage to specify how storage shall be used.
	Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"`

	// Init is used to initialize database
	// +optional
	Init *InitSpec `json:"init,omitempty"`

	// BackupSchedule spec to specify how database backup will be taken
	// +optional
	BackupSchedule *BackupScheduleSpec `json:"backupSchedule,omitempty"`

	// Monitor is used monitor database instance
	// +optional
	Monitor *mona.AgentSpec `json:"monitor,omitempty"`

	// ConfigSource is an optional field to provide custom configuration file for database.
	// If specified, this file will be used as configuration file otherwise default configuration file will be used.
	ConfigSource *core.VolumeSource `json:"configSource,omitempty"`

	// PodTemplate is an optional configuration for pods used to expose database
	// +optional
	PodTemplate ofst.PodTemplateSpec `json:"podTemplate,omitempty"`

	// ServiceTemplate is an optional configuration for service used to expose database
	// +optional
	ServiceTemplate ofst.ServiceTemplateSpec `json:"serviceTemplate,omitempty"`

	// An eviction is allowed if at most "maxUnavailable" pods selected by
	// "selector" are unavailable after the eviction, i.e. even in absence of
	// the evicted pod. For example, one can prevent all voluntary evictions
	// by specifying 0. This is a mutually exclusive setting with "minAvailable".
	// +optional
	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`

	// updateStrategy indicates the StatefulSetUpdateStrategy that will be
	// employed to update Pods in the StatefulSet when a revision is made to
	// Template.
	UpdateStrategy apps.StatefulSetUpdateStrategy `json:"updateStrategy,omitempty"`

	// TerminationPolicy controls the delete operation for database
	// +optional
	TerminationPolicy TerminationPolicy `json:"terminationPolicy,omitempty"`
}

func (*ElasticsearchSpec) DeepCopy

func (in *ElasticsearchSpec) DeepCopy() *ElasticsearchSpec

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

func (*ElasticsearchSpec) DeepCopyInto

func (in *ElasticsearchSpec) DeepCopyInto(out *ElasticsearchSpec)

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

type ElasticsearchStatus

type ElasticsearchStatus struct {
	Phase  DatabasePhase `json:"phase,omitempty"`
	Reason string        `json:"reason,omitempty"`
	// observedGeneration is the most recent generation observed for this resource. It corresponds to the
	// resource's generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration *types.IntHash `json:"observedGeneration,omitempty"`
}

func (*ElasticsearchStatus) DeepCopy

func (in *ElasticsearchStatus) DeepCopy() *ElasticsearchStatus

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

func (*ElasticsearchStatus) DeepCopyInto

func (in *ElasticsearchStatus) DeepCopyInto(out *ElasticsearchStatus)

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

type Etcd

type Etcd struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              EtcdSpec   `json:"spec,omitempty"`
	Status            EtcdStatus `json:"status,omitempty"`
}

Etcd defines a Etcd database.

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

+kubebuilder:object:root=true +kubebuilder:skipversion

func (*Etcd) DeepCopy

func (in *Etcd) DeepCopy() *Etcd

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

func (*Etcd) DeepCopyInto

func (in *Etcd) DeepCopyInto(out *Etcd)

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

func (*Etcd) DeepCopyObject

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

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

type EtcdList

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

func (*EtcdList) DeepCopy

func (in *EtcdList) DeepCopy() *EtcdList

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

func (*EtcdList) DeepCopyInto

func (in *EtcdList) DeepCopyInto(out *EtcdList)

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

func (*EtcdList) DeepCopyObject

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

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

type EtcdSpec

type EtcdSpec struct {
	// Version of Etcd to be deployed.
	Version types.StrYo `json:"version"`

	// Number of instances to deploy for a Etcd database.
	Replicas *int32 `json:"replicas,omitempty"`

	// StorageType can be durable (default) or ephemeral
	StorageType StorageType `json:"storageType,omitempty"`

	// Storage spec to specify how storage shall be used.
	Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"`

	// Database authentication secret
	DatabaseSecret *core.SecretVolumeSource `json:"databaseSecret,omitempty"`

	// Init is used to initialize database
	// +optional
	Init *InitSpec `json:"init,omitempty"`

	// BackupSchedule spec to specify how database backup will be taken
	// +optional
	BackupSchedule *BackupScheduleSpec `json:"backupSchedule,omitempty"`

	// Monitor is used monitor database instance
	// +optional
	Monitor *mona.AgentSpec `json:"monitor,omitempty"`

	// etcd cluster TLS configuration
	TLS *TLSPolicy `json:"tls,omitempty"`

	// PodTemplate is an optional configuration for pods used to expose database
	// +optional
	PodTemplate ofst.PodTemplateSpec `json:"podTemplate,omitempty"`

	// ServiceTemplate is an optional configuration for service used to expose database
	// +optional
	ServiceTemplate ofst.ServiceTemplateSpec `json:"serviceTemplate,omitempty"`

	// updateStrategy indicates the StatefulSetUpdateStrategy that will be
	// employed to update Pods in the StatefulSet when a revision is made to
	// Template.
	UpdateStrategy apps.StatefulSetUpdateStrategy `json:"updateStrategy,omitempty"`

	// TerminationPolicy controls the delete operation for database
	// +optional
	TerminationPolicy TerminationPolicy `json:"terminationPolicy,omitempty"`
}

func (*EtcdSpec) DeepCopy

func (in *EtcdSpec) DeepCopy() *EtcdSpec

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

func (*EtcdSpec) DeepCopyInto

func (in *EtcdSpec) DeepCopyInto(out *EtcdSpec)

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

type EtcdStatus

type EtcdStatus struct {
	Phase  DatabasePhase `json:"phase,omitempty"`
	Reason string        `json:"reason,omitempty"`
	// observedGeneration is the most recent generation observed for this resource. It corresponds to the
	// resource's generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration *types.IntHash `json:"observedGeneration,omitempty"`
}

func (*EtcdStatus) DeepCopy

func (in *EtcdStatus) DeepCopy() *EtcdStatus

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

func (*EtcdStatus) DeepCopyInto

func (in *EtcdStatus) DeepCopyInto(out *EtcdStatus)

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

type InitSpec

type InitSpec struct {
	ScriptSource *ScriptSourceSpec `json:"scriptSource,omitempty"`
	// Deprecated
	SnapshotSource *SnapshotSourceSpec    `json:"snapshotSource,omitempty"`
	PostgresWAL    *PostgresWALSourceSpec `json:"postgresWAL,omitempty"`
	// Name of stash restoreSession in same namespace of kubedb object.
	// ref: https://github.com/stashed/stash/blob/09af5d319bb5be889186965afb04045781d6f926/apis/stash/v1beta1/restore_session_types.go#L22
	StashRestoreSession *core.LocalObjectReference `json:"stashRestoreSession,omitempty"`
}

func (*InitSpec) DeepCopy

func (in *InitSpec) DeepCopy() *InitSpec

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

func (*InitSpec) DeepCopyInto

func (in *InitSpec) DeepCopyInto(out *InitSpec)

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

type LeaderElectionConfig

type LeaderElectionConfig struct {
	// LeaseDuration is the duration in second that non-leader candidates will
	// wait to force acquire leadership. This is measured against time of
	// last observed ack. Default 15
	LeaseDurationSeconds int32 `json:"leaseDurationSeconds"`
	// RenewDeadline is the duration in second that the acting master will retry
	// refreshing leadership before giving up. Normally, LeaseDuration * 2 / 3.
	// Default 10
	RenewDeadlineSeconds int32 `json:"renewDeadlineSeconds"`
	// RetryPeriod is the duration in second the LeaderElector clients should wait
	// between tries of actions. Normally, LeaseDuration / 3.
	// Default 2
	RetryPeriodSeconds int32 `json:"retryPeriodSeconds"`
}

LeaderElectionConfig contains essential attributes of leader election. ref: https://github.com/kubernetes/client-go/blob/6134db91200ea474868bc6775e62cc294a74c6c6/tools/leaderelection/leaderelection.go#L105-L114

func (*LeaderElectionConfig) DeepCopy

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

func (*LeaderElectionConfig) DeepCopyInto

func (in *LeaderElectionConfig) DeepCopyInto(out *LeaderElectionConfig)

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

type MariaDB

type MariaDB struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MariaDBSpec   `json:"spec,omitempty"`
	Status            MariaDBStatus `json:"status,omitempty"`
}

MariaDB defines a MariaDB database.

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

+kubebuilder:object:root=true +kubebuilder:skipversion

func (*MariaDB) DeepCopy

func (in *MariaDB) DeepCopy() *MariaDB

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

func (*MariaDB) DeepCopyInto

func (in *MariaDB) DeepCopyInto(out *MariaDB)

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

func (*MariaDB) DeepCopyObject

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

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

type MariaDBList

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

func (*MariaDBList) DeepCopy

func (in *MariaDBList) DeepCopy() *MariaDBList

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

func (*MariaDBList) DeepCopyInto

func (in *MariaDBList) DeepCopyInto(out *MariaDBList)

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

func (*MariaDBList) DeepCopyObject

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

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

type MariaDBSpec

type MariaDBSpec struct {
	// Version of MariaDB to be deployed.
	Version types.StrYo `json:"version"`

	// Number of instances to deploy for a MariaDB database.
	Replicas *int32 `json:"replicas,omitempty"`

	// StorageType can be durable (default) or ephemeral
	StorageType StorageType `json:"storageType,omitempty"`

	// Storage spec to specify how storage shall be used.
	Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"`

	// Database authentication secret
	DatabaseSecret *core.SecretVolumeSource `json:"databaseSecret,omitempty"`

	// Init is used to initialize database
	// +optional
	Init *InitSpec `json:"init,omitempty"`

	// Monitor is used monitor database instance
	// +optional
	Monitor *mona.AgentSpec `json:"monitor,omitempty"`

	// ConfigSource is an optional field to provide custom configuration file for database (i.e custom-mysql.cnf).
	// If specified, this file will be used as configuration file otherwise default configuration file will be used.
	ConfigSource *core.VolumeSource `json:"configSource,omitempty"`

	// PodTemplate is an optional configuration for pods used to expose database
	// +optional
	PodTemplate ofst.PodTemplateSpec `json:"podTemplate,omitempty"`

	// ServiceTemplate is an optional configuration for service used to expose database
	// +optional
	ServiceTemplate ofst.ServiceTemplateSpec `json:"serviceTemplate,omitempty"`

	// updateStrategy indicates the StatefulSetUpdateStrategy that will be
	// employed to update Pods in the StatefulSet when a revision is made to
	// Template.
	UpdateStrategy apps.StatefulSetUpdateStrategy `json:"updateStrategy,omitempty"`

	// TerminationPolicy controls the delete operation for database
	// +optional
	TerminationPolicy TerminationPolicy `json:"terminationPolicy,omitempty"`
}

func (*MariaDBSpec) DeepCopy

func (in *MariaDBSpec) DeepCopy() *MariaDBSpec

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

func (*MariaDBSpec) DeepCopyInto

func (in *MariaDBSpec) DeepCopyInto(out *MariaDBSpec)

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

type MariaDBStatus

type MariaDBStatus struct {
	Phase  DatabasePhase `json:"phase,omitempty"`
	Reason string        `json:"reason,omitempty"`
	// observedGeneration is the most recent generation observed for this resource. It corresponds to the
	// resource's generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration *types.IntHash `json:"observedGeneration,omitempty"`
}

func (*MariaDBStatus) DeepCopy

func (in *MariaDBStatus) DeepCopy() *MariaDBStatus

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

func (*MariaDBStatus) DeepCopyInto

func (in *MariaDBStatus) DeepCopyInto(out *MariaDBStatus)

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

type MemberSecret

type MemberSecret struct {
	// PeerSecret is the secret containing TLS certs used by each etcd member pod
	// for the communication between etcd peers.
	PeerSecret string `json:"peerSecret,omitempty"`
	// ServerSecret is the secret containing TLS certs used by each etcd member pod
	// for the communication between etcd server and its clients.
	ServerSecret string `json:"serverSecret,omitempty"`
}

func (*MemberSecret) DeepCopy

func (in *MemberSecret) DeepCopy() *MemberSecret

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

func (*MemberSecret) DeepCopyInto

func (in *MemberSecret) DeepCopyInto(out *MemberSecret)

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

type Memcached

type Memcached struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MemcachedSpec   `json:"spec,omitempty"`
	Status            MemcachedStatus `json:"status,omitempty"`
}

Memcached defines a Memcached database.

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

+kubebuilder:object:root=true +kubebuilder:skipversion

func (*Memcached) DeepCopy

func (in *Memcached) DeepCopy() *Memcached

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

func (*Memcached) DeepCopyInto

func (in *Memcached) DeepCopyInto(out *Memcached)

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

func (*Memcached) DeepCopyObject

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

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

type MemcachedList

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

func (*MemcachedList) DeepCopy

func (in *MemcachedList) DeepCopy() *MemcachedList

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

func (*MemcachedList) DeepCopyInto

func (in *MemcachedList) DeepCopyInto(out *MemcachedList)

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

func (*MemcachedList) DeepCopyObject

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

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

type MemcachedSpec

type MemcachedSpec struct {
	// Version of Memcached to be deployed.
	Version types.StrYo `json:"version"`

	// Number of instances to deploy for a Memcached database.
	Replicas *int32 `json:"replicas,omitempty"`

	// Monitor is used monitor database instance
	// +optional
	Monitor *mona.AgentSpec `json:"monitor,omitempty"`

	// ConfigSource is an optional field to provide custom configuration file for database.
	// If specified, this file will be used as configuration file otherwise default configuration file will be used.
	ConfigSource *core.VolumeSource `json:"configSource,omitempty"`

	// PodTemplate is an optional configuration for pods used to expose database
	// +optional
	PodTemplate ofst.PodTemplateSpec `json:"podTemplate,omitempty"`

	// ServiceTemplate is an optional configuration for service used to expose database
	// +optional
	ServiceTemplate ofst.ServiceTemplateSpec `json:"serviceTemplate,omitempty"`

	// The deployment strategy to use to replace existing pods with new ones.
	// +optional
	UpdateStrategy apps.DeploymentStrategy `json:"strategy,omitempty"`

	// TerminationPolicy controls the delete operation for database
	// +optional
	TerminationPolicy TerminationPolicy `json:"terminationPolicy,omitempty"`
}

func (*MemcachedSpec) DeepCopy

func (in *MemcachedSpec) DeepCopy() *MemcachedSpec

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

func (*MemcachedSpec) DeepCopyInto

func (in *MemcachedSpec) DeepCopyInto(out *MemcachedSpec)

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

type MemcachedStatus

type MemcachedStatus struct {
	Phase  DatabasePhase `json:"phase,omitempty"`
	Reason string        `json:"reason,omitempty"`
	// observedGeneration is the most recent generation observed for this resource. It corresponds to the
	// resource's generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration *types.IntHash `json:"observedGeneration,omitempty"`
}

func (*MemcachedStatus) DeepCopy

func (in *MemcachedStatus) DeepCopy() *MemcachedStatus

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

func (*MemcachedStatus) DeepCopyInto

func (in *MemcachedStatus) DeepCopyInto(out *MemcachedStatus)

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

type MongoDB

type MongoDB struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MongoDBSpec   `json:"spec,omitempty"`
	Status            MongoDBStatus `json:"status,omitempty"`
}

MongoDB defines a MongoDB database.

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

+kubebuilder:object:root=true +kubebuilder:skipversion

func (*MongoDB) DeepCopy

func (in *MongoDB) DeepCopy() *MongoDB

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

func (*MongoDB) DeepCopyInto

func (in *MongoDB) DeepCopyInto(out *MongoDB)

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

func (*MongoDB) DeepCopyObject

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

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

type MongoDBConfigNode

type MongoDBConfigNode struct {
	// MongoDB config server node configs
	MongoDBNode `json:",inline"`

	// Storage to specify how storage shall be used.
	Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"`
}

func (*MongoDBConfigNode) DeepCopy

func (in *MongoDBConfigNode) DeepCopy() *MongoDBConfigNode

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

func (*MongoDBConfigNode) DeepCopyInto

func (in *MongoDBConfigNode) DeepCopyInto(out *MongoDBConfigNode)

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

type MongoDBList

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

func (*MongoDBList) DeepCopy

func (in *MongoDBList) DeepCopy() *MongoDBList

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

func (*MongoDBList) DeepCopyInto

func (in *MongoDBList) DeepCopyInto(out *MongoDBList)

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

func (*MongoDBList) DeepCopyObject

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

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

type MongoDBMongosNode

type MongoDBMongosNode struct {
	// MongoDB mongos node configs
	MongoDBNode `json:",inline"`

	// The deployment strategy to use to replace existing pods with new ones.
	// +optional
	Strategy apps.DeploymentStrategy `json:"strategy,omitempty"`
}

func (*MongoDBMongosNode) DeepCopy

func (in *MongoDBMongosNode) DeepCopy() *MongoDBMongosNode

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

func (*MongoDBMongosNode) DeepCopyInto

func (in *MongoDBMongosNode) DeepCopyInto(out *MongoDBMongosNode)

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

type MongoDBNode

type MongoDBNode struct {
	// Replicas represents number of replicas of this specific node.
	// If current node has replicaset enabled, then replicas is the amount of replicaset nodes.
	Replicas int32 `json:"replicas"`

	// Prefix is the name prefix of this node.
	Prefix string `json:"prefix,omitempty"`

	// ConfigSource is an optional field to provide custom configuration file for database (i.e mongod.cnf).
	// If specified, this file will be used as configuration file otherwise default configuration file will be used.
	ConfigSource *core.VolumeSource `json:"configSource,omitempty"`

	// PodTemplate is an optional configuration for pods used to expose database
	// +optional
	PodTemplate ofst.PodTemplateSpec `json:"podTemplate,omitempty"`
}

func (*MongoDBNode) DeepCopy

func (in *MongoDBNode) DeepCopy() *MongoDBNode

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

func (*MongoDBNode) DeepCopyInto

func (in *MongoDBNode) DeepCopyInto(out *MongoDBNode)

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

type MongoDBReplicaSet

type MongoDBReplicaSet struct {
	// Name of replicaset
	Name string `json:"name"`

	// Deprecated: Use spec.certificateSecret
	KeyFile *core.SecretVolumeSource `json:"keyFile,omitempty"`
}

func (*MongoDBReplicaSet) DeepCopy

func (in *MongoDBReplicaSet) DeepCopy() *MongoDBReplicaSet

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

func (*MongoDBReplicaSet) DeepCopyInto

func (in *MongoDBReplicaSet) DeepCopyInto(out *MongoDBReplicaSet)

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

type MongoDBShardNode

type MongoDBShardNode struct {
	// Shards represents number of shards for shard type of node
	// More info: https://docs.mongodb.com/manual/core/sharded-cluster-shards/
	Shards int32 `json:"shards"`

	// MongoDB sharding node configs
	MongoDBNode `json:",inline"`

	// Storage to specify how storage shall be used.
	Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"`
}

func (*MongoDBShardNode) DeepCopy

func (in *MongoDBShardNode) DeepCopy() *MongoDBShardNode

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

func (*MongoDBShardNode) DeepCopyInto

func (in *MongoDBShardNode) DeepCopyInto(out *MongoDBShardNode)

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

type MongoDBShardingTopology

type MongoDBShardingTopology struct {
	// Shard component of mongodb.
	// More info: https://docs.mongodb.com/manual/core/sharded-cluster-shards/
	Shard MongoDBShardNode `json:"shard"`

	// Config Server (metadata) component of mongodb.
	// More info: https://docs.mongodb.com/manual/core/sharded-cluster-config-servers/
	ConfigServer MongoDBConfigNode `json:"configServer"`

	// Mongos (router) component of mongodb.
	// More info: https://docs.mongodb.com/manual/core/sharded-cluster-query-router/
	Mongos MongoDBMongosNode `json:"mongos"`
}

func (*MongoDBShardingTopology) DeepCopy

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

func (*MongoDBShardingTopology) DeepCopyInto

func (in *MongoDBShardingTopology) DeepCopyInto(out *MongoDBShardingTopology)

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

type MongoDBSpec

type MongoDBSpec struct {
	// Version of MongoDB to be deployed.
	Version types.StrYo `json:"version"`

	// Number of instances to deploy for a MongoDB database.
	Replicas *int32 `json:"replicas,omitempty"`

	// MongoDB replica set
	ReplicaSet *MongoDBReplicaSet `json:"replicaSet,omitempty"`

	// MongoDB sharding topology.
	ShardTopology *MongoDBShardingTopology `json:"shardTopology,omitempty"`

	// StorageType can be durable (default) or ephemeral
	StorageType StorageType `json:"storageType,omitempty"`

	// Storage spec to specify how storage shall be used.
	Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"`

	// Database authentication secret
	DatabaseSecret *core.SecretVolumeSource `json:"databaseSecret,omitempty"`

	// Secret for KeyFile or SSL certificates. Contains `tls.pem` or keyfile `key.txt` depending on enableSSL.
	CertificateSecret *core.SecretVolumeSource `json:"certificateSecret,omitempty"`

	// ClusterAuthMode for replicaset or sharding. (default will be x509 if sslmode is not `disabled`.)
	// See available ClusterAuthMode: https://docs.mongodb.com/manual/reference/program/mongod/#cmdoption-mongod-clusterauthmode
	ClusterAuthMode ClusterAuthMode `json:"clusterAuthMode,omitempty"`

	// SSLMode for both standalone and clusters. (default, disabled.)
	// See more options: https://docs.mongodb.com/manual/reference/program/mongod/#cmdoption-mongod-sslmode
	SSLMode SSLMode `json:"sslMode,omitempty"`

	// Init is used to initialize database
	// +optional
	Init *InitSpec `json:"init,omitempty"`

	// BackupSchedule spec to specify how database backup will be taken
	// +optional
	BackupSchedule *BackupScheduleSpec `json:"backupSchedule,omitempty"`

	// Monitor is used monitor database instance
	// +optional
	Monitor *mona.AgentSpec `json:"monitor,omitempty"`

	// ConfigSource is an optional field to provide custom configuration file for database (i.e mongod.cnf).
	// If specified, this file will be used as configuration file otherwise default configuration file will be used.
	ConfigSource *core.VolumeSource `json:"configSource,omitempty"`

	// PodTemplate is an optional configuration for pods used to expose database
	// +optional
	PodTemplate *ofst.PodTemplateSpec `json:"podTemplate,omitempty"`

	// ServiceTemplate is an optional configuration for service used to expose database
	// +optional
	ServiceTemplate ofst.ServiceTemplateSpec `json:"serviceTemplate,omitempty"`

	// updateStrategy indicates the StatefulSetUpdateStrategy that will be
	// employed to update Pods in the StatefulSet when a revision is made to
	// Template.
	UpdateStrategy apps.StatefulSetUpdateStrategy `json:"updateStrategy,omitempty"`

	// TerminationPolicy controls the delete operation for database
	// +optional
	TerminationPolicy TerminationPolicy `json:"terminationPolicy,omitempty"`
}

func (*MongoDBSpec) DeepCopy

func (in *MongoDBSpec) DeepCopy() *MongoDBSpec

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

func (*MongoDBSpec) DeepCopyInto

func (in *MongoDBSpec) DeepCopyInto(out *MongoDBSpec)

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

type MongoDBStatus

type MongoDBStatus struct {
	Phase  DatabasePhase `json:"phase,omitempty"`
	Reason string        `json:"reason,omitempty"`
	// observedGeneration is the most recent generation observed for this resource. It corresponds to the
	// resource's generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration *types.IntHash `json:"observedGeneration,omitempty"`
}

func (*MongoDBStatus) DeepCopy

func (in *MongoDBStatus) DeepCopy() *MongoDBStatus

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

func (*MongoDBStatus) DeepCopyInto

func (in *MongoDBStatus) DeepCopyInto(out *MongoDBStatus)

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

type MySQL

type MySQL struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MySQLSpec   `json:"spec,omitempty"`
	Status            MySQLStatus `json:"status,omitempty"`
}

Mysql defines a Mysql database.

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

+kubebuilder:object:root=true +kubebuilder:skipversion

func (*MySQL) DeepCopy

func (in *MySQL) DeepCopy() *MySQL

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

func (*MySQL) DeepCopyInto

func (in *MySQL) DeepCopyInto(out *MySQL)

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

func (*MySQL) DeepCopyObject

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

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

type MySQLGroupMode

type MySQLGroupMode string
const (
	MySQLGroupModeSinglePrimary MySQLGroupMode = "Single-Primary"
	MySQLGroupModeMultiPrimary  MySQLGroupMode = "Multi-Primary"
)

type MySQLGroupSpec

type MySQLGroupSpec struct {
	// TODO: "Multi-Primary" needs to be implemented
	// Group Replication can be deployed in either "Single-Primary" or "Multi-Primary" mode
	Mode *MySQLGroupMode `json:"mode,omitempty"`

	// Group name is a version 4 UUID
	// ref: https://dev.mysql.com/doc/refman/5.7/en/group-replication-options.html#sysvar_group_replication_group_name
	Name string `json:"name,omitempty"`

	// On a replication master and each replication slave, the --server-id
	// option must be specified to establish a unique replication ID in the
	// range from 1 to 2^32 − 1. “Unique”, means that each ID must be different
	// from every other ID in use by any other replication master or slave.
	// ref: https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_server_id
	//
	// So, BaseServerID is needed to calculate a unique server_id for each member.
	BaseServerID *uint `json:"baseServerID,omitempty"`
}

func (*MySQLGroupSpec) DeepCopy

func (in *MySQLGroupSpec) DeepCopy() *MySQLGroupSpec

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

func (*MySQLGroupSpec) DeepCopyInto

func (in *MySQLGroupSpec) DeepCopyInto(out *MySQLGroupSpec)

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

type MySQLList

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

func (*MySQLList) DeepCopy

func (in *MySQLList) DeepCopy() *MySQLList

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

func (*MySQLList) DeepCopyInto

func (in *MySQLList) DeepCopyInto(out *MySQLList)

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

func (*MySQLList) DeepCopyObject

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

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

type MySQLMode added in v0.25.0

type MySQLMode string
const (
	MySQLModeGroup MySQLMode = "GroupReplication"
)

type MySQLSpec

type MySQLSpec struct {
	// Version of MySQL to be deployed.
	Version types.StrYo `json:"version"`

	// Number of instances to deploy for a MySQL database. In case of MySQL group
	// replication, max allowed value is 9 (default 3).
	// (see ref: https://dev.mysql.com/doc/refman/5.7/en/group-replication-frequently-asked-questions.html)
	Replicas *int32 `json:"replicas,omitempty"`

	// MySQL cluster topology
	Topology *MySQLTopology `json:"topology,omitempty"`

	// StorageType can be durable (default) or ephemeral
	StorageType StorageType `json:"storageType,omitempty"`

	// Storage spec to specify how storage shall be used.
	Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"`

	// Database authentication secret
	DatabaseSecret *core.SecretVolumeSource `json:"databaseSecret,omitempty"`

	// Init is used to initialize database
	// +optional
	Init *InitSpec `json:"init,omitempty"`

	// BackupSchedule spec to specify how database backup will be taken
	// +optional
	BackupSchedule *BackupScheduleSpec `json:"backupSchedule,omitempty"`

	// Monitor is used monitor database instance
	// +optional
	Monitor *mona.AgentSpec `json:"monitor,omitempty"`

	// ConfigSource is an optional field to provide custom configuration file for database (i.e custom-mysql.cnf).
	// If specified, this file will be used as configuration file otherwise default configuration file will be used.
	ConfigSource *core.VolumeSource `json:"configSource,omitempty"`

	// PodTemplate is an optional configuration for pods used to expose database
	// +optional
	PodTemplate ofst.PodTemplateSpec `json:"podTemplate,omitempty"`

	// ServiceTemplate is an optional configuration for service used to expose database
	// +optional
	ServiceTemplate ofst.ServiceTemplateSpec `json:"serviceTemplate,omitempty"`

	// updateStrategy indicates the StatefulSetUpdateStrategy that will be
	// employed to update Pods in the StatefulSet when a revision is made to
	// Template.
	UpdateStrategy apps.StatefulSetUpdateStrategy `json:"updateStrategy,omitempty"`

	// TerminationPolicy controls the delete operation for database
	// +optional
	TerminationPolicy TerminationPolicy `json:"terminationPolicy,omitempty"`
}

func (*MySQLSpec) DeepCopy

func (in *MySQLSpec) DeepCopy() *MySQLSpec

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

func (*MySQLSpec) DeepCopyInto

func (in *MySQLSpec) DeepCopyInto(out *MySQLSpec)

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

type MySQLStatus

type MySQLStatus struct {
	Phase  DatabasePhase `json:"phase,omitempty"`
	Reason string        `json:"reason,omitempty"`
	// observedGeneration is the most recent generation observed for this resource. It corresponds to the
	// resource's generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration *types.IntHash `json:"observedGeneration,omitempty"`
}

func (*MySQLStatus) DeepCopy

func (in *MySQLStatus) DeepCopy() *MySQLStatus

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

func (*MySQLStatus) DeepCopyInto

func (in *MySQLStatus) DeepCopyInto(out *MySQLStatus)

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

type MySQLTopology added in v0.25.0

type MySQLTopology struct {
	// If set to -
	// "GroupReplication", GroupSpec is required and MySQL servers will start  a replication group
	Mode *MySQLMode `json:"mode,omitempty"`

	// Group replication info for MySQL
	Group *MySQLGroupSpec `json:"group,omitempty"`
}

func (*MySQLTopology) DeepCopy added in v0.25.0

func (in *MySQLTopology) DeepCopy() *MySQLTopology

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

func (*MySQLTopology) DeepCopyInto added in v0.25.0

func (in *MySQLTopology) DeepCopyInto(out *MySQLTopology)

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

type PXCSpec

type PXCSpec struct {
	// Name of the cluster and should be identical on all nodes.
	ClusterName string `json:"clusterName,omitempty"`

	// Proxysql configuration
	Proxysql ProxysqlSpec `json:"proxysql,omitempty"`
}

func (*PXCSpec) DeepCopy

func (in *PXCSpec) DeepCopy() *PXCSpec

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

func (*PXCSpec) DeepCopyInto

func (in *PXCSpec) DeepCopyInto(out *PXCSpec)

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

type PerconaXtraDB

type PerconaXtraDB struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PerconaXtraDBSpec   `json:"spec,omitempty"`
	Status            PerconaXtraDBStatus `json:"status,omitempty"`
}

PerconaXtraDB defines a percona variation of Mysql database.

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

+kubebuilder:object:root=true +kubebuilder:skipversion

func (*PerconaXtraDB) DeepCopy

func (in *PerconaXtraDB) DeepCopy() *PerconaXtraDB

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

func (*PerconaXtraDB) DeepCopyInto

func (in *PerconaXtraDB) DeepCopyInto(out *PerconaXtraDB)

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

func (*PerconaXtraDB) DeepCopyObject

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

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

type PerconaXtraDBList

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

func (*PerconaXtraDBList) DeepCopy

func (in *PerconaXtraDBList) DeepCopy() *PerconaXtraDBList

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

func (*PerconaXtraDBList) DeepCopyInto

func (in *PerconaXtraDBList) DeepCopyInto(out *PerconaXtraDBList)

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

func (*PerconaXtraDBList) DeepCopyObject

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

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

type PerconaXtraDBSpec

type PerconaXtraDBSpec struct {
	// Version of PerconaXtraDB to be deployed.
	Version types.StrYo `json:"version"`

	// Number of instances to deploy for PerconaXtraDB
	Replicas *int32 `json:"replicas,omitempty"`

	// PXC is the cluster specification for PerconaXtraDB Cluster
	PXC *PXCSpec `json:"pxc,omitempty"`

	// StorageType can be durable (default) or ephemeral
	StorageType StorageType `json:"storageType,omitempty"`

	// Storage spec to specify how storage shall be used.
	Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"`

	// Database authentication secret
	DatabaseSecret *core.SecretVolumeSource `json:"databaseSecret,omitempty"`

	// Init is used to initialize database
	// +optional
	Init *InitSpec `json:"init,omitempty"`

	// Monitor is used monitor database instance
	// +optional
	Monitor *mona.AgentSpec `json:"monitor,omitempty"`

	// ConfigSource is an optional field to provide custom configuration file for database (i.e custom-mysql.cnf).
	// If specified, this file will be used as configuration file otherwise default configuration file will be used.
	ConfigSource *core.VolumeSource `json:"configSource,omitempty"`

	// PodTemplate is an optional configuration for pods used to expose database
	// +optional
	PodTemplate ofst.PodTemplateSpec `json:"podTemplate,omitempty"`

	// ServiceTemplate is an optional configuration for service used to expose database
	// +optional
	ServiceTemplate ofst.ServiceTemplateSpec `json:"serviceTemplate,omitempty"`

	// updateStrategy indicates the StatefulSetUpdateStrategy that will be
	// employed to update Pods in the StatefulSet when a revision is made to
	// Template.
	UpdateStrategy apps.StatefulSetUpdateStrategy `json:"updateStrategy,omitempty"`

	// TerminationPolicy controls the delete operation for database
	// +optional
	TerminationPolicy TerminationPolicy `json:"terminationPolicy,omitempty"`
}

func (*PerconaXtraDBSpec) DeepCopy

func (in *PerconaXtraDBSpec) DeepCopy() *PerconaXtraDBSpec

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

func (*PerconaXtraDBSpec) DeepCopyInto

func (in *PerconaXtraDBSpec) DeepCopyInto(out *PerconaXtraDBSpec)

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

type PerconaXtraDBStatus

type PerconaXtraDBStatus struct {
	Phase  DatabasePhase `json:"phase,omitempty"`
	Reason string        `json:"reason,omitempty"`
	// observedGeneration is the most recent generation observed for this resource. It corresponds to the
	// resource's generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration *types.IntHash `json:"observedGeneration,omitempty"`
}

func (*PerconaXtraDBStatus) DeepCopy

func (in *PerconaXtraDBStatus) DeepCopy() *PerconaXtraDBStatus

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

func (*PerconaXtraDBStatus) DeepCopyInto

func (in *PerconaXtraDBStatus) DeepCopyInto(out *PerconaXtraDBStatus)

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

type Postgres

type Postgres struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PostgresSpec   `json:"spec,omitempty"`
	Status            PostgresStatus `json:"status,omitempty"`
}

Postgres defines a Postgres database.

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

+kubebuilder:object:root=true +kubebuilder:skipversion

func (*Postgres) DeepCopy

func (in *Postgres) DeepCopy() *Postgres

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

func (*Postgres) DeepCopyInto

func (in *Postgres) DeepCopyInto(out *Postgres)

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

func (*Postgres) DeepCopyObject

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

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

type PostgresArchiverSpec

type PostgresArchiverSpec struct {
	Storage *store.Backend `json:"storage,omitempty"`
}

func (*PostgresArchiverSpec) DeepCopy

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

func (*PostgresArchiverSpec) DeepCopyInto

func (in *PostgresArchiverSpec) DeepCopyInto(out *PostgresArchiverSpec)

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

type PostgresList

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

func (*PostgresList) DeepCopy

func (in *PostgresList) DeepCopy() *PostgresList

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

func (*PostgresList) DeepCopyInto

func (in *PostgresList) DeepCopyInto(out *PostgresList)

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

func (*PostgresList) DeepCopyObject

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

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

type PostgresSchemaInfo

type PostgresSchemaInfo struct {
	Table map[string]*PostgresTableInfo `json:"table"`
}

func (*PostgresSchemaInfo) DeepCopy

func (in *PostgresSchemaInfo) DeepCopy() *PostgresSchemaInfo

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

func (*PostgresSchemaInfo) DeepCopyInto

func (in *PostgresSchemaInfo) DeepCopyInto(out *PostgresSchemaInfo)

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

type PostgresSpec

type PostgresSpec struct {
	// Version of Postgres to be deployed.
	Version types.StrYo `json:"version"`

	// Number of instances to deploy for a Postgres database.
	Replicas *int32 `json:"replicas,omitempty"`

	// Standby mode
	StandbyMode *PostgresStandbyMode `json:"standbyMode,omitempty"`

	// Streaming mode
	StreamingMode *PostgresStreamingMode `json:"streamingMode,omitempty"`

	// Archive for wal files
	Archiver *PostgresArchiverSpec `json:"archiver,omitempty"`

	// Leader election configuration
	// +optional
	LeaderElection *LeaderElectionConfig `json:"leaderElection,omitempty"`

	// Database authentication secret
	DatabaseSecret *core.SecretVolumeSource `json:"databaseSecret,omitempty"`

	// StorageType can be durable (default) or ephemeral
	StorageType StorageType `json:"storageType,omitempty"`

	// Storage to specify how storage shall be used.
	Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"`

	// Init is used to initialize database
	// +optional
	Init *InitSpec `json:"init,omitempty"`

	// BackupSchedule spec to specify how database backup will be taken
	// +optional
	BackupSchedule *BackupScheduleSpec `json:"backupSchedule,omitempty"`

	// Monitor is used monitor database instance
	// +optional
	Monitor *mona.AgentSpec `json:"monitor,omitempty"`

	// ConfigSource is an optional field to provide custom configuration file for database (i.e postgresql.conf).
	// If specified, this file will be used as configuration file otherwise default configuration file will be used.
	ConfigSource *core.VolumeSource `json:"configSource,omitempty"`

	// PodTemplate is an optional configuration for pods used to expose database
	// +optional
	PodTemplate ofst.PodTemplateSpec `json:"podTemplate,omitempty"`

	// ServiceTemplate is an optional configuration for service used to expose database
	// +optional
	ServiceTemplate ofst.ServiceTemplateSpec `json:"serviceTemplate,omitempty"`

	// ReplicaServiceTemplate is an optional configuration for service used to expose postgres replicas
	// +optional
	ReplicaServiceTemplate ofst.ServiceTemplateSpec `json:"replicaServiceTemplate,omitempty"`

	// updateStrategy indicates the StatefulSetUpdateStrategy that will be
	// employed to update Pods in the StatefulSet when a revision is made to
	// Template.
	UpdateStrategy apps.StatefulSetUpdateStrategy `json:"updateStrategy,omitempty"`

	// TerminationPolicy controls the delete operation for database
	// +optional
	TerminationPolicy TerminationPolicy `json:"terminationPolicy,omitempty"`
}

func (*PostgresSpec) DeepCopy

func (in *PostgresSpec) DeepCopy() *PostgresSpec

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

func (*PostgresSpec) DeepCopyInto

func (in *PostgresSpec) DeepCopyInto(out *PostgresSpec)

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

type PostgresStandbyMode

type PostgresStandbyMode string
const (
	HotPostgresStandbyMode  PostgresStandbyMode = "Hot"
	WarmPostgresStandbyMode PostgresStandbyMode = "Warm"

	// Deprecated
	DeprecatedHotStandby PostgresStandbyMode = "hot"
	// Deprecated
	DeprecatedWarmStandby PostgresStandbyMode = "warm"
)

type PostgresStatus

type PostgresStatus struct {
	Phase  DatabasePhase `json:"phase,omitempty"`
	Reason string        `json:"reason,omitempty"`
	// observedGeneration is the most recent generation observed for this resource. It corresponds to the
	// resource's generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration *types.IntHash `json:"observedGeneration,omitempty"`
}

func (*PostgresStatus) DeepCopy

func (in *PostgresStatus) DeepCopy() *PostgresStatus

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

func (*PostgresStatus) DeepCopyInto

func (in *PostgresStatus) DeepCopyInto(out *PostgresStatus)

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

type PostgresStreamingMode

type PostgresStreamingMode string
const (
	SynchronousPostgresStreamingMode  PostgresStreamingMode = "Synchronous"
	AsynchronousPostgresStreamingMode PostgresStreamingMode = "Asynchronous"

	// Deprecated
	DeprecatedAsynchronousStreaming PostgresStreamingMode = "asynchronous"
)

type PostgresSummary

type PostgresSummary struct {
	Schema map[string]*PostgresSchemaInfo `json:"schema"`
}

func (*PostgresSummary) DeepCopy

func (in *PostgresSummary) DeepCopy() *PostgresSummary

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

func (*PostgresSummary) DeepCopyInto

func (in *PostgresSummary) DeepCopyInto(out *PostgresSummary)

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

type PostgresTableInfo

type PostgresTableInfo struct {
	TotalRow int64 `json:"totalRow"`
	MaxID    int64 `json:"maxId"`
	NextID   int64 `json:"nextId"`
}

Following structures are used for audit summary report

func (*PostgresTableInfo) DeepCopy

func (in *PostgresTableInfo) DeepCopy() *PostgresTableInfo

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

func (*PostgresTableInfo) DeepCopyInto

func (in *PostgresTableInfo) DeepCopyInto(out *PostgresTableInfo)

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

type PostgresWALSourceSpec

type PostgresWALSourceSpec struct {
	BackupName    string          `json:"backupName,omitempty"`
	PITR          *RecoveryTarget `json:"pitr,omitempty"`
	store.Backend `json:",inline,omitempty"`
}

func (*PostgresWALSourceSpec) DeepCopy

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

func (*PostgresWALSourceSpec) DeepCopyInto

func (in *PostgresWALSourceSpec) DeepCopyInto(out *PostgresWALSourceSpec)

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

type ProxysqlSpec

type ProxysqlSpec struct {
	// Number of Proxysql nodes. Currently we support only replicas = 1.
	// TODO: If replicas > 1, proxysql will be clustered
	Replicas *int32 `json:"replicas,omitempty"`

	// PodTemplate is an optional configuration for pods used to expose proxysql
	// +optional
	PodTemplate ofst.PodTemplateSpec `json:"podTemplate,omitempty"`
}

func (*ProxysqlSpec) DeepCopy

func (in *ProxysqlSpec) DeepCopy() *ProxysqlSpec

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

func (*ProxysqlSpec) DeepCopyInto

func (in *ProxysqlSpec) DeepCopyInto(out *ProxysqlSpec)

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

type RecoveryTarget

type RecoveryTarget struct {
	// TargetTime specifies the time stamp up to which recovery will proceed.
	TargetTime string `json:"targetTime,omitempty"`
	// TargetTimeline specifies recovering into a particular timeline.
	// The default is to recover along the same timeline that was current when the base backup was taken.
	TargetTimeline string `json:"targetTimeline,omitempty"`
	// TargetXID specifies the transaction ID up to which recovery will proceed.
	TargetXID string `json:"targetXID,omitempty"`
	// TargetInclusive specifies whether to include ongoing transaction in given target point.
	TargetInclusive *bool `json:"targetInclusive,omitempty"`
}

func (*RecoveryTarget) DeepCopy

func (in *RecoveryTarget) DeepCopy() *RecoveryTarget

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

func (*RecoveryTarget) DeepCopyInto

func (in *RecoveryTarget) DeepCopyInto(out *RecoveryTarget)

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

type Redis

type Redis struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              RedisSpec   `json:"spec,omitempty"`
	Status            RedisStatus `json:"status,omitempty"`
}

Redis defines a Redis database.

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

+kubebuilder:object:root=true +kubebuilder:skipversion

func (*Redis) DeepCopy

func (in *Redis) DeepCopy() *Redis

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

func (*Redis) DeepCopyInto

func (in *Redis) DeepCopyInto(out *Redis)

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

func (*Redis) DeepCopyObject

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

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

type RedisClusterSpec

type RedisClusterSpec struct {
	// Number of master nodes. It must be >= 3. If not specified, defaults to 3.
	Master *int32 `json:"master,omitempty"`

	// Number of replica(s) per master node. If not specified, defaults to 1.
	Replicas *int32 `json:"replicas,omitempty"`
}

func (*RedisClusterSpec) DeepCopy

func (in *RedisClusterSpec) DeepCopy() *RedisClusterSpec

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

func (*RedisClusterSpec) DeepCopyInto

func (in *RedisClusterSpec) DeepCopyInto(out *RedisClusterSpec)

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

type RedisList

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

func (*RedisList) DeepCopy

func (in *RedisList) DeepCopy() *RedisList

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

func (*RedisList) DeepCopyInto

func (in *RedisList) DeepCopyInto(out *RedisList)

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

func (*RedisList) DeepCopyObject

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

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

type RedisMode

type RedisMode string
const (
	RedisModeStandalone RedisMode = "Standalone"
	RedisModeCluster    RedisMode = "Cluster"
)

type RedisSpec

type RedisSpec struct {
	// Version of Redis to be deployed.
	Version types.StrYo `json:"version"`

	// Number of instances to deploy for a MySQL database.
	Replicas *int32 `json:"replicas,omitempty"`

	// Default is "Standalone". If set to "Cluster", ClusterSpec is required and redis servers will
	// start in cluster mode
	Mode RedisMode `json:"mode,omitempty"`

	// Redis cluster configuration for running redis servers in cluster mode. Required if Mode is set to "Cluster"
	Cluster *RedisClusterSpec `json:"cluster,omitempty"`

	// StorageType can be durable (default) or ephemeral
	StorageType StorageType `json:"storageType,omitempty"`

	// Storage spec to specify how storage shall be used.
	Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"`

	// Monitor is used monitor database instance
	// +optional
	Monitor *mona.AgentSpec `json:"monitor,omitempty"`

	// ConfigSource is an optional field to provide custom configuration file for database (i.e redis.conf).
	// If specified, this file will be used as configuration file otherwise default configuration file will be used.
	ConfigSource *core.VolumeSource `json:"configSource,omitempty"`

	// PodTemplate is an optional configuration for pods used to expose database
	// +optional
	PodTemplate ofst.PodTemplateSpec `json:"podTemplate,omitempty"`

	// ServiceTemplate is an optional configuration for service used to expose database
	// +optional
	ServiceTemplate ofst.ServiceTemplateSpec `json:"serviceTemplate,omitempty"`

	// updateStrategy indicates the StatefulSetUpdateStrategy that will be
	// employed to update Pods in the StatefulSet when a revision is made to
	// Template.
	UpdateStrategy apps.StatefulSetUpdateStrategy `json:"updateStrategy,omitempty"`

	// TerminationPolicy controls the delete operation for database
	// +optional
	TerminationPolicy TerminationPolicy `json:"terminationPolicy,omitempty"`
}

func (*RedisSpec) DeepCopy

func (in *RedisSpec) DeepCopy() *RedisSpec

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

func (*RedisSpec) DeepCopyInto

func (in *RedisSpec) DeepCopyInto(out *RedisSpec)

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

type RedisStatus

type RedisStatus struct {
	Phase  DatabasePhase `json:"phase,omitempty"`
	Reason string        `json:"reason,omitempty"`
	// observedGeneration is the most recent generation observed for this resource. It corresponds to the
	// resource's generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration *types.IntHash `json:"observedGeneration,omitempty"`
}

func (*RedisStatus) DeepCopy

func (in *RedisStatus) DeepCopy() *RedisStatus

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

func (*RedisStatus) DeepCopyInto

func (in *RedisStatus) DeepCopyInto(out *RedisStatus)

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

type SSLMode

type SSLMode string

SSLMode represents available sslmodes of mongodb. ref: https://docs.mongodb.com/manual/reference/program/mongod/#cmdoption-mongod-sslmode

const (
	// SSLModeDisabled represents `disabled` sslMode. It ensures that the server does not use TLS/SSL.
	SSLModeDisabled SSLMode = "disabled"

	// SSLModeAllowSSL represents `allowSSL` sslMode. It ensures that the connections between servers do not use TLS/SSL. For incoming connections,
	// the server accepts both TLS/SSL and non-TLS/non-SSL.
	SSLModeAllowSSL SSLMode = "allowSSL"

	// SSLModePreferSSL represents `preferSSL` sslMode. It ensures that the connections between servers use TLS/SSL. For incoming connections,
	// the server accepts both TLS/SSL and non-TLS/non-SSL.
	SSLModePreferSSL SSLMode = "preferSSL"

	// SSLModeRequireSSL represents `requiteSSL` sslmode. It ensures that the server uses and accepts only TLS/SSL encrypted connections.
	SSLModeRequireSSL SSLMode = "requireSSL"
)

type ScriptSourceSpec

type ScriptSourceSpec struct {
	ScriptPath        string `json:"scriptPath,omitempty"`
	core.VolumeSource `json:",inline,omitempty"`
}

func (*ScriptSourceSpec) DeepCopy

func (in *ScriptSourceSpec) DeepCopy() *ScriptSourceSpec

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

func (*ScriptSourceSpec) DeepCopyInto

func (in *ScriptSourceSpec) DeepCopyInto(out *ScriptSourceSpec)

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

type SnapshotSourceSpec

type SnapshotSourceSpec struct {
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
	// Arguments to the restore job
	Args []string `json:"args,omitempty"`
}

func (*SnapshotSourceSpec) DeepCopy

func (in *SnapshotSourceSpec) DeepCopy() *SnapshotSourceSpec

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

func (*SnapshotSourceSpec) DeepCopyInto

func (in *SnapshotSourceSpec) DeepCopyInto(out *SnapshotSourceSpec)

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

type StorageType

type StorageType string
const (
	// default storage type and requires spec.storage to be configured
	StorageTypeDurable StorageType = "Durable"
	// Uses emptyDir as storage
	StorageTypeEphemeral StorageType = "Ephemeral"
)

type TLSPolicy

type TLSPolicy struct {
	Member         *MemberSecret `json:"member,omitempty"`
	OperatorSecret string        `json:"operatorSecret,omitempty"`
}

func (*TLSPolicy) DeepCopy

func (in *TLSPolicy) DeepCopy() *TLSPolicy

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

func (*TLSPolicy) DeepCopyInto

func (in *TLSPolicy) DeepCopyInto(out *TLSPolicy)

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

type TerminationPolicy

type TerminationPolicy string
const (
	// Pauses database into a DormantDatabase
	TerminationPolicyPause TerminationPolicy = "Pause"
	// Deletes database pods, service, pvcs but leave the snapshot data intact. This will not create a DormantDatabase.
	TerminationPolicyDelete TerminationPolicy = "Delete"
	// Deletes database pods, service, pvcs and snapshot data. This will not create a DormantDatabase.
	TerminationPolicyWipeOut TerminationPolicy = "WipeOut"
	// Rejects attempt to delete database using ValidationWebhook. This replaces spec.doNotPause = true
	TerminationPolicyDoNotTerminate TerminationPolicy = "DoNotTerminate"
)

Jump to

Keyboard shortcuts

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