Documentation ¶
Overview ¶
+groupName=kubedb.com
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type BackupScheduleSpec
- type ClusterAuthMode
- type DatabasePhase
- type DormantDatabase
- func (d DormantDatabase) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *DormantDatabase) DeepCopy() *DormantDatabase
- func (in *DormantDatabase) DeepCopyInto(out *DormantDatabase)
- func (in *DormantDatabase) DeepCopyObject() runtime.Object
- func (d *DormantDatabase) GetDatabaseSecrets() []string
- func (d DormantDatabase) OffshootLabels() map[string]string
- func (d DormantDatabase) OffshootName() string
- func (d DormantDatabase) OffshootSelectors() map[string]string
- func (d DormantDatabase) ResourceKind() string
- func (d DormantDatabase) ResourcePlural() string
- func (d DormantDatabase) ResourceShortCode() string
- func (d DormantDatabase) ResourceSingular() string
- func (d *DormantDatabase) SetDefaults()
- type DormantDatabaseList
- type DormantDatabasePhase
- type DormantDatabaseSpec
- type DormantDatabaseStatus
- type Elasticsearch
- func (r Elasticsearch) AppBindingMeta() appcat.AppBindingMeta
- func (e Elasticsearch) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Elasticsearch) DeepCopy() *Elasticsearch
- func (in *Elasticsearch) DeepCopyInto(out *Elasticsearch)
- func (in *Elasticsearch) DeepCopyObject() runtime.Object
- func (e *Elasticsearch) GetConnectionScheme() string
- func (e *Elasticsearch) GetConnectionURL() string
- func (e *Elasticsearch) GetMonitoringVendor() string
- func (e *Elasticsearch) MasterServiceName() string
- func (e Elasticsearch) OffshootLabels() map[string]string
- func (e Elasticsearch) OffshootName() string
- func (e Elasticsearch) OffshootSelectors() map[string]string
- func (e Elasticsearch) ResourceKind() string
- func (e Elasticsearch) ResourcePlural() string
- func (e Elasticsearch) ResourceShortCode() string
- func (e Elasticsearch) ResourceSingular() string
- func (e Elasticsearch) ServiceName() string
- func (e *Elasticsearch) SetDefaults()
- func (e Elasticsearch) SnapshotSAName() string
- func (e Elasticsearch) StatsService() mona.StatsAccessor
- func (e Elasticsearch) StatsServiceLabels() map[string]string
- type ElasticsearchAuthPlugin
- type ElasticsearchClusterTopology
- type ElasticsearchList
- type ElasticsearchNode
- type ElasticsearchSpec
- type ElasticsearchStatus
- type ElasticsearchSummary
- type Etcd
- func (r Etcd) AppBindingMeta() appcat.AppBindingMeta
- func (e Etcd) ClientServiceName() string
- func (e Etcd) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Etcd) DeepCopy() *Etcd
- func (in *Etcd) DeepCopyInto(out *Etcd)
- func (in *Etcd) DeepCopyObject() runtime.Object
- func (e *Etcd) GetMonitoringVendor() string
- func (e Etcd) OffshootLabels() map[string]string
- func (e Etcd) OffshootName() string
- func (e Etcd) OffshootSelectors() map[string]string
- func (e Etcd) PeerServiceName() string
- func (e Etcd) ResourceKind() string
- func (e Etcd) ResourcePlural() string
- func (e Etcd) ResourceShortCode() string
- func (e Etcd) ResourceSingular() string
- func (e *Etcd) SetDefaults()
- func (e Etcd) SnapshotSAName() string
- func (e Etcd) StatsService() mona.StatsAccessor
- func (e Etcd) StatsServiceLabels() map[string]string
- type EtcdList
- type EtcdSpec
- type EtcdStatus
- type InitSpec
- type LeaderElectionConfig
- type MariaDB
- func (m MariaDB) AppBindingMeta() appcat.AppBindingMeta
- func (m MariaDB) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *MariaDB) DeepCopy() *MariaDB
- func (in *MariaDB) DeepCopyInto(out *MariaDB)
- func (in *MariaDB) DeepCopyObject() runtime.Object
- func (m *MariaDB) GetMonitoringVendor() string
- func (m MariaDB) GoverningServiceName() string
- func (m MariaDB) OffshootLabels() map[string]string
- func (m MariaDB) OffshootName() string
- func (m MariaDB) OffshootSelectors() map[string]string
- func (m MariaDB) ResourceKind() string
- func (m MariaDB) ResourcePlural() string
- func (m MariaDB) ResourceShortCode() string
- func (m MariaDB) ResourceSingular() string
- func (m MariaDB) ServiceName() string
- func (m *MariaDB) SetDefaults()
- func (m MariaDB) StatsService() mona.StatsAccessor
- func (m MariaDB) StatsServiceLabels() map[string]string
- type MariaDBList
- type MariaDBSpec
- type MariaDBStatus
- type MemberSecret
- type Memcached
- func (m Memcached) AppBindingMeta() appcat.AppBindingMeta
- func (m Memcached) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Memcached) DeepCopy() *Memcached
- func (in *Memcached) DeepCopyInto(out *Memcached)
- func (in *Memcached) DeepCopyObject() runtime.Object
- func (m *Memcached) GetMonitoringVendor() string
- func (m Memcached) OffshootLabels() map[string]string
- func (m Memcached) OffshootName() string
- func (m Memcached) OffshootSelectors() map[string]string
- func (m Memcached) ResourceKind() string
- func (m Memcached) ResourcePlural() string
- func (m Memcached) ResourceShortCode() string
- func (m Memcached) ResourceSingular() string
- func (m Memcached) ServiceName() string
- func (m *Memcached) SetDefaults()
- func (m Memcached) StatsService() mona.StatsAccessor
- func (m Memcached) StatsServiceLabels() map[string]string
- type MemcachedList
- type MemcachedSpec
- type MemcachedStatus
- type MongoDB
- func (m MongoDB) AppBindingMeta() appcat.AppBindingMeta
- func (m MongoDB) ConfigSvrDSN() string
- func (m MongoDB) ConfigSvrLabels() map[string]string
- func (m MongoDB) ConfigSvrNodeName() string
- func (m MongoDB) ConfigSvrRepSetName() string
- func (m MongoDB) ConfigSvrSelectors() map[string]string
- func (m MongoDB) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *MongoDB) DeepCopy() *MongoDB
- func (in *MongoDB) DeepCopyInto(out *MongoDB)
- func (in *MongoDB) DeepCopyObject() runtime.Object
- func (m *MongoDB) GetMonitoringVendor() string
- func (m MongoDB) GvrSvcName(name string) string
- func (m MongoDB) HostAddress() string
- func (m MongoDB) MongosLabels() map[string]string
- func (m MongoDB) MongosNodeName() string
- func (m MongoDB) MongosSelectors() map[string]string
- func (m MongoDB) OffshootLabels() map[string]string
- func (m MongoDB) OffshootName() string
- func (m MongoDB) OffshootSelectors() map[string]string
- func (m MongoDB) RepSetName() string
- func (m MongoDB) ResourceKind() string
- func (m MongoDB) ResourcePlural() string
- func (m MongoDB) ResourceShortCode() string
- func (m MongoDB) ResourceSingular() string
- func (m MongoDB) ServiceName() string
- func (m *MongoDB) SetDefaults()
- func (m MongoDB) ShardDSN(nodeNum int32) string
- func (m MongoDB) ShardLabels(nodeNum int32) map[string]string
- func (m MongoDB) ShardNodeName(nodeNum int32) string
- func (m MongoDB) ShardRepSetName(nodeNum int32) string
- func (m MongoDB) ShardSelectors(nodeNum int32) map[string]string
- func (m MongoDB) SnapshotSAName() string
- func (m MongoDB) StatsService() mona.StatsAccessor
- func (m MongoDB) StatsServiceLabels() map[string]string
- type MongoDBConfigNode
- type MongoDBList
- type MongoDBMongosNode
- type MongoDBNode
- type MongoDBReplicaSet
- type MongoDBShardNode
- type MongoDBShardingTopology
- type MongoDBSpec
- type MongoDBStatus
- type MySQL
- func (m MySQL) AppBindingMeta() appcat.AppBindingMeta
- func (m MySQL) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *MySQL) DeepCopy() *MySQL
- func (in *MySQL) DeepCopyInto(out *MySQL)
- func (in *MySQL) DeepCopyObject() runtime.Object
- func (m *MySQL) GetMonitoringVendor() string
- func (m MySQL) GoverningServiceName() string
- func (m MySQL) OffshootLabels() map[string]string
- func (m MySQL) OffshootName() string
- func (m MySQL) OffshootSelectors() map[string]string
- func (m MySQL) ResourceKind() string
- func (m MySQL) ResourcePlural() string
- func (m MySQL) ResourceShortCode() string
- func (m MySQL) ResourceSingular() string
- func (m MySQL) ServiceName() string
- func (m *MySQL) SetDefaults()
- func (m MySQL) SnapshotSAName() string
- func (m MySQL) StatsService() mona.StatsAccessor
- func (m MySQL) StatsServiceLabels() map[string]string
- type MySQLClusterMode
- type MySQLClusterTopology
- type MySQLGroupMode
- type MySQLGroupSpec
- type MySQLList
- type MySQLSpec
- type MySQLStatus
- type Origin
- type OriginSpec
- type PXCSpec
- type PerconaXtraDB
- func (p PerconaXtraDB) AppBindingMeta() appcat.AppBindingMeta
- func (p PerconaXtraDB) ClusterLabels() map[string]string
- func (p PerconaXtraDB) ClusterName() string
- func (p PerconaXtraDB) ClusterSelectors() map[string]string
- func (p PerconaXtraDB) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *PerconaXtraDB) DeepCopy() *PerconaXtraDB
- func (in *PerconaXtraDB) DeepCopyInto(out *PerconaXtraDB)
- func (in *PerconaXtraDB) DeepCopyObject() runtime.Object
- func (p *PerconaXtraDB) GetMonitoringVendor() string
- func (p PerconaXtraDB) GoverningServiceName() string
- func (p PerconaXtraDB) OffshootLabels() map[string]string
- func (p PerconaXtraDB) OffshootName() string
- func (p PerconaXtraDB) OffshootSelectors() map[string]string
- func (p PerconaXtraDB) PeerName(idx int) string
- func (p PerconaXtraDB) ProxysqlLabels() map[string]string
- func (p PerconaXtraDB) ProxysqlName() string
- func (p PerconaXtraDB) ProxysqlSelectors() map[string]string
- func (p PerconaXtraDB) ProxysqlServiceName() string
- func (p PerconaXtraDB) ResourceKind() string
- func (p PerconaXtraDB) ResourcePlural() string
- func (p PerconaXtraDB) ResourceShortCode() string
- func (p PerconaXtraDB) ResourceSingular() string
- func (p PerconaXtraDB) ServiceName() string
- func (p *PerconaXtraDB) SetDefaults()
- func (p PerconaXtraDB) StatsService() mona.StatsAccessor
- func (p PerconaXtraDB) StatsServiceLabels() map[string]string
- func (p PerconaXtraDB) XtraDBLabels() map[string]string
- func (p PerconaXtraDB) XtraDBSelectors() map[string]string
- type PerconaXtraDBList
- type PerconaXtraDBSpec
- type PerconaXtraDBStatus
- type Postgres
- func (p Postgres) AppBindingMeta() appcat.AppBindingMeta
- func (p Postgres) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Postgres) DeepCopy() *Postgres
- func (in *Postgres) DeepCopyInto(out *Postgres)
- func (in *Postgres) DeepCopyObject() runtime.Object
- func (p *Postgres) GetMonitoringVendor() string
- func (p Postgres) OffshootLabels() map[string]string
- func (p Postgres) OffshootName() string
- func (p Postgres) OffshootSelectors() map[string]string
- func (p Postgres) ReplicasServiceName() string
- func (p Postgres) ResourceKind() string
- func (p Postgres) ResourcePlural() string
- func (p Postgres) ResourceShortCode() string
- func (p Postgres) ResourceSingular() string
- func (p Postgres) ServiceName() string
- func (p *Postgres) SetDefaults()
- func (p Postgres) SnapshotSAName() string
- func (p Postgres) StatsService() mona.StatsAccessor
- func (p Postgres) StatsServiceLabels() map[string]string
- type PostgresArchiverSpec
- type PostgresList
- type PostgresSchemaInfo
- type PostgresSpec
- type PostgresStandbyMode
- type PostgresStatus
- type PostgresStreamingMode
- type PostgresSummary
- type PostgresTableInfo
- type PostgresWALSourceSpec
- type ProxysqlSpec
- type RecoveryTarget
- type Redis
- func (r Redis) AppBindingMeta() appcat.AppBindingMeta
- func (r Redis) BaseNameForShard() string
- func (r Redis) ConfigMapName() string
- func (r Redis) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Redis) DeepCopy() *Redis
- func (in *Redis) DeepCopyInto(out *Redis)
- func (in *Redis) DeepCopyObject() runtime.Object
- func (r *Redis) GetMonitoringVendor() string
- func (r Redis) OffshootLabels() map[string]string
- func (r Redis) OffshootName() string
- func (r Redis) OffshootSelectors() map[string]string
- func (r Redis) ResourceKind() string
- func (r Redis) ResourcePlural() string
- func (r Redis) ResourceShortCode() string
- func (r Redis) ResourceSingular() string
- func (r Redis) ServiceName() string
- func (r *Redis) SetDefaults()
- func (r Redis) StatefulSetNameWithShard(i int) string
- func (r Redis) StatsService() mona.StatsAccessor
- func (r Redis) StatsServiceLabels() map[string]string
- type RedisClusterSpec
- type RedisList
- type RedisMode
- type RedisSpec
- type RedisStatus
- type SSLMode
- type ScriptSourceSpec
- type Snapshot
- func (s Snapshot) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Snapshot) DeepCopy() *Snapshot
- func (in *Snapshot) DeepCopyInto(out *Snapshot)
- func (in *Snapshot) DeepCopyObject() runtime.Object
- func (s Snapshot) Location() (string, error)
- func (s Snapshot) OSMSecretName() string
- func (s Snapshot) OffshootName() string
- func (s Snapshot) ResourceKind() string
- func (s Snapshot) ResourcePlural() string
- func (s Snapshot) ResourceShortCode() string
- func (s Snapshot) ResourceSingular() string
- func (s *Snapshot) SetDefaults()
- type SnapshotList
- type SnapshotPhase
- type SnapshotSourceSpec
- type SnapshotSpec
- type SnapshotStatus
- type StorageType
- type TLSPolicy
- type TerminationPolicy
Constants ¶
const ( DatabaseNamePrefix = "kubedb" GenericKey = "kubedb.com" LabelDatabaseKind = GenericKey + "/kind" LabelDatabaseName = GenericKey + "/name" LabelRole = GenericKey + "/role" PostgresKey = ResourceSingularPostgres + "." + GenericKey ElasticsearchKey = ResourceSingularElasticsearch + "." + GenericKey MySQLKey = ResourceSingularMySQL + "." + GenericKey PerconaXtraDBKey = ResourceSingularPerconaXtraDB + "." + GenericKey MongoDBKey = ResourceSingularMongoDB + "." + GenericKey RedisKey = ResourceSingularRedis + "." + GenericKey MemcachedKey = ResourceSingularMemcached + "." + GenericKey EtcdKey = ResourceSingularEtcd + "." + GenericKey SnapshotKey = ResourceSingularSnapshot + "." + GenericKey LabelSnapshotStatus = SnapshotKey + "/status" AnnotationInitialized = GenericKey + "/initialized" AnnotationJobType = GenericKey + "/job-type" PrometheusExporterPortNumber = 56790 PrometheusExporterPortName = "prom-http" JobTypeBackup = "backup" JobTypeRestore = "restore" ElasticsearchRestPort = 9200 ElasticsearchRestPortName = "http" ElasticsearchNodePort = 9300 ElasticsearchNodePortName = "transport" MongoDBShardPort = 27017 MongoDBConfigdbPort = 27017 MongoDBMongosPort = 27017 MySQLNodePort = 3306 MySQLGroupComPort = 33060 MySQLMaxGroupMembers = 9 // The recommended MySQL server version for group replication (GR) MySQLGRRecommendedVersion = "5.7.25" MySQLDefaultGroupSize = 3 MySQLDefaultBaseServerID = uint(1) // The server id for each group member must be unique and in the range [1, 2^32 - 1] // And the maximum group size is 9. So MySQLMaxBaseServerID is the maximum safe value // for BaseServerID calculated as max MySQL server_id value - max Replication Group size. MySQLMaxBaseServerID = uint(4294967295 - 9) PerconaXtraDBClusterRecommendedVersion = "5.7" PerconaXtraDBMaxClusterNameLength = 32 PerconaXtraDBStandaloneReplicas = 1 PerconaXtraDBDefaultClusterSize = 3 PerconaXtraDBDataMountPath = "/var/lib/mysql" PerconaXtraDBInitDBMountPath = "/docker-entrypoint-initdb.d" PerconaXtraDBCustomConfigMountPath = "/etc/mysql/conf.d" PerconaXtraDBClusterLabelKey = PerconaXtraDBKey + "/cluster" PerconaXtraDBProxysqlLabelKey = PerconaXtraDBKey + "/proxysql" ProxysqlUser = "proxysqluser" ProxysqlPassword = "proxysqlpass" ProxysqlMySQLNodePort = 6033 ProxysqlAdminPort = 6032 ProxysqlAdminPortName = "proxyadm" ProxysqlDataMountPath = "/var/lib/proxysql" RedisShardKey = RedisKey + "/shard" RedisNodePort = 6379 RedisGossipPort = 16379 )
const ( ResourceCodeDormantDatabase = "drmn" ResourceKindDormantDatabase = "DormantDatabase" ResourceSingularDormantDatabase = "dormantdatabase" ResourcePluralDormantDatabase = "dormantdatabases" )
const ( ResourceCodeElasticsearch = "es" ResourceKindElasticsearch = "Elasticsearch" ResourceSingularElasticsearch = "elasticsearch" ResourcePluralElasticsearch = "elasticsearches" )
const ( ResourceCodeEtcd = "etc" ResourceKindEtcd = "Etcd" ResourceSingularEtcd = "etcd" ResourcePluralEtcd = "etcds" )
const ( ResourceCodeMariaDB = "md" ResourceKindMariaDB = "MariaDB" ResourceSingularMariaDB = "mariadb" ResourcePluralMariaDB = "mariadbs" )
const ( ResourceCodeMemcached = "mc" ResourceKindMemcached = "Memcached" ResourceSingularMemcached = "memcached" ResourcePluralMemcached = "memcacheds" )
const ( MongoTLSKeyFileName = "ca.key" MongoTLSCertFileName = "ca.cert" MongoServerPemFileName = "mongo.pem" MongoClientPemFileName = "client.pem" MongoDBShardLabelKey = "mongodb.kubedb.com/node.shard" MongoDBConfigLabelKey = "mongodb.kubedb.com/node.config" MongoDBMongosLabelKey = "mongodb.kubedb.com/node.mongos" )
const ( ResourceCodeMongoDB = "mg" ResourceKindMongoDB = "MongoDB" ResourceSingularMongoDB = "mongodb" ResourcePluralMongoDB = "mongodbs" )
const ( ResourceCodeMySQL = "my" ResourceKindMySQL = "MySQL" ResourceSingularMySQL = "mysql" ResourcePluralMySQL = "mysqls" )
const ( ResourceCodePerconaXtraDB = "px" ResourceKindPerconaXtraDB = "PerconaXtraDB" ResourceSingularPerconaXtraDB = "perconaxtradb" ResourcePluralPerconaXtraDB = "perconaxtradbs" )
const ( ResourceCodePostgres = "pg" ResourceKindPostgres = "Postgres" ResourceSingularPostgres = "postgres" ResourcePluralPostgres = "postgreses" )
const ( ResourceCodeRedis = "rd" ResourceKindRedis = "Redis" ResourceSingularRedis = "redis" ResourcePluralRedis = "redises" )
const ( ResourceCodeSnapshot = "snap" ResourceKindSnapshot = "Snapshot" ResourceSingularSnapshot = "snapshot" ResourcePluralSnapshot = "snapshots" )
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: kubedb.GroupName, Version: "v1alpha1"}
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
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"` // Snapshot 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.
func (*BackupScheduleSpec) SetDefaults ¶
func (e *BackupScheduleSpec) SetDefaults()
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 DormantDatabase ¶
type DormantDatabase struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DormantDatabaseSpec `json:"spec,omitempty"` Status DormantDatabaseStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=dormantdatabases,singular=dormantdatabase,shortName=drmn,categories={datastore,kubedb,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (DormantDatabase) CustomResourceDefinition ¶
func (d DormantDatabase) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*DormantDatabase) DeepCopy ¶
func (in *DormantDatabase) DeepCopy() *DormantDatabase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DormantDatabase.
func (*DormantDatabase) DeepCopyInto ¶
func (in *DormantDatabase) DeepCopyInto(out *DormantDatabase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DormantDatabase) DeepCopyObject ¶
func (in *DormantDatabase) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*DormantDatabase) GetDatabaseSecrets ¶
func (d *DormantDatabase) GetDatabaseSecrets() []string
func (DormantDatabase) OffshootLabels ¶
func (d DormantDatabase) OffshootLabels() map[string]string
func (DormantDatabase) OffshootName ¶
func (d DormantDatabase) OffshootName() string
func (DormantDatabase) OffshootSelectors ¶
func (d DormantDatabase) OffshootSelectors() map[string]string
func (DormantDatabase) ResourceKind ¶
func (d DormantDatabase) ResourceKind() string
func (DormantDatabase) ResourcePlural ¶
func (d DormantDatabase) ResourcePlural() string
func (DormantDatabase) ResourceShortCode ¶
func (d DormantDatabase) ResourceShortCode() string
func (DormantDatabase) ResourceSingular ¶
func (d DormantDatabase) ResourceSingular() string
func (*DormantDatabase) SetDefaults ¶
func (d *DormantDatabase) SetDefaults()
type DormantDatabaseList ¶
type DormantDatabaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of DormantDatabase CRD objects Items []DormantDatabase `json:"items,omitempty"` }
func (*DormantDatabaseList) DeepCopy ¶
func (in *DormantDatabaseList) DeepCopy() *DormantDatabaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DormantDatabaseList.
func (*DormantDatabaseList) DeepCopyInto ¶
func (in *DormantDatabaseList) DeepCopyInto(out *DormantDatabaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DormantDatabaseList) DeepCopyObject ¶
func (in *DormantDatabaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DormantDatabasePhase ¶
type DormantDatabasePhase string
const ( // used for Databases that are paused DormantDatabasePhasePaused DormantDatabasePhase = "Paused" // used for Databases that are currently pausing DormantDatabasePhasePausing DormantDatabasePhase = "Pausing" // used for Databases that are wiped out DormantDatabasePhaseWipedOut DormantDatabasePhase = "WipedOut" // used for Databases that are currently wiping out DormantDatabasePhaseWipingOut DormantDatabasePhase = "WipingOut" // used for Databases that are currently recovering DormantDatabasePhaseResuming DormantDatabasePhase = "Resuming" )
type DormantDatabaseSpec ¶
type DormantDatabaseSpec struct { // If true, invoke wipe out operation // +optional WipeOut bool `json:"wipeOut,omitempty"` // Origin to store original database information Origin Origin `json:"origin"` }
func (*DormantDatabaseSpec) DeepCopy ¶
func (in *DormantDatabaseSpec) DeepCopy() *DormantDatabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DormantDatabaseSpec.
func (*DormantDatabaseSpec) DeepCopyInto ¶
func (in *DormantDatabaseSpec) DeepCopyInto(out *DormantDatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DormantDatabaseStatus ¶
type DormantDatabaseStatus struct { PausingTime *metav1.Time `json:"pausingTime,omitempty"` WipeOutTime *metav1.Time `json:"wipeOutTime,omitempty"` Phase DormantDatabasePhase `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 (*DormantDatabaseStatus) DeepCopy ¶
func (in *DormantDatabaseStatus) DeepCopy() *DormantDatabaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DormantDatabaseStatus.
func (*DormantDatabaseStatus) DeepCopyInto ¶
func (in *DormantDatabaseStatus) DeepCopyInto(out *DormantDatabaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=elasticsearches,singular=elasticsearch,shortName=es,categories={datastore,kubedb,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (Elasticsearch) AppBindingMeta ¶
func (r Elasticsearch) AppBindingMeta() appcat.AppBindingMeta
func (Elasticsearch) CustomResourceDefinition ¶
func (e Elasticsearch) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
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.
func (*Elasticsearch) GetConnectionScheme ¶
func (e *Elasticsearch) GetConnectionScheme() string
func (*Elasticsearch) GetConnectionURL ¶
func (e *Elasticsearch) GetConnectionURL() string
func (*Elasticsearch) GetMonitoringVendor ¶
func (e *Elasticsearch) GetMonitoringVendor() string
func (*Elasticsearch) MasterServiceName ¶
func (e *Elasticsearch) MasterServiceName() string
func (Elasticsearch) OffshootLabels ¶
func (e Elasticsearch) OffshootLabels() map[string]string
func (Elasticsearch) OffshootName ¶
func (e Elasticsearch) OffshootName() string
func (Elasticsearch) OffshootSelectors ¶
func (e Elasticsearch) OffshootSelectors() map[string]string
func (Elasticsearch) ResourceKind ¶
func (e Elasticsearch) ResourceKind() string
func (Elasticsearch) ResourcePlural ¶
func (e Elasticsearch) ResourcePlural() string
func (Elasticsearch) ResourceShortCode ¶
func (e Elasticsearch) ResourceShortCode() string
func (Elasticsearch) ResourceSingular ¶
func (e Elasticsearch) ResourceSingular() string
func (Elasticsearch) ServiceName ¶
func (e Elasticsearch) ServiceName() string
func (*Elasticsearch) SetDefaults ¶
func (e *Elasticsearch) SetDefaults()
func (Elasticsearch) SnapshotSAName ¶
func (e Elasticsearch) SnapshotSAName() string
Snapshot service account name.
func (Elasticsearch) StatsService ¶
func (e Elasticsearch) StatsService() mona.StatsAccessor
func (Elasticsearch) StatsServiceLabels ¶
func (e Elasticsearch) StatsServiceLabels() map[string]string
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 ¶
func (in *ElasticsearchClusterTopology) DeepCopy() *ElasticsearchClusterTopology
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchClusterTopology.
func (*ElasticsearchClusterTopology) DeepCopyInto ¶
func (in *ElasticsearchClusterTopology) DeepCopyInto(out *ElasticsearchClusterTopology)
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"` // "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"` // "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.
func (*ElasticsearchSpec) GetSecrets ¶
func (e *ElasticsearchSpec) GetSecrets() []string
func (*ElasticsearchSpec) SetDefaults ¶
func (e *ElasticsearchSpec) SetDefaults()
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 ElasticsearchSummary ¶
type ElasticsearchSummary struct { IdCount map[string]int64 `json:"idCount"` Mapping interface{} `json:"mapping"` Setting interface{} `json:"setting"` }
+k8s:deepcopy-gen=false +k8s:gen-deepcopy=false Following structure is used for audit summary report
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"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=etcds,singular=etcd,shortName=etc,categories={datastore,kubedb,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (Etcd) AppBindingMeta ¶
func (r Etcd) AppBindingMeta() appcat.AppBindingMeta
func (Etcd) ClientServiceName ¶
func (Etcd) CustomResourceDefinition ¶
func (e Etcd) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*Etcd) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Etcd.
func (*Etcd) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Etcd) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Etcd) GetMonitoringVendor ¶
func (Etcd) OffshootLabels ¶
func (Etcd) OffshootName ¶
func (Etcd) OffshootSelectors ¶
func (Etcd) PeerServiceName ¶
func (Etcd) ResourceKind ¶
func (Etcd) ResourcePlural ¶
func (Etcd) ResourceShortCode ¶
func (Etcd) ResourceSingular ¶
func (*Etcd) SetDefaults ¶
func (e *Etcd) SetDefaults()
func (Etcd) StatsService ¶
func (e Etcd) StatsService() mona.StatsAccessor
func (Etcd) StatsServiceLabels ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdList.
func (*EtcdList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EtcdList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdSpec.
func (*EtcdSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EtcdSpec) GetSecrets ¶
func (*EtcdSpec) SetDefaults ¶
func (e *EtcdSpec) SetDefaults()
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InitSpec.
func (*InitSpec) DeepCopyInto ¶
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 ¶
func (in *LeaderElectionConfig) DeepCopy() *LeaderElectionConfig
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"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=mariadbs,singular=mariadb,shortName=md,categories={datastore,kubedb,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (MariaDB) AppBindingMeta ¶
func (m MariaDB) AppBindingMeta() appcat.AppBindingMeta
func (MariaDB) CustomResourceDefinition ¶
func (m MariaDB) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*MariaDB) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDB.
func (*MariaDB) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MariaDB) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MariaDB) GetMonitoringVendor ¶
func (MariaDB) GoverningServiceName ¶
func (MariaDB) OffshootLabels ¶
func (MariaDB) OffshootName ¶
func (MariaDB) OffshootSelectors ¶
func (MariaDB) ResourceKind ¶
func (MariaDB) ResourcePlural ¶
func (MariaDB) ResourceShortCode ¶
func (MariaDB) ResourceSingular ¶
func (MariaDB) ServiceName ¶
func (*MariaDB) SetDefaults ¶
func (m *MariaDB) SetDefaults()
func (MariaDB) StatsService ¶
func (m MariaDB) StatsService() mona.StatsAccessor
func (MariaDB) StatsServiceLabels ¶
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.
func (*MariaDBSpec) GetSecrets ¶
func (m *MariaDBSpec) GetSecrets() []string
func (*MariaDBSpec) SetDefaults ¶
func (m *MariaDBSpec) SetDefaults()
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"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=memcacheds,singular=memcached,shortName=mc,categories={datastore,kubedb,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (Memcached) AppBindingMeta ¶
func (m Memcached) AppBindingMeta() appcat.AppBindingMeta
func (Memcached) CustomResourceDefinition ¶
func (m Memcached) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*Memcached) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Memcached.
func (*Memcached) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Memcached) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Memcached) GetMonitoringVendor ¶
func (Memcached) OffshootLabels ¶
func (Memcached) OffshootName ¶
func (Memcached) OffshootSelectors ¶
func (Memcached) ResourceKind ¶
func (Memcached) ResourcePlural ¶
func (Memcached) ResourceShortCode ¶
func (Memcached) ResourceSingular ¶
func (Memcached) ServiceName ¶
func (*Memcached) SetDefaults ¶
func (m *Memcached) SetDefaults()
func (Memcached) StatsService ¶
func (m Memcached) StatsService() mona.StatsAccessor
func (Memcached) StatsServiceLabels ¶
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" protobuf:"bytes,4,opt,name=strategy"` // 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.
func (*MemcachedSpec) GetSecrets ¶
func (e *MemcachedSpec) GetSecrets() []string
func (*MemcachedSpec) SetDefaults ¶
func (m *MemcachedSpec) SetDefaults()
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"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=mongodbs,singular=mongodb,shortName=mg,categories={datastore,kubedb,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (MongoDB) AppBindingMeta ¶
func (m MongoDB) AppBindingMeta() appcat.AppBindingMeta
func (MongoDB) ConfigSvrDSN ¶
ConfigSvrDSN = <configSvrReplName>/<host1:port>,<host2:port>,<host3:port> // Here, host1 = <pod-name>.<governing-serviceName>.svc
func (MongoDB) ConfigSvrLabels ¶
func (MongoDB) ConfigSvrNodeName ¶
func (MongoDB) ConfigSvrRepSetName ¶
func (MongoDB) ConfigSvrSelectors ¶
func (MongoDB) CustomResourceDefinition ¶
func (m MongoDB) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*MongoDB) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDB.
func (*MongoDB) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MongoDB) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MongoDB) GetMonitoringVendor ¶
func (MongoDB) GvrSvcName ¶
Governing Service Name. Here, name parameter is either OffshootName, ShardNodeName or ConfigSvrNodeName
func (MongoDB) HostAddress ¶
HostAddress returns serviceName for standalone mongodb. and, for replica set = <replName>/<host1>,<host2>,<host3> Here, host1 = <pod-name>.<governing-serviceName> Governing service name is used for replica host because, we used governing service name as part of host while adding members to replicaset.
func (MongoDB) MongosLabels ¶
func (MongoDB) MongosNodeName ¶
func (MongoDB) MongosSelectors ¶
func (MongoDB) OffshootLabels ¶
func (MongoDB) OffshootName ¶
func (MongoDB) OffshootSelectors ¶
func (MongoDB) RepSetName ¶
RepSetName returns Replicaset name only for spec.replicaset
func (MongoDB) ResourceKind ¶
func (MongoDB) ResourcePlural ¶
func (MongoDB) ResourceShortCode ¶
func (MongoDB) ResourceSingular ¶
func (MongoDB) ServiceName ¶
func (*MongoDB) SetDefaults ¶
func (m *MongoDB) SetDefaults()
func (MongoDB) ShardDSN ¶
ShardDSN = <shardReplName>/<host1:port>,<host2:port>,<host3:port> // Here, host1 = <pod-name>.<governing-serviceName>.svc
func (MongoDB) ShardNodeName ¶
func (MongoDB) ShardRepSetName ¶
func (MongoDB) SnapshotSAName ¶
Snapshot service account name.
func (MongoDB) StatsService ¶
func (m MongoDB) StatsService() mona.StatsAccessor
func (MongoDB) StatsServiceLabels ¶
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" protobuf:"bytes,4,opt,name=strategy"` }
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 ¶
func (in *MongoDBShardingTopology) DeepCopy() *MongoDBShardingTopology
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.
func (*MongoDBSpec) GetSecrets ¶
func (m *MongoDBSpec) GetSecrets() []string
func (*MongoDBSpec) SetDefaults ¶
func (m *MongoDBSpec) SetDefaults()
func (*MongoDBSpec) SetSecurityContext ¶
func (m *MongoDBSpec) SetSecurityContext(podTemplate *ofst.PodTemplateSpec)
setSecurityContext will set default PodSecurityContext. These values will be applied only to newly created objects. These defaultings should not be applied to DBs or dormantDBs, that is managed by previous operators,
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.
func (MySQL) AppBindingMeta ¶
func (m MySQL) AppBindingMeta() appcat.AppBindingMeta
func (MySQL) CustomResourceDefinition ¶
func (m MySQL) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*MySQL) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQL.
func (*MySQL) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MySQL) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MySQL) GetMonitoringVendor ¶
func (MySQL) GoverningServiceName ¶
func (MySQL) OffshootLabels ¶
func (MySQL) OffshootName ¶
func (MySQL) OffshootSelectors ¶
func (MySQL) ResourceKind ¶
func (MySQL) ResourcePlural ¶
func (MySQL) ResourceShortCode ¶
func (MySQL) ResourceSingular ¶
func (MySQL) ServiceName ¶
func (*MySQL) SetDefaults ¶
func (m *MySQL) SetDefaults()
func (MySQL) StatsService ¶
func (m MySQL) StatsService() mona.StatsAccessor
func (MySQL) StatsServiceLabels ¶
type MySQLClusterMode ¶
type MySQLClusterMode string
const (
MySQLClusterModeGroup MySQLClusterMode = "GroupReplication"
)
type MySQLClusterTopology ¶
type MySQLClusterTopology struct { // If set to - // "GroupReplication", GroupSpec is required and MySQL servers will start a replication group Mode *MySQLClusterMode `json:"mode,omitempty"` // Group replication info for MySQL Group *MySQLGroupSpec `json:"group,omitempty"` }
func (*MySQLClusterTopology) DeepCopy ¶
func (in *MySQLClusterTopology) DeepCopy() *MySQLClusterTopology
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLClusterTopology.
func (*MySQLClusterTopology) DeepCopyInto ¶
func (in *MySQLClusterTopology) DeepCopyInto(out *MySQLClusterTopology)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLList.
func (*MySQLList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MySQLList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 *MySQLClusterTopology `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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLSpec.
func (*MySQLSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MySQLSpec) GetSecrets ¶
func (*MySQLSpec) SetDefaults ¶
func (m *MySQLSpec) SetDefaults()
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 Origin ¶
type Origin struct { metav1.ObjectMeta `json:"metadata,omitempty"` // Origin Spec to store original database Spec Spec OriginSpec `json:"spec"` }
func (*Origin) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Origin.
func (*Origin) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OriginSpec ¶
type OriginSpec struct { // Elasticsearch Spec // +optional Elasticsearch *ElasticsearchSpec `json:"elasticsearch,omitempty"` // Postgres Spec // +optional Postgres *PostgresSpec `json:"postgres,omitempty"` // MySQL Spec // +optional MySQL *MySQLSpec `json:"mysql,omitempty"` // PerconaXtraDB Spec // +optional PerconaXtraDB *PerconaXtraDBSpec `json:"perconaxtradb,omitempty"` // MariaDB Spec // +optional MariaDB *MariaDBSpec `json:"mariadb,omitempty"` // MongoDB Spec // +optional MongoDB *MongoDBSpec `json:"mongodb,omitempty"` // Redis Spec // +optional Redis *RedisSpec `json:"redis,omitempty"` // Memcached Spec // +optional Memcached *MemcachedSpec `json:"memcached,omitempty"` // Etcd Spec // +optional Etcd *EtcdSpec `json:"etcd,omitempty"` }
func (*OriginSpec) DeepCopy ¶
func (in *OriginSpec) DeepCopy() *OriginSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OriginSpec.
func (*OriginSpec) DeepCopyInto ¶
func (in *OriginSpec) DeepCopyInto(out *OriginSpec)
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PXCSpec.
func (*PXCSpec) DeepCopyInto ¶
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"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=perconaxtradbs,singular=perconaxtradb,shortName=px,categories={datastore,kubedb,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (PerconaXtraDB) AppBindingMeta ¶
func (p PerconaXtraDB) AppBindingMeta() appcat.AppBindingMeta
func (PerconaXtraDB) ClusterLabels ¶
func (p PerconaXtraDB) ClusterLabels() map[string]string
func (PerconaXtraDB) ClusterName ¶
func (p PerconaXtraDB) ClusterName() string
func (PerconaXtraDB) ClusterSelectors ¶
func (p PerconaXtraDB) ClusterSelectors() map[string]string
func (PerconaXtraDB) CustomResourceDefinition ¶
func (p PerconaXtraDB) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
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.
func (*PerconaXtraDB) GetMonitoringVendor ¶
func (p *PerconaXtraDB) GetMonitoringVendor() string
func (PerconaXtraDB) GoverningServiceName ¶
func (p PerconaXtraDB) GoverningServiceName() string
func (PerconaXtraDB) OffshootLabels ¶
func (p PerconaXtraDB) OffshootLabels() map[string]string
func (PerconaXtraDB) OffshootName ¶
func (p PerconaXtraDB) OffshootName() string
func (PerconaXtraDB) OffshootSelectors ¶
func (p PerconaXtraDB) OffshootSelectors() map[string]string
func (PerconaXtraDB) PeerName ¶
func (p PerconaXtraDB) PeerName(idx int) string
func (PerconaXtraDB) ProxysqlLabels ¶
func (p PerconaXtraDB) ProxysqlLabels() map[string]string
func (PerconaXtraDB) ProxysqlName ¶
func (p PerconaXtraDB) ProxysqlName() string
func (PerconaXtraDB) ProxysqlSelectors ¶
func (p PerconaXtraDB) ProxysqlSelectors() map[string]string
func (PerconaXtraDB) ProxysqlServiceName ¶
func (p PerconaXtraDB) ProxysqlServiceName() string
func (PerconaXtraDB) ResourceKind ¶
func (p PerconaXtraDB) ResourceKind() string
func (PerconaXtraDB) ResourcePlural ¶
func (p PerconaXtraDB) ResourcePlural() string
func (PerconaXtraDB) ResourceShortCode ¶
func (p PerconaXtraDB) ResourceShortCode() string
func (PerconaXtraDB) ResourceSingular ¶
func (p PerconaXtraDB) ResourceSingular() string
func (PerconaXtraDB) ServiceName ¶
func (p PerconaXtraDB) ServiceName() string
func (*PerconaXtraDB) SetDefaults ¶
func (p *PerconaXtraDB) SetDefaults()
func (PerconaXtraDB) StatsService ¶
func (p PerconaXtraDB) StatsService() mona.StatsAccessor
func (PerconaXtraDB) StatsServiceLabels ¶
func (p PerconaXtraDB) StatsServiceLabels() map[string]string
func (PerconaXtraDB) XtraDBLabels ¶
func (p PerconaXtraDB) XtraDBLabels() map[string]string
func (PerconaXtraDB) XtraDBSelectors ¶
func (p PerconaXtraDB) XtraDBSelectors() map[string]string
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.
func (*PerconaXtraDBSpec) GetSecrets ¶
func (p *PerconaXtraDBSpec) GetSecrets() []string
func (*PerconaXtraDBSpec) SetDefaults ¶
func (p *PerconaXtraDBSpec) SetDefaults()
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"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=postgreses,singular=postgres,shortName=pg,categories={datastore,kubedb,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (Postgres) AppBindingMeta ¶
func (p Postgres) AppBindingMeta() appcat.AppBindingMeta
func (Postgres) CustomResourceDefinition ¶
func (p Postgres) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*Postgres) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Postgres.
func (*Postgres) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Postgres) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Postgres) GetMonitoringVendor ¶
func (Postgres) OffshootLabels ¶
func (Postgres) OffshootName ¶
func (Postgres) OffshootSelectors ¶
func (Postgres) ReplicasServiceName ¶
func (Postgres) ResourceKind ¶
func (Postgres) ResourcePlural ¶
func (Postgres) ResourceShortCode ¶
func (Postgres) ResourceSingular ¶
func (Postgres) ServiceName ¶
func (*Postgres) SetDefaults ¶
func (p *Postgres) SetDefaults()
func (Postgres) SnapshotSAName ¶
Snapshot service account name.
func (Postgres) StatsService ¶
func (p Postgres) StatsService() mona.StatsAccessor
func (Postgres) StatsServiceLabels ¶
type PostgresArchiverSpec ¶
func (*PostgresArchiverSpec) DeepCopy ¶
func (in *PostgresArchiverSpec) DeepCopy() *PostgresArchiverSpec
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.
func (*PostgresSpec) GetSecrets ¶
func (e *PostgresSpec) GetSecrets() []string
func (*PostgresSpec) SetDefaults ¶
func (p *PostgresSpec) SetDefaults()
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 ¶
func (in *PostgresWALSourceSpec) DeepCopy() *PostgresWALSourceSpec
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"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=redises,singular=redis,shortName=rd,categories={datastore,kubedb,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (Redis) AppBindingMeta ¶
func (r Redis) AppBindingMeta() appcat.AppBindingMeta
func (Redis) BaseNameForShard ¶
func (Redis) ConfigMapName ¶
func (Redis) CustomResourceDefinition ¶
func (r Redis) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*Redis) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Redis.
func (*Redis) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Redis) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Redis) GetMonitoringVendor ¶
func (Redis) OffshootLabels ¶
func (Redis) OffshootName ¶
func (Redis) OffshootSelectors ¶
func (Redis) ResourceKind ¶
func (Redis) ResourcePlural ¶
func (Redis) ResourceShortCode ¶
func (Redis) ResourceSingular ¶
func (Redis) ServiceName ¶
func (*Redis) SetDefaults ¶
func (r *Redis) SetDefaults()
func (Redis) StatefulSetNameWithShard ¶
func (Redis) StatsService ¶
func (r Redis) StatsService() mona.StatsAccessor
func (Redis) StatsServiceLabels ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisList.
func (*RedisList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSpec.
func (*RedisSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisSpec) GetSecrets ¶
func (*RedisSpec) SetDefaults ¶
func (r *RedisSpec) SetDefaults()
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 Snapshot ¶
type Snapshot struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SnapshotSpec `json:"spec,omitempty"` Status SnapshotStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=snapshots,singular=snapshot,shortName=snap,categories={datastore,kubedb,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="DatabaseName",type="string",JSONPath=".spec.databaseName" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (Snapshot) CustomResourceDefinition ¶
func (s Snapshot) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*Snapshot) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Snapshot.
func (*Snapshot) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Snapshot) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Snapshot) OSMSecretName ¶
func (Snapshot) OffshootName ¶
func (Snapshot) ResourceKind ¶
func (Snapshot) ResourcePlural ¶
func (Snapshot) ResourceShortCode ¶
func (Snapshot) ResourceSingular ¶
func (*Snapshot) SetDefaults ¶
func (s *Snapshot) SetDefaults()
type SnapshotList ¶
type SnapshotList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Snapshot CRD objects Items []Snapshot `json:"items,omitempty"` }
func (*SnapshotList) DeepCopy ¶
func (in *SnapshotList) DeepCopy() *SnapshotList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotList.
func (*SnapshotList) DeepCopyInto ¶
func (in *SnapshotList) DeepCopyInto(out *SnapshotList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SnapshotList) DeepCopyObject ¶
func (in *SnapshotList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SnapshotPhase ¶
type SnapshotPhase string
const ( // used for Snapshots that are currently running SnapshotPhaseRunning SnapshotPhase = "Running" // used for Snapshots that are Succeeded SnapshotPhaseSucceeded SnapshotPhase = "Succeeded" // used for Snapshots that are Failed SnapshotPhaseFailed SnapshotPhase = "Failed" )
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 SnapshotSpec ¶
type SnapshotSpec struct { // Database name DatabaseName string `json:"databaseName"` // Snapshot 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 (*SnapshotSpec) DeepCopy ¶
func (in *SnapshotSpec) DeepCopy() *SnapshotSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotSpec.
func (*SnapshotSpec) DeepCopyInto ¶
func (in *SnapshotSpec) DeepCopyInto(out *SnapshotSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotStatus ¶
type SnapshotStatus struct { StartTime *metav1.Time `json:"startTime,omitempty"` CompletionTime *metav1.Time `json:"completionTime,omitempty"` Phase SnapshotPhase `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 (*SnapshotStatus) DeepCopy ¶
func (in *SnapshotStatus) DeepCopy() *SnapshotStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotStatus.
func (*SnapshotStatus) DeepCopyInto ¶
func (in *SnapshotStatus) DeepCopyInto(out *SnapshotStatus)
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSPolicy.
func (*TLSPolicy) DeepCopyInto ¶
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" )
Source Files ¶
- annotations.go
- doc.go
- dormant_database_helpers.go
- dormant_database_types.go
- elasticsearch_helpers.go
- elasticsearch_types.go
- etcd_helpers.go
- etcd_types.go
- helpers.go
- mariadb_helpers.go
- mariadb_types.go
- memcached_helpers.go
- memcached_types.go
- mongodb_helpers.go
- mongodb_types.go
- mysql_helpers.go
- mysql_types.go
- openapi_generated.go
- perconaxtradb_helpers.go
- perconaxtradb_types.go
- postgres_helpers.go
- postgres_types.go
- redis_helpers.go
- redis_types.go
- register.go
- snapshot_helpers.go
- snapshot_types.go
- types.go
- zz_generated.deepcopy.go