apimachinery: kubedb.dev/apimachinery/apis/kubedb/v1alpha1 Index | Files

package v1alpha1

import "kubedb.dev/apimachinery/apis/kubedb/v1alpha1"

+groupName=kubedb.com

Index

Package 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

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"
    PerconaXtraDBDataLostFoundPath         = PerconaXtraDBDataMountPath + "lost+found"

    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"}

func GetOpenAPIDefinitions Uses

func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition

func Kind Uses

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

type BackupScheduleSpec Uses

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 Uses

func (in *BackupScheduleSpec) DeepCopy() *BackupScheduleSpec

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

func (*BackupScheduleSpec) DeepCopyInto Uses

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 Uses

func (e *BackupScheduleSpec) SetDefaults()

type ClusterAuthMode Uses

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 Uses

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 Uses

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 Uses

func (d DormantDatabase) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*DormantDatabase) DeepCopy Uses

func (in *DormantDatabase) DeepCopy() *DormantDatabase

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

func (*DormantDatabase) DeepCopyInto Uses

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 Uses

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

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

func (*DormantDatabase) GetDatabaseSecrets Uses

func (d *DormantDatabase) GetDatabaseSecrets() []string

func (DormantDatabase) OffshootLabels Uses

func (d DormantDatabase) OffshootLabels() map[string]string

func (DormantDatabase) OffshootName Uses

func (d DormantDatabase) OffshootName() string

func (DormantDatabase) OffshootSelectors Uses

func (d DormantDatabase) OffshootSelectors() map[string]string

func (DormantDatabase) ResourceKind Uses

func (d DormantDatabase) ResourceKind() string

func (DormantDatabase) ResourcePlural Uses

func (d DormantDatabase) ResourcePlural() string

func (DormantDatabase) ResourceShortCode Uses

func (d DormantDatabase) ResourceShortCode() string

func (DormantDatabase) ResourceSingular Uses

func (d DormantDatabase) ResourceSingular() string

func (*DormantDatabase) SetDefaults Uses

func (d *DormantDatabase) SetDefaults()

type DormantDatabaseList Uses

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 Uses

func (in *DormantDatabaseList) DeepCopy() *DormantDatabaseList

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

func (*DormantDatabaseList) DeepCopyInto Uses

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 Uses

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

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

type DormantDatabasePhase Uses

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 Uses

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 Uses

func (in *DormantDatabaseSpec) DeepCopy() *DormantDatabaseSpec

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

func (*DormantDatabaseSpec) DeepCopyInto Uses

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 Uses

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 Uses

func (in *DormantDatabaseStatus) DeepCopy() *DormantDatabaseStatus

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

func (*DormantDatabaseStatus) DeepCopyInto Uses

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 Uses

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 Uses

func (r Elasticsearch) AppBindingMeta() appcat.AppBindingMeta

func (Elasticsearch) CustomResourceDefinition Uses

func (e Elasticsearch) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*Elasticsearch) DeepCopy Uses

func (in *Elasticsearch) DeepCopy() *Elasticsearch

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

func (*Elasticsearch) DeepCopyInto Uses

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 Uses

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

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

func (*Elasticsearch) GetConnectionScheme Uses

func (e *Elasticsearch) GetConnectionScheme() string

func (*Elasticsearch) GetConnectionURL Uses

func (e *Elasticsearch) GetConnectionURL() string

func (*Elasticsearch) GetMonitoringVendor Uses

func (e *Elasticsearch) GetMonitoringVendor() string

func (*Elasticsearch) MasterServiceName Uses

func (e *Elasticsearch) MasterServiceName() string

func (Elasticsearch) OffshootLabels Uses

func (e Elasticsearch) OffshootLabels() map[string]string

func (Elasticsearch) OffshootName Uses

func (e Elasticsearch) OffshootName() string

func (Elasticsearch) OffshootSelectors Uses

func (e Elasticsearch) OffshootSelectors() map[string]string

func (Elasticsearch) ResourceKind Uses

func (e Elasticsearch) ResourceKind() string

func (Elasticsearch) ResourcePlural Uses

func (e Elasticsearch) ResourcePlural() string

func (Elasticsearch) ResourceShortCode Uses

func (e Elasticsearch) ResourceShortCode() string

func (Elasticsearch) ResourceSingular Uses

func (e Elasticsearch) ResourceSingular() string

func (Elasticsearch) ServiceName Uses

func (e Elasticsearch) ServiceName() string

func (*Elasticsearch) SetDefaults Uses

func (e *Elasticsearch) SetDefaults()

func (Elasticsearch) SnapshotSAName Uses

func (e Elasticsearch) SnapshotSAName() string

Snapshot service account name.

func (Elasticsearch) StatsService Uses

func (e Elasticsearch) StatsService() mona.StatsAccessor

func (Elasticsearch) StatsServiceLabels Uses

func (e Elasticsearch) StatsServiceLabels() map[string]string

type ElasticsearchAuthPlugin Uses

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

type ElasticsearchClusterTopology Uses

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

func (*ElasticsearchClusterTopology) DeepCopy Uses

func (in *ElasticsearchClusterTopology) DeepCopy() *ElasticsearchClusterTopology

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

func (*ElasticsearchClusterTopology) DeepCopyInto Uses

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 Uses

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 Uses

func (in *ElasticsearchList) DeepCopy() *ElasticsearchList

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

func (*ElasticsearchList) DeepCopyInto Uses

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 Uses

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

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

type ElasticsearchNode Uses

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

func (*ElasticsearchNode) DeepCopy Uses

func (in *ElasticsearchNode) DeepCopy() *ElasticsearchNode

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

func (*ElasticsearchNode) DeepCopyInto Uses

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 Uses

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func (*ElasticsearchSpec) DeepCopy Uses

func (in *ElasticsearchSpec) DeepCopy() *ElasticsearchSpec

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

func (*ElasticsearchSpec) DeepCopyInto Uses

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 Uses

func (e *ElasticsearchSpec) GetSecrets() []string

func (*ElasticsearchSpec) SetDefaults Uses

func (e *ElasticsearchSpec) SetDefaults()

type ElasticsearchStatus Uses

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 Uses

func (in *ElasticsearchStatus) DeepCopy() *ElasticsearchStatus

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

func (*ElasticsearchStatus) DeepCopyInto Uses

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 Uses

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 Uses

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 Uses

func (r Etcd) AppBindingMeta() appcat.AppBindingMeta

func (Etcd) ClientServiceName Uses

func (e Etcd) ClientServiceName() string

func (Etcd) CustomResourceDefinition Uses

func (e Etcd) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*Etcd) DeepCopy Uses

func (in *Etcd) DeepCopy() *Etcd

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

func (*Etcd) DeepCopyInto Uses

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

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

func (*Etcd) DeepCopyObject Uses

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

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

func (*Etcd) GetMonitoringVendor Uses

func (e *Etcd) GetMonitoringVendor() string

func (Etcd) OffshootLabels Uses

func (e Etcd) OffshootLabels() map[string]string

func (Etcd) OffshootName Uses

func (e Etcd) OffshootName() string

func (Etcd) OffshootSelectors Uses

func (e Etcd) OffshootSelectors() map[string]string

func (Etcd) PeerServiceName Uses

func (e Etcd) PeerServiceName() string

func (Etcd) ResourceKind Uses

func (e Etcd) ResourceKind() string

func (Etcd) ResourcePlural Uses

func (e Etcd) ResourcePlural() string

func (Etcd) ResourceShortCode Uses

func (e Etcd) ResourceShortCode() string

func (Etcd) ResourceSingular Uses

func (e Etcd) ResourceSingular() string

func (*Etcd) SetDefaults Uses

func (e *Etcd) SetDefaults()

func (Etcd) SnapshotSAName Uses

func (e Etcd) SnapshotSAName() string

Snapshot service account name.

func (Etcd) StatsService Uses

func (e Etcd) StatsService() mona.StatsAccessor

func (Etcd) StatsServiceLabels Uses

func (e Etcd) StatsServiceLabels() map[string]string

type EtcdList Uses

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 Uses

func (in *EtcdList) DeepCopy() *EtcdList

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

func (*EtcdList) DeepCopyInto Uses

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

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

func (*EtcdList) DeepCopyObject Uses

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

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

type EtcdSpec Uses

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 Uses

func (in *EtcdSpec) DeepCopy() *EtcdSpec

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

func (*EtcdSpec) DeepCopyInto Uses

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

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

func (*EtcdSpec) GetSecrets Uses

func (e *EtcdSpec) GetSecrets() []string

func (*EtcdSpec) SetDefaults Uses

func (e *EtcdSpec) SetDefaults()

type EtcdStatus Uses

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 Uses

func (in *EtcdStatus) DeepCopy() *EtcdStatus

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

func (*EtcdStatus) DeepCopyInto Uses

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 Uses

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 Uses

func (in *InitSpec) DeepCopy() *InitSpec

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

func (*InitSpec) DeepCopyInto Uses

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

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

type LeaderElectionConfig Uses

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 Uses

func (in *LeaderElectionConfig) DeepCopy() *LeaderElectionConfig

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

func (*LeaderElectionConfig) DeepCopyInto Uses

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 Uses

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 Uses

func (m MariaDB) AppBindingMeta() appcat.AppBindingMeta

func (MariaDB) CustomResourceDefinition Uses

func (m MariaDB) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*MariaDB) DeepCopy Uses

func (in *MariaDB) DeepCopy() *MariaDB

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

func (*MariaDB) DeepCopyInto Uses

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

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

func (*MariaDB) DeepCopyObject Uses

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

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

func (*MariaDB) GetMonitoringVendor Uses

func (m *MariaDB) GetMonitoringVendor() string

func (MariaDB) GoverningServiceName Uses

func (m MariaDB) GoverningServiceName() string

func (MariaDB) OffshootLabels Uses

func (m MariaDB) OffshootLabels() map[string]string

func (MariaDB) OffshootName Uses

func (m MariaDB) OffshootName() string

func (MariaDB) OffshootSelectors Uses

func (m MariaDB) OffshootSelectors() map[string]string

func (MariaDB) ResourceKind Uses

func (m MariaDB) ResourceKind() string

func (MariaDB) ResourcePlural Uses

func (m MariaDB) ResourcePlural() string

func (MariaDB) ResourceShortCode Uses

func (m MariaDB) ResourceShortCode() string

func (MariaDB) ResourceSingular Uses

func (m MariaDB) ResourceSingular() string

func (MariaDB) ServiceName Uses

func (m MariaDB) ServiceName() string

func (*MariaDB) SetDefaults Uses

func (m *MariaDB) SetDefaults()

func (MariaDB) StatsService Uses

func (m MariaDB) StatsService() mona.StatsAccessor

func (MariaDB) StatsServiceLabels Uses

func (m MariaDB) StatsServiceLabels() map[string]string

type MariaDBList Uses

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 Uses

func (in *MariaDBList) DeepCopy() *MariaDBList

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

func (*MariaDBList) DeepCopyInto Uses

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 Uses

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

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

type MariaDBSpec Uses

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 Uses

func (in *MariaDBSpec) DeepCopy() *MariaDBSpec

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

func (*MariaDBSpec) DeepCopyInto Uses

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 Uses

func (m *MariaDBSpec) GetSecrets() []string

func (*MariaDBSpec) SetDefaults Uses

func (m *MariaDBSpec) SetDefaults()

type MariaDBStatus Uses

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 Uses

func (in *MariaDBStatus) DeepCopy() *MariaDBStatus

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

func (*MariaDBStatus) DeepCopyInto Uses

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 Uses

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 Uses

func (in *MemberSecret) DeepCopy() *MemberSecret

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

func (*MemberSecret) DeepCopyInto Uses

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 Uses

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 Uses

func (m Memcached) AppBindingMeta() appcat.AppBindingMeta

func (Memcached) CustomResourceDefinition Uses

func (m Memcached) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*Memcached) DeepCopy Uses

func (in *Memcached) DeepCopy() *Memcached

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

func (*Memcached) DeepCopyInto Uses

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

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

func (*Memcached) DeepCopyObject Uses

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

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

func (*Memcached) GetMonitoringVendor Uses

func (m *Memcached) GetMonitoringVendor() string

func (Memcached) OffshootLabels Uses

func (m Memcached) OffshootLabels() map[string]string

func (Memcached) OffshootName Uses

func (m Memcached) OffshootName() string

func (Memcached) OffshootSelectors Uses

func (m Memcached) OffshootSelectors() map[string]string

func (Memcached) ResourceKind Uses

func (m Memcached) ResourceKind() string

func (Memcached) ResourcePlural Uses

func (m Memcached) ResourcePlural() string

func (Memcached) ResourceShortCode Uses

func (m Memcached) ResourceShortCode() string

func (Memcached) ResourceSingular Uses

func (m Memcached) ResourceSingular() string

func (Memcached) ServiceName Uses

func (m Memcached) ServiceName() string

func (*Memcached) SetDefaults Uses

func (m *Memcached) SetDefaults()

func (Memcached) StatsService Uses

func (m Memcached) StatsService() mona.StatsAccessor

func (Memcached) StatsServiceLabels Uses

func (m Memcached) StatsServiceLabels() map[string]string

type MemcachedList Uses

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 Uses

func (in *MemcachedList) DeepCopy() *MemcachedList

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

func (*MemcachedList) DeepCopyInto Uses

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 Uses

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

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

type MemcachedSpec Uses

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 Uses

func (in *MemcachedSpec) DeepCopy() *MemcachedSpec

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

func (*MemcachedSpec) DeepCopyInto Uses

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 Uses

func (e *MemcachedSpec) GetSecrets() []string

func (*MemcachedSpec) SetDefaults Uses

func (m *MemcachedSpec) SetDefaults()

type MemcachedStatus Uses

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 Uses

func (in *MemcachedStatus) DeepCopy() *MemcachedStatus

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

func (*MemcachedStatus) DeepCopyInto Uses

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 Uses

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 Uses

func (m MongoDB) AppBindingMeta() appcat.AppBindingMeta

func (MongoDB) ConfigSvrDSN Uses

func (m MongoDB) ConfigSvrDSN() string

ConfigSvrDSN = <configSvrReplName>/<host1:port>,<host2:port>,<host3:port> // Here, host1 = <pod-name>.<governing-serviceName>.svc

func (MongoDB) ConfigSvrLabels Uses

func (m MongoDB) ConfigSvrLabels() map[string]string

func (MongoDB) ConfigSvrNodeName Uses

func (m MongoDB) ConfigSvrNodeName() string

func (MongoDB) ConfigSvrRepSetName Uses

func (m MongoDB) ConfigSvrRepSetName() string

func (MongoDB) ConfigSvrSelectors Uses

func (m MongoDB) ConfigSvrSelectors() map[string]string

func (MongoDB) CustomResourceDefinition Uses

func (m MongoDB) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*MongoDB) DeepCopy Uses

func (in *MongoDB) DeepCopy() *MongoDB

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

func (*MongoDB) DeepCopyInto Uses

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

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

func (*MongoDB) DeepCopyObject Uses

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

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

func (*MongoDB) GetMonitoringVendor Uses

func (m *MongoDB) GetMonitoringVendor() string

func (MongoDB) GvrSvcName Uses

func (m MongoDB) GvrSvcName(name string) string

Governing Service Name. Here, name parameter is either OffshootName, ShardNodeName or ConfigSvrNodeName

func (MongoDB) HostAddress Uses

func (m MongoDB) HostAddress() string

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 Uses

func (m MongoDB) MongosLabels() map[string]string

func (MongoDB) MongosNodeName Uses

func (m MongoDB) MongosNodeName() string

func (MongoDB) MongosSelectors Uses

func (m MongoDB) MongosSelectors() map[string]string

func (MongoDB) OffshootLabels Uses

func (m MongoDB) OffshootLabels() map[string]string

func (MongoDB) OffshootName Uses

func (m MongoDB) OffshootName() string

func (MongoDB) OffshootSelectors Uses

func (m MongoDB) OffshootSelectors() map[string]string

func (MongoDB) RepSetName Uses

func (m MongoDB) RepSetName() string

RepSetName returns Replicaset name only for spec.replicaset

func (MongoDB) ResourceKind Uses

func (m MongoDB) ResourceKind() string

func (MongoDB) ResourcePlural Uses

func (m MongoDB) ResourcePlural() string

func (MongoDB) ResourceShortCode Uses

func (m MongoDB) ResourceShortCode() string

func (MongoDB) ResourceSingular Uses

func (m MongoDB) ResourceSingular() string

func (MongoDB) ServiceName Uses

func (m MongoDB) ServiceName() string

func (*MongoDB) SetDefaults Uses

func (m *MongoDB) SetDefaults()

func (MongoDB) ShardDSN Uses

func (m MongoDB) ShardDSN(nodeNum int32) string

ShardDSN = <shardReplName>/<host1:port>,<host2:port>,<host3:port> // Here, host1 = <pod-name>.<governing-serviceName>.svc

func (MongoDB) ShardLabels Uses

func (m MongoDB) ShardLabels(nodeNum int32) map[string]string

func (MongoDB) ShardNodeName Uses

func (m MongoDB) ShardNodeName(nodeNum int32) string

func (MongoDB) ShardRepSetName Uses

func (m MongoDB) ShardRepSetName(nodeNum int32) string

func (MongoDB) ShardSelectors Uses

func (m MongoDB) ShardSelectors(nodeNum int32) map[string]string

func (MongoDB) SnapshotSAName Uses

func (m MongoDB) SnapshotSAName() string

Snapshot service account name.

func (MongoDB) StatsService Uses

func (m MongoDB) StatsService() mona.StatsAccessor

func (MongoDB) StatsServiceLabels Uses

func (m MongoDB) StatsServiceLabels() map[string]string

type MongoDBConfigNode Uses

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 Uses

func (in *MongoDBConfigNode) DeepCopy() *MongoDBConfigNode

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

func (*MongoDBConfigNode) DeepCopyInto Uses

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 Uses

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 Uses

func (in *MongoDBList) DeepCopy() *MongoDBList

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

func (*MongoDBList) DeepCopyInto Uses

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 Uses

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

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

type MongoDBMongosNode Uses

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 Uses

func (in *MongoDBMongosNode) DeepCopy() *MongoDBMongosNode

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

func (*MongoDBMongosNode) DeepCopyInto Uses

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 Uses

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 Uses

func (in *MongoDBNode) DeepCopy() *MongoDBNode

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

func (*MongoDBNode) DeepCopyInto Uses

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 Uses

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

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

func (*MongoDBReplicaSet) DeepCopy Uses

func (in *MongoDBReplicaSet) DeepCopy() *MongoDBReplicaSet

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

func (*MongoDBReplicaSet) DeepCopyInto Uses

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 Uses

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 Uses

func (in *MongoDBShardNode) DeepCopy() *MongoDBShardNode

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

func (*MongoDBShardNode) DeepCopyInto Uses

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 Uses

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 Uses

func (in *MongoDBShardingTopology) DeepCopy() *MongoDBShardingTopology

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

func (*MongoDBShardingTopology) DeepCopyInto Uses

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 Uses

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 Uses

func (in *MongoDBSpec) DeepCopy() *MongoDBSpec

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

func (*MongoDBSpec) DeepCopyInto Uses

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 Uses

func (m *MongoDBSpec) GetSecrets() []string

func (*MongoDBSpec) SetDefaults Uses

func (m *MongoDBSpec) SetDefaults()

func (*MongoDBSpec) SetSecurityContext Uses

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 Uses

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 Uses

func (in *MongoDBStatus) DeepCopy() *MongoDBStatus

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

func (*MongoDBStatus) DeepCopyInto Uses

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 Uses

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 Uses

func (m MySQL) AppBindingMeta() appcat.AppBindingMeta

func (MySQL) CustomResourceDefinition Uses

func (m MySQL) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*MySQL) DeepCopy Uses

func (in *MySQL) DeepCopy() *MySQL

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

func (*MySQL) DeepCopyInto Uses

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

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

func (*MySQL) DeepCopyObject Uses

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

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

func (*MySQL) GetMonitoringVendor Uses

func (m *MySQL) GetMonitoringVendor() string

func (MySQL) GoverningServiceName Uses

func (m MySQL) GoverningServiceName() string

func (MySQL) OffshootLabels Uses

func (m MySQL) OffshootLabels() map[string]string

func (MySQL) OffshootName Uses

func (m MySQL) OffshootName() string

func (MySQL) OffshootSelectors Uses

func (m MySQL) OffshootSelectors() map[string]string

func (MySQL) ResourceKind Uses

func (m MySQL) ResourceKind() string

func (MySQL) ResourcePlural Uses

func (m MySQL) ResourcePlural() string

func (MySQL) ResourceShortCode Uses

func (m MySQL) ResourceShortCode() string

func (MySQL) ResourceSingular Uses

func (m MySQL) ResourceSingular() string

func (MySQL) ServiceName Uses

func (m MySQL) ServiceName() string

func (*MySQL) SetDefaults Uses

func (m *MySQL) SetDefaults()

func (MySQL) SnapshotSAName Uses

func (m MySQL) SnapshotSAName() string

Snapshot service account name.

func (MySQL) StatsService Uses

func (m MySQL) StatsService() mona.StatsAccessor

func (MySQL) StatsServiceLabels Uses

func (m MySQL) StatsServiceLabels() map[string]string

type MySQLClusterMode Uses

type MySQLClusterMode string
const (
    MySQLClusterModeGroup MySQLClusterMode = "GroupReplication"
)

type MySQLClusterTopology Uses

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 Uses

func (in *MySQLClusterTopology) DeepCopy() *MySQLClusterTopology

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

func (*MySQLClusterTopology) DeepCopyInto Uses

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 Uses

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

type MySQLGroupSpec Uses

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 Uses

func (in *MySQLGroupSpec) DeepCopy() *MySQLGroupSpec

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

func (*MySQLGroupSpec) DeepCopyInto Uses

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 Uses

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 Uses

func (in *MySQLList) DeepCopy() *MySQLList

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

func (*MySQLList) DeepCopyInto Uses

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

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

func (*MySQLList) DeepCopyObject Uses

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

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

type MySQLSpec Uses

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 Uses

func (in *MySQLSpec) DeepCopy() *MySQLSpec

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

func (*MySQLSpec) DeepCopyInto Uses

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

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

func (*MySQLSpec) GetSecrets Uses

func (e *MySQLSpec) GetSecrets() []string

func (*MySQLSpec) SetDefaults Uses

func (m *MySQLSpec) SetDefaults()

type MySQLStatus Uses

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 Uses

func (in *MySQLStatus) DeepCopy() *MySQLStatus

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

func (*MySQLStatus) DeepCopyInto Uses

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 Uses

type Origin struct {
    metav1.ObjectMeta `json:"metadata,omitempty"`
    // Origin Spec to store original database Spec
    Spec OriginSpec `json:"spec"`
}

func (*Origin) DeepCopy Uses

func (in *Origin) DeepCopy() *Origin

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

func (*Origin) DeepCopyInto Uses

func (in *Origin) DeepCopyInto(out *Origin)

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

type OriginSpec Uses

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 Uses

func (in *OriginSpec) DeepCopy() *OriginSpec

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

func (*OriginSpec) DeepCopyInto Uses

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 Uses

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 Uses

func (in *PXCSpec) DeepCopy() *PXCSpec

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

func (*PXCSpec) DeepCopyInto Uses

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

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

type PerconaXtraDB Uses

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 Uses

func (p PerconaXtraDB) AppBindingMeta() appcat.AppBindingMeta

func (PerconaXtraDB) ClusterLabels Uses

func (p PerconaXtraDB) ClusterLabels() map[string]string

func (PerconaXtraDB) ClusterName Uses

func (p PerconaXtraDB) ClusterName() string

func (PerconaXtraDB) ClusterSelectors Uses

func (p PerconaXtraDB) ClusterSelectors() map[string]string

func (PerconaXtraDB) CustomResourceDefinition Uses

func (p PerconaXtraDB) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*PerconaXtraDB) DeepCopy Uses

func (in *PerconaXtraDB) DeepCopy() *PerconaXtraDB

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

func (*PerconaXtraDB) DeepCopyInto Uses

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 Uses

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

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

func (*PerconaXtraDB) GetMonitoringVendor Uses

func (p *PerconaXtraDB) GetMonitoringVendor() string

func (PerconaXtraDB) GoverningServiceName Uses

func (p PerconaXtraDB) GoverningServiceName() string

func (PerconaXtraDB) OffshootLabels Uses

func (p PerconaXtraDB) OffshootLabels() map[string]string

func (PerconaXtraDB) OffshootName Uses

func (p PerconaXtraDB) OffshootName() string

func (PerconaXtraDB) OffshootSelectors Uses

func (p PerconaXtraDB) OffshootSelectors() map[string]string

func (PerconaXtraDB) PeerName Uses

func (p PerconaXtraDB) PeerName(idx int) string

func (PerconaXtraDB) ProxysqlLabels Uses

func (p PerconaXtraDB) ProxysqlLabels() map[string]string

func (PerconaXtraDB) ProxysqlName Uses

func (p PerconaXtraDB) ProxysqlName() string

func (PerconaXtraDB) ProxysqlSelectors Uses

func (p PerconaXtraDB) ProxysqlSelectors() map[string]string

func (PerconaXtraDB) ProxysqlServiceName Uses

func (p PerconaXtraDB) ProxysqlServiceName() string

func (PerconaXtraDB) ResourceKind Uses

func (p PerconaXtraDB) ResourceKind() string

func (PerconaXtraDB) ResourcePlural Uses

func (p PerconaXtraDB) ResourcePlural() string

func (PerconaXtraDB) ResourceShortCode Uses

func (p PerconaXtraDB) ResourceShortCode() string

func (PerconaXtraDB) ResourceSingular Uses

func (p PerconaXtraDB) ResourceSingular() string

func (PerconaXtraDB) ServiceName Uses

func (p PerconaXtraDB) ServiceName() string

func (*PerconaXtraDB) SetDefaults Uses

func (p *PerconaXtraDB) SetDefaults()

func (PerconaXtraDB) StatsService Uses

func (p PerconaXtraDB) StatsService() mona.StatsAccessor

func (PerconaXtraDB) StatsServiceLabels Uses

func (p PerconaXtraDB) StatsServiceLabels() map[string]string

func (PerconaXtraDB) XtraDBLabels Uses

func (p PerconaXtraDB) XtraDBLabels() map[string]string

func (PerconaXtraDB) XtraDBSelectors Uses

func (p PerconaXtraDB) XtraDBSelectors() map[string]string

type PerconaXtraDBList Uses

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 Uses

func (in *PerconaXtraDBList) DeepCopy() *PerconaXtraDBList

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

func (*PerconaXtraDBList) DeepCopyInto Uses

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 Uses

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

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

type PerconaXtraDBSpec Uses

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 Uses

func (in *PerconaXtraDBSpec) DeepCopy() *PerconaXtraDBSpec

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

func (*PerconaXtraDBSpec) DeepCopyInto Uses

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 Uses

func (p *PerconaXtraDBSpec) GetSecrets() []string

func (*PerconaXtraDBSpec) SetDefaults Uses

func (p *PerconaXtraDBSpec) SetDefaults()

type PerconaXtraDBStatus Uses

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 Uses

func (in *PerconaXtraDBStatus) DeepCopy() *PerconaXtraDBStatus

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

func (*PerconaXtraDBStatus) DeepCopyInto Uses

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 Uses

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 Uses

func (p Postgres) AppBindingMeta() appcat.AppBindingMeta

func (Postgres) CustomResourceDefinition Uses

func (p Postgres) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*Postgres) DeepCopy Uses

func (in *Postgres) DeepCopy() *Postgres

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

func (*Postgres) DeepCopyInto Uses

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

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

func (*Postgres) DeepCopyObject Uses

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

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

func (*Postgres) GetMonitoringVendor Uses

func (p *Postgres) GetMonitoringVendor() string

func (Postgres) OffshootLabels Uses

func (p Postgres) OffshootLabels() map[string]string

func (Postgres) OffshootName Uses

func (p Postgres) OffshootName() string

func (Postgres) OffshootSelectors Uses

func (p Postgres) OffshootSelectors() map[string]string

func (Postgres) ReplicasServiceName Uses

func (p Postgres) ReplicasServiceName() string

func (Postgres) ResourceKind Uses

func (p Postgres) ResourceKind() string

func (Postgres) ResourcePlural Uses

func (p Postgres) ResourcePlural() string

func (Postgres) ResourceShortCode Uses

func (p Postgres) ResourceShortCode() string

func (Postgres) ResourceSingular Uses

func (p Postgres) ResourceSingular() string

func (Postgres) ServiceName Uses

func (p Postgres) ServiceName() string

func (*Postgres) SetDefaults Uses

func (p *Postgres) SetDefaults()

func (Postgres) SnapshotSAName Uses

func (p Postgres) SnapshotSAName() string

Snapshot service account name.

func (Postgres) StatsService Uses

func (p Postgres) StatsService() mona.StatsAccessor

func (Postgres) StatsServiceLabels Uses

func (p Postgres) StatsServiceLabels() map[string]string

type PostgresArchiverSpec Uses

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

func (*PostgresArchiverSpec) DeepCopy Uses

func (in *PostgresArchiverSpec) DeepCopy() *PostgresArchiverSpec

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

func (*PostgresArchiverSpec) DeepCopyInto Uses

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 Uses

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 Uses

func (in *PostgresList) DeepCopy() *PostgresList

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

func (*PostgresList) DeepCopyInto Uses

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 Uses

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

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

type PostgresSchemaInfo Uses

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

func (*PostgresSchemaInfo) DeepCopy Uses

func (in *PostgresSchemaInfo) DeepCopy() *PostgresSchemaInfo

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

func (*PostgresSchemaInfo) DeepCopyInto Uses

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 Uses

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 Uses

func (in *PostgresSpec) DeepCopy() *PostgresSpec

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

func (*PostgresSpec) DeepCopyInto Uses

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 Uses

func (e *PostgresSpec) GetSecrets() []string

func (*PostgresSpec) SetDefaults Uses

func (p *PostgresSpec) SetDefaults()

type PostgresStandbyMode Uses

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

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

type PostgresStatus Uses

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 Uses

func (in *PostgresStatus) DeepCopy() *PostgresStatus

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

func (*PostgresStatus) DeepCopyInto Uses

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 Uses

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

    // Deprecated
    DeprecatedAsynchronousStreaming PostgresStreamingMode = "asynchronous"
)

type PostgresSummary Uses

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

func (*PostgresSummary) DeepCopy Uses

func (in *PostgresSummary) DeepCopy() *PostgresSummary

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

func (*PostgresSummary) DeepCopyInto Uses

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 Uses

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 Uses

func (in *PostgresTableInfo) DeepCopy() *PostgresTableInfo

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

func (*PostgresTableInfo) DeepCopyInto Uses

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 Uses

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

func (*PostgresWALSourceSpec) DeepCopy Uses

func (in *PostgresWALSourceSpec) DeepCopy() *PostgresWALSourceSpec

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

func (*PostgresWALSourceSpec) DeepCopyInto Uses

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 Uses

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 Uses

func (in *ProxysqlSpec) DeepCopy() *ProxysqlSpec

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

func (*ProxysqlSpec) DeepCopyInto Uses

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 Uses

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 Uses

func (in *RecoveryTarget) DeepCopy() *RecoveryTarget

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

func (*RecoveryTarget) DeepCopyInto Uses

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 Uses

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 Uses

func (r Redis) AppBindingMeta() appcat.AppBindingMeta

func (Redis) BaseNameForShard Uses

func (r Redis) BaseNameForShard() string

func (Redis) ConfigMapName Uses

func (r Redis) ConfigMapName() string

func (Redis) CustomResourceDefinition Uses

func (r Redis) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*Redis) DeepCopy Uses

func (in *Redis) DeepCopy() *Redis

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

func (*Redis) DeepCopyInto Uses

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

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

func (*Redis) DeepCopyObject Uses

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

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

func (*Redis) GetMonitoringVendor Uses

func (r *Redis) GetMonitoringVendor() string

func (Redis) OffshootLabels Uses

func (r Redis) OffshootLabels() map[string]string

func (Redis) OffshootName Uses

func (r Redis) OffshootName() string

func (Redis) OffshootSelectors Uses

func (r Redis) OffshootSelectors() map[string]string

func (Redis) ResourceKind Uses

func (r Redis) ResourceKind() string

func (Redis) ResourcePlural Uses

func (r Redis) ResourcePlural() string

func (Redis) ResourceShortCode Uses

func (r Redis) ResourceShortCode() string

func (Redis) ResourceSingular Uses

func (r Redis) ResourceSingular() string

func (Redis) ServiceName Uses

func (r Redis) ServiceName() string

func (*Redis) SetDefaults Uses

func (r *Redis) SetDefaults()

func (Redis) StatefulSetNameWithShard Uses

func (r Redis) StatefulSetNameWithShard(i int) string

func (Redis) StatsService Uses

func (r Redis) StatsService() mona.StatsAccessor

func (Redis) StatsServiceLabels Uses

func (r Redis) StatsServiceLabels() map[string]string

type RedisClusterSpec Uses

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 Uses

func (in *RedisClusterSpec) DeepCopy() *RedisClusterSpec

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

func (*RedisClusterSpec) DeepCopyInto Uses

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 Uses

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 Uses

func (in *RedisList) DeepCopy() *RedisList

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

func (*RedisList) DeepCopyInto Uses

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

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

func (*RedisList) DeepCopyObject Uses

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

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

type RedisMode Uses

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

type RedisSpec Uses

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 Uses

func (in *RedisSpec) DeepCopy() *RedisSpec

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

func (*RedisSpec) DeepCopyInto Uses

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

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

func (*RedisSpec) GetSecrets Uses

func (e *RedisSpec) GetSecrets() []string

func (*RedisSpec) SetDefaults Uses

func (r *RedisSpec) SetDefaults()

type RedisStatus Uses

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 Uses

func (in *RedisStatus) DeepCopy() *RedisStatus

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

func (*RedisStatus) DeepCopyInto Uses

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 Uses

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 Uses

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

func (*ScriptSourceSpec) DeepCopy Uses

func (in *ScriptSourceSpec) DeepCopy() *ScriptSourceSpec

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

func (*ScriptSourceSpec) DeepCopyInto Uses

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 Uses

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 Uses

func (s Snapshot) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*Snapshot) DeepCopy Uses

func (in *Snapshot) DeepCopy() *Snapshot

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

func (*Snapshot) DeepCopyInto Uses

func (in *Snapshot) DeepCopyInto(out *Snapshot)

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

func (*Snapshot) DeepCopyObject Uses

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

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

func (Snapshot) Location Uses

func (s Snapshot) Location() (string, error)

func (Snapshot) OSMSecretName Uses

func (s Snapshot) OSMSecretName() string

func (Snapshot) OffshootName Uses

func (s Snapshot) OffshootName() string

func (Snapshot) ResourceKind Uses

func (s Snapshot) ResourceKind() string

func (Snapshot) ResourcePlural Uses

func (s Snapshot) ResourcePlural() string

func (Snapshot) ResourceShortCode Uses

func (s Snapshot) ResourceShortCode() string

func (Snapshot) ResourceSingular Uses

func (s Snapshot) ResourceSingular() string

func (*Snapshot) SetDefaults Uses

func (s *Snapshot) SetDefaults()

type SnapshotList Uses

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 Uses

func (in *SnapshotList) DeepCopy() *SnapshotList

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

func (*SnapshotList) DeepCopyInto Uses

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 Uses

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

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

type SnapshotPhase Uses

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 Uses

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

func (*SnapshotSourceSpec) DeepCopy Uses

func (in *SnapshotSourceSpec) DeepCopy() *SnapshotSourceSpec

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

func (*SnapshotSourceSpec) DeepCopyInto Uses

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 Uses

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 Uses

func (in *SnapshotSpec) DeepCopy() *SnapshotSpec

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

func (*SnapshotSpec) DeepCopyInto Uses

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 Uses

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 Uses

func (in *SnapshotStatus) DeepCopy() *SnapshotStatus

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

func (*SnapshotStatus) DeepCopyInto Uses

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 Uses

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 Uses

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

func (*TLSPolicy) DeepCopy Uses

func (in *TLSPolicy) DeepCopy() *TLSPolicy

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

func (*TLSPolicy) DeepCopyInto Uses

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

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

type TerminationPolicy Uses

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"
)

Package v1alpha1 imports 25 packages (graph) and is imported by 110 packages. Updated 2019-08-18. Refresh now. Tools for package owners.