Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package,register +k8s:openapi-gen=true +k8s:defaulter-gen=TypeMeta +groupName=kubedb.com
nolint:goconst
Index ¶
- Constants
- Variables
- func DefaultArbiter(computeOnly bool) core.ResourceRequirements
- func FerretDBValidateEnvVar(envs []core.EnvVar, forbiddenEnvs []string, resourceType string) error
- func GetDatabasePods(db metav1.Object, stsLister appslister.StatefulSetLister, pods []core.Pod) ([]core.Pod, error)
- func GetDatabasePodsByPetSetLister(db metav1.Object, psLister pslister.PetSetLister, pods []core.Pod) ([]core.Pod, error)
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func GetServiceTemplate(templates []NamedServiceTemplateSpec, alias ServiceAlias) ofst.ServiceTemplateSpec
- func GetSharedBufferSizeForPostgres(resource *resource.Quantity) string
- func HasServiceTemplate(templates []NamedServiceTemplateSpec, alias ServiceAlias) bool
- func Kind(kind string) schema.GroupKind
- func MySQLExporterTLSArg() string
- func MySQLRequireSSLArg() string
- func PgpoolGetMainContainerEnvs(p *Pgpool) []core.EnvVar
- func PgpoolValidateVersion(p *Pgpool) error
- func PgpoolValidateVolumes(p *Pgpool) error
- func PgpoolValidateVolumesMountPaths(podTemplate *ofst.PodTemplateSpec) error
- func Resource(resource string) schema.GroupResource
- func SetDefaultClient(kc client.Client)
- func UsesAcmeIssuer(kc client.Client, ns string, issuerRef core.TypedLocalObjectReference) (bool, error)
- type AddressType
- type Age
- type AllowedConsumers
- type ArbiterSpec
- type Archiver
- type ArchiverRecovery
- type AutoOpsSpec
- type ClickHouse
- func (c *ClickHouse) AppBindingMeta() appcat.AppBindingMeta
- func (c *ClickHouse) ClusterGoverningServiceDNS(petSetName string, replicaNo int) string
- func (c *ClickHouse) ClusterGoverningServiceName(name string) string
- func (c *ClickHouse) ClusterPodLabels(petSetName string, labels map[string]string, extraLabels ...map[string]string) map[string]string
- func (r *ClickHouse) ConfigSecretName() string
- func (r *ClickHouse) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *ClickHouse) DeepCopy() *ClickHouse
- func (in *ClickHouse) DeepCopyInto(out *ClickHouse)
- func (in *ClickHouse) DeepCopyObject() runtime.Object
- func (r *ClickHouse) Default()
- func (c *ClickHouse) DefaultUserCredSecretName(username string) string
- func (c *ClickHouse) Finalizer() string
- func (c *ClickHouse) GetAuthSecretName() string
- func (c *ClickHouse) GetConnectionScheme() string
- func (c *ClickHouse) GoverningServiceName() string
- func (c *ClickHouse) OffshootClusterLabels(petSetName string) map[string]string
- func (c *ClickHouse) OffshootClusterName(value string) string
- func (c *ClickHouse) OffshootClusterPetSetName(clusterName string, shardNo int) string
- func (c *ClickHouse) OffshootClusterSelectors(petSetName string, extraSelectors ...map[string]string) map[string]string
- func (c *ClickHouse) OffshootLabels() map[string]string
- func (c *ClickHouse) OffshootName() string
- func (c *ClickHouse) OffshootSelectors(extraSelectors ...map[string]string) map[string]string
- func (c *ClickHouse) Owner() *meta.OwnerReference
- func (c *ClickHouse) PVCName(alias string) string
- func (c *ClickHouse) PetSetName() string
- func (c *ClickHouse) PodLabels(extraLabels ...map[string]string) map[string]string
- func (c *ClickHouse) PrimaryServiceDNS() string
- func (c *ClickHouse) ResourceFQN() string
- func (c *ClickHouse) ResourceKind() string
- func (c *ClickHouse) ResourcePlural() string
- func (c *ClickHouse) ResourceSingular() string
- func (c *ClickHouse) ServiceName() string
- func (c *ClickHouse) SetDefaults()
- func (c *ClickHouse) SetHealthCheckerDefaults()
- func (r *ClickHouse) ValidateCreate() (admission.Warnings, error)
- func (r *ClickHouse) ValidateCreateOrUpdate() error
- func (r *ClickHouse) ValidateDelete() (admission.Warnings, error)
- func (r *ClickHouse) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- func (r *ClickHouse) ValidateVersion(db *ClickHouse) error
- type ClickHouseKeeperConfig
- type ClickHouseKeeperNode
- type ClickHouseList
- type ClickHouseSpec
- type ClickHouseStatus
- type ClickhouseApp
- type ClusterAuthMode
- type ClusterSpec
- type ClusterTopology
- type ConnectionPoolConfig
- type ConsumerNamespaces
- type CoordinatorSpec
- type Database
- type DatabasePhase
- type DeepStorageSpec
- type Druid
- func (d *Druid) AddDruidExtensionLoadList(druidExtensionLoadList string, extension string) string
- func (d *Druid) AppBindingMeta() appcat.AppBindingMeta
- func (d *Druid) BrokersServiceName() string
- func (d *Druid) ConfigSecretName() string
- func (d *Druid) CoordinatorsServiceName() string
- func (d *Druid) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Druid) DeepCopy() *Druid
- func (in *Druid) DeepCopyInto(out *Druid)
- func (in *Druid) DeepCopyObject() runtime.Object
- func (d *Druid) Default()
- func (d *Druid) DefaultUserCredSecretName(username string) string
- func (d *Druid) DruidNodeContainerPort(nodeRole DruidNodeRoleType) int32
- func (d *Druid) DruidNodeRoleString(nodeRole DruidNodeRoleType) string
- func (d *Druid) DruidNodeRoleStringSingular(nodeRole DruidNodeRoleType) string
- func (r *Druid) Finalizer() string
- func (d *Druid) GetConnectionScheme() string
- func (d *Druid) GetDruidSegmentCacheConfig() string
- func (d *Druid) GetDruidStorageSize(storageSize string) string
- func (d *Druid) GetMetadataStorageConnectURI(appbinding *appcat.AppBinding, metadataStorageType DruidMetadataStorageType) string
- func (d *Druid) GetMetadataStorageType(metadataStorage string) DruidMetadataStorageType
- func (d *Druid) GetNodeSpec(nodeType DruidNodeRoleType) (*DruidNode, *DruidDataNode)
- func (d *Druid) GetPersistentSecrets() []string
- func (d *Druid) GetZKServiceHost(appbinding *appcat.AppBinding) string
- func (d *Druid) GoverningServiceName() string
- func (d *Druid) OffShootLabels() map[string]string
- func (d *Druid) OffShootName() string
- func (d *Druid) OffShootSelectors(extraSelectors ...map[string]string) map[string]string
- func (d Druid) OffshootLabels() map[string]string
- func (d *Druid) OffshootSelectors(extraSelectors ...map[string]string) map[string]string
- func (d *Druid) OverlordsServiceName() string
- func (d *Druid) Owner() *meta.OwnerReference
- func (d *Druid) PVCName(alias string) string
- func (d *Druid) PetSetName(nodeRole DruidNodeRoleType) string
- func (d *Druid) PodControllerLabels(nodeType DruidNodeRoleType, extraLabels ...map[string]string) map[string]string
- func (d *Druid) PodLabels(nodeType DruidNodeRoleType, extraLabels ...map[string]string) map[string]string
- func (d *Druid) ReplicasAreReady(lister pslister.PetSetLister) (bool, string, error)
- func (d *Druid) ResourceFQN() string
- func (d *Druid) ResourceKind() string
- func (d *Druid) ResourcePlural() string
- func (d *Druid) ResourceSingular() string
- func (d *Druid) RoutersServiceName() string
- func (d *Druid) ServiceAccountName() string
- func (d *Druid) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (d *Druid) ServiceName() string
- func (d *Druid) SetDefaults()
- func (d *Druid) SetHealthCheckerDefaults()
- func (d *Druid) StatsService() mona.StatsAccessor
- func (d *Druid) StatsServiceLabels() map[string]string
- func (d *Druid) ValidateCreate() (admission.Warnings, error)
- func (d *Druid) ValidateDelete() (admission.Warnings, error)
- func (d *Druid) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type DruidApp
- type DruidClusterTopology
- type DruidDataNode
- type DruidDeepStorageType
- type DruidList
- type DruidMetadataStorageType
- type DruidNode
- type DruidNodeRoleType
- type DruidPhase
- type DruidSpec
- type DruidStatsService
- func (in *DruidStatsService) DeepCopy() *DruidStatsService
- func (in *DruidStatsService) DeepCopyInto(out *DruidStatsService)
- func (ks DruidStatsService) GetNamespace() string
- func (ks DruidStatsService) Path() string
- func (ks DruidStatsService) Scheme() string
- func (ks DruidStatsService) ServiceMonitorAdditionalLabels() map[string]string
- func (ks DruidStatsService) ServiceMonitorName() string
- func (ks DruidStatsService) ServiceName() string
- func (ks DruidStatsService) TLSConfig() *promapi.TLSConfig
- type DruidStatus
- type Elasticsearch
- func (e Elasticsearch) AppBindingMeta() appcat.AppBindingMeta
- func (e *Elasticsearch) AsOwner() *metav1.OwnerReference
- func (e *Elasticsearch) CertSecretVolumeMountPath(configDir string, alias ElasticsearchCertificateAlias) string
- func (e *Elasticsearch) CertSecretVolumeName(alias ElasticsearchCertificateAlias) string
- func (e *Elasticsearch) CertificateName(alias ElasticsearchCertificateAlias) string
- func (e *Elasticsearch) ClientCertificateCN(alias ElasticsearchCertificateAlias) string
- func (e *Elasticsearch) CombinedStatefulSetName() string
- func (e *Elasticsearch) ConfigSecretName() string
- func (e *Elasticsearch) CoordinatingStatefulSetName() string
- func (_ Elasticsearch) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (e *Elasticsearch) DataColdStatefulSetName() string
- func (e *Elasticsearch) DataContentStatefulSetName() string
- func (e *Elasticsearch) DataFrozenStatefulSetName() string
- func (e *Elasticsearch) DataHotStatefulSetName() string
- func (e Elasticsearch) DataSelectors() map[string]string
- func (e *Elasticsearch) DataStatefulSetName() string
- func (e *Elasticsearch) DataWarmStatefulSetName() string
- func (in *Elasticsearch) DeepCopy() *Elasticsearch
- func (in *Elasticsearch) DeepCopyInto(out *Elasticsearch)
- func (in *Elasticsearch) DeepCopyObject() runtime.Object
- func (e *Elasticsearch) DefaultUserCredSecretName(userName string) string
- func (e Elasticsearch) GetAuthSecretName() string
- func (e *Elasticsearch) GetCertSecretName(alias ElasticsearchCertificateAlias) string
- func (e *Elasticsearch) GetConnectionScheme() string
- func (e *Elasticsearch) GetConnectionURL() string
- func (e *Elasticsearch) GetMatchExpressions() []metav1.LabelSelectorRequirement
- func (e *Elasticsearch) GetPersistentSecrets() []string
- func (e *Elasticsearch) GetUserCredSecretName(username string) (string, error)
- func (e Elasticsearch) GoverningServiceName() string
- func (e Elasticsearch) IngestSelectors() map[string]string
- func (e *Elasticsearch) IngestStatefulSetName() string
- func (e *Elasticsearch) InitialMasterNodes() []string
- func (e *Elasticsearch) MLStatefulSetName() string
- func (e *Elasticsearch) MasterDiscoveryServiceName() string
- func (e Elasticsearch) MasterSelectors() map[string]string
- func (e *Elasticsearch) MasterStatefulSetName() string
- func (e Elasticsearch) NodeRoleSpecificLabelKey(roleType ElasticsearchNodeRoleType) string
- func (e Elasticsearch) NodeRoleSpecificSelectors(roleType ElasticsearchNodeRoleType) map[string]string
- func (e Elasticsearch) OffshootLabels() map[string]string
- func (e Elasticsearch) OffshootName() string
- func (e Elasticsearch) OffshootSelectors(extraSelectors ...map[string]string) map[string]string
- func (e Elasticsearch) PodControllerLabels(extraLabels ...map[string]string) map[string]string
- func (e Elasticsearch) PodLabels(extraLabels ...map[string]string) map[string]string
- func (e *Elasticsearch) ReplicasAreReady(lister appslister.StatefulSetLister) (bool, string, error)
- func (e Elasticsearch) ResourceFQN() string
- func (e Elasticsearch) ResourceKind() string
- func (e Elasticsearch) ResourcePlural() string
- func (e Elasticsearch) ResourceShortCode() string
- func (e Elasticsearch) ResourceSingular() string
- func (e Elasticsearch) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (e Elasticsearch) ServiceName() string
- func (e *Elasticsearch) SetDefaults(esVersion *catalog.ElasticsearchVersion, topology *core_util.Topology)
- func (e *Elasticsearch) SetHealthCheckerDefaults()
- func (e *Elasticsearch) SetMetricsExporterDefaults(esVersion *catalog.ElasticsearchVersion)
- func (e *Elasticsearch) SetTLSDefaults(esVersion *catalog.ElasticsearchVersion)
- func (e Elasticsearch) StatsService() mona.StatsAccessor
- func (e Elasticsearch) StatsServiceLabels() map[string]string
- func (e *Elasticsearch) TransformStatefulSetName() string
- type ElasticsearchCertificateAlias
- type ElasticsearchClusterTopology
- type ElasticsearchInternalUser
- type ElasticsearchList
- type ElasticsearchNode
- type ElasticsearchNodeRoleType
- type ElasticsearchRoleMapSpec
- type ElasticsearchSpec
- type ElasticsearchStatus
- type ElasticsearchUserSpec
- type ErrantTransactionRecoveryPolicy
- type Etcd
- func (r Etcd) AppBindingMeta() appcat.AppBindingMeta
- func (e *Etcd) AsOwner() *metav1.OwnerReference
- func (e Etcd) ClientServiceName() string
- func (_ Etcd) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Etcd) DeepCopy() *Etcd
- func (in *Etcd) DeepCopyInto(out *Etcd)
- func (in *Etcd) DeepCopyObject() runtime.Object
- func (e Etcd) GetAuthSecretName() string
- func (e Etcd) OffshootLabels() map[string]string
- func (e Etcd) OffshootName() string
- func (e Etcd) OffshootSelectors() map[string]string
- func (e Etcd) PeerServiceName() string
- func (e Etcd) PodControllerLabels() map[string]string
- func (e Etcd) PodLabels() map[string]string
- func (e *Etcd) ReplicasAreReady(lister appslister.StatefulSetLister) (bool, string, error)
- func (e Etcd) ResourceFQN() string
- func (e Etcd) ResourceKind() string
- func (e Etcd) ResourcePlural() string
- func (e Etcd) ResourceShortCode() string
- func (e Etcd) ResourceSingular() string
- func (e Etcd) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (e *Etcd) SetDefaults()
- func (e Etcd) StatsService() mona.StatsAccessor
- func (e Etcd) StatsServiceLabels() map[string]string
- type EtcdList
- type EtcdSpec
- type EtcdStatus
- type FerretDB
- func (f *FerretDB) AppBindingMeta() appcat.AppBindingMeta
- func (f *FerretDB) AsOwner() *meta.OwnerReference
- func (f *FerretDB) CertificateName(alias FerretDBCertificateAlias) string
- func (f *FerretDB) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *FerretDB) DeepCopy() *FerretDB
- func (in *FerretDB) DeepCopyInto(out *FerretDB)
- func (in *FerretDB) DeepCopyObject() runtime.Object
- func (f *FerretDB) Default()
- func (f *FerretDB) GetAuthSecretName() string
- func (f *FerretDB) GetCertSecretName(alias FerretDBCertificateAlias) string
- func (f *FerretDB) OffshootLabels() map[string]string
- func (f *FerretDB) OffshootName() string
- func (f *FerretDB) OffshootSelectors() map[string]string
- func (r *FerretDB) PetSetName() string
- func (f *FerretDB) PgBackendName() string
- func (f *FerretDB) PodControllerLabels(podControllerLabels map[string]string, extraLabels ...map[string]string) map[string]string
- func (f *FerretDB) PodLabels(podTemplateLabels map[string]string, extraLabels ...map[string]string) map[string]string
- func (f *FerretDB) ReplicasAreReady(lister pslister.PetSetLister) (bool, string, error)
- func (f *FerretDB) ResourceFQN() string
- func (f *FerretDB) ResourceKind() string
- func (f *FerretDB) ResourcePlural() string
- func (f *FerretDB) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (f *FerretDB) ServiceName() string
- func (f *FerretDB) SetDefaults()
- func (f *FerretDB) SetHealthCheckerDefaults()
- func (f *FerretDB) SetTLSDefaults()
- func (f *FerretDB) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (f *FerretDB) StatsService() mona.StatsAccessor
- func (f *FerretDB) StatsServiceLabels() map[string]string
- func (f *FerretDB) ValidateCreate() (admission.Warnings, error)
- func (f *FerretDB) ValidateCreateOrUpdate() field.ErrorList
- func (f *FerretDB) ValidateDelete() (admission.Warnings, error)
- func (f *FerretDB) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type FerretDBApp
- type FerretDBBackend
- type FerretDBCertificateAlias
- type FerretDBList
- type FerretDBSpec
- type FerretDBStatsService
- func (in *FerretDBStatsService) DeepCopy() *FerretDBStatsService
- func (in *FerretDBStatsService) DeepCopyInto(out *FerretDBStatsService)
- func (fs FerretDBStatsService) Path() string
- func (fs FerretDBStatsService) Scheme() string
- func (fs FerretDBStatsService) ServiceMonitorAdditionalLabels() map[string]string
- func (fs FerretDBStatsService) ServiceMonitorName() string
- func (fs FerretDBStatsService) ServiceName() string
- func (fs FerretDBStatsService) TLSConfig() *v1.TLSConfig
- type FerretDBStatus
- type FromNamespaces
- type GaleraWsrepSSTMethod
- type Gateway
- type GitRepo
- type InitSpec
- type InternalAuthentication
- type Kafka
- func (k *Kafka) AppBindingMeta() appcat.AppBindingMeta
- func (k *Kafka) AsOwner() *meta.OwnerReference
- func (k *Kafka) BrokerNodeSelectors() map[string]string
- func (k *Kafka) BrokerServiceLabels() map[string]string
- func (k *Kafka) BrokerStatefulSetName() string
- func (k *Kafka) CertSecretVolumeMountPath(configDir string, cert string) string
- func (k *Kafka) CertSecretVolumeName(alias KafkaCertificateAlias) string
- func (k *Kafka) CertificateName(alias KafkaCertificateAlias) string
- func (k *Kafka) ClientCertificateCN(alias KafkaCertificateAlias) string
- func (k *Kafka) CombinedStatefulSetName() string
- func (k *Kafka) ConfigSecretName(role KafkaNodeRoleType) string
- func (k *Kafka) ControllerNodeSelectors() map[string]string
- func (k *Kafka) ControllerServiceLabels() map[string]string
- func (k *Kafka) ControllerStatefulSetName() string
- func (k *Kafka) CruiseControlConfigSecretName() string
- func (k *Kafka) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Kafka) DeepCopy() *Kafka
- func (in *Kafka) DeepCopyInto(out *Kafka)
- func (in *Kafka) DeepCopyObject() runtime.Object
- func (k *Kafka) Default()
- func (k *Kafka) DefaultKeystoreCredSecretName() string
- func (k *Kafka) DefaultUserCredSecretName(username string) string
- func (k *Kafka) GetCertSecretName(alias KafkaCertificateAlias) string
- func (k *Kafka) GetConnectionScheme() string
- func (k *Kafka) GetCruiseControlClientID() string
- func (k *Kafka) GetPersistentSecrets() []string
- func (k *Kafka) GoverningServiceName() string
- func (k *Kafka) GoverningServiceNameCruiseControl() string
- func (k *Kafka) NodeRoleSpecificLabelKey(role KafkaNodeRoleType) string
- func (k *Kafka) OffshootLabels() map[string]string
- func (k *Kafka) OffshootName() string
- func (k *Kafka) OffshootSelectors(extraSelectors ...map[string]string) map[string]string
- func (k *Kafka) Owner() *meta.OwnerReference
- func (k *Kafka) PVCName(alias string) string
- func (k *Kafka) PodControllerLabels(extraLabels ...map[string]string) map[string]string
- func (k *Kafka) PodLabels(extraLabels ...map[string]string) map[string]string
- func (k *Kafka) ReplicasAreReady(lister appslister.StatefulSetLister) (bool, string, error)
- func (k *Kafka) ResourceFQN() string
- func (k *Kafka) ResourceKind() string
- func (k *Kafka) ResourcePlural() string
- func (k *Kafka) ResourceShortCode() string
- func (k *Kafka) ResourceSingular() string
- func (k *Kafka) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (k *Kafka) ServiceName() string
- func (k *Kafka) SetDefaults()
- func (k *Kafka) SetHealthCheckerDefaults()
- func (k *Kafka) SetTLSDefaults()
- func (k *Kafka) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (k *Kafka) StandbyServiceName() string
- func (k *Kafka) StatefulSetName() string
- func (k *Kafka) StatsService() mona.StatsAccessor
- func (k *Kafka) StatsServiceLabels() map[string]string
- func (k *Kafka) ValidateCreate() (admission.Warnings, error)
- func (k *Kafka) ValidateCreateOrUpdate() error
- func (k *Kafka) ValidateDelete() (admission.Warnings, error)
- func (k *Kafka) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type KafkaApp
- type KafkaBrokerCapacity
- type KafkaCertificateAlias
- type KafkaClusterTopology
- type KafkaCruiseControl
- type KafkaList
- type KafkaListenerType
- type KafkaNode
- type KafkaNodeRoleType
- type KafkaPhase
- type KafkaSpec
- type KafkaStatus
- type KernelSettings
- type LoadBalanceMode
- type MSSQLServer
- func (m *MSSQLServer) AppBindingMeta() appcat.AppBindingMeta
- func (m *MSSQLServer) AvailabilityGroupName() string
- func (m *MSSQLServer) CAProviderClassName() string
- func (m *MSSQLServer) CertificateName(alias MSSQLServerCertificateAlias) string
- func (m *MSSQLServer) ConfigSecretName() string
- func (m *MSSQLServer) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (m *MSSQLServer) DbmLoginSecretName() string
- func (in *MSSQLServer) DeepCopy() *MSSQLServer
- func (in *MSSQLServer) DeepCopyInto(out *MSSQLServer)
- func (in *MSSQLServer) DeepCopyObject() runtime.Object
- func (m *MSSQLServer) Default()
- func (m *MSSQLServer) DefaultUserCredSecretName(username string) string
- func (m *MSSQLServer) EndpointCertSecretName() string
- func (m MSSQLServer) GetAuthSecretName() string
- func (m *MSSQLServer) GetCertSecretName(alias MSSQLServerCertificateAlias) string
- func (m *MSSQLServer) GetNameSpacedName() string
- func (m *MSSQLServer) GetPersistentSecrets() []string
- func (m *MSSQLServer) GoverningServiceName() string
- func (m *MSSQLServer) IsAvailabilityGroup() bool
- func (m *MSSQLServer) IsStandalone() bool
- func (m *MSSQLServer) MasterKeySecretName() string
- func (m *MSSQLServer) OffshootLabels() map[string]string
- func (m *MSSQLServer) OffshootName() string
- func (m *MSSQLServer) OffshootSelectors(extraSelectors ...map[string]string) map[string]string
- func (m *MSSQLServer) Owner() *meta.OwnerReference
- func (m *MSSQLServer) PVCName(alias string) string
- func (m *MSSQLServer) PetSetName() string
- func (m *MSSQLServer) PodControllerLabel(podTemplate *ofst.PodTemplateSpec) map[string]string
- func (m *MSSQLServer) PodControllerLabels(extraLabels ...map[string]string) map[string]string
- func (m *MSSQLServer) PodLabel(podTemplate *ofst.PodTemplateSpec) map[string]string
- func (m *MSSQLServer) PodLabels(extraLabels ...map[string]string) map[string]string
- func (m *MSSQLServer) PrimaryServiceDNS() string
- func (m *MSSQLServer) ReplicasAreReady(lister pslister.PetSetLister) (bool, string, error)
- func (m *MSSQLServer) ResourceFQN() string
- func (m *MSSQLServer) ResourceKind() string
- func (m *MSSQLServer) ResourcePlural() string
- func (m *MSSQLServer) SecondaryServiceName() string
- func (m *MSSQLServer) SecretName(alias MSSQLServerCertificateAlias) string
- func (m *MSSQLServer) ServiceAccountName() string
- func (m *MSSQLServer) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (m *MSSQLServer) ServiceName() string
- func (m *MSSQLServer) SetDefaults()
- func (m MSSQLServer) SetHealthCheckerDefaults()
- func (m *MSSQLServer) SetTLSDefaults()
- func (m *MSSQLServer) SetTLSDefaultsForInternalAuth()
- func (r *MSSQLServer) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (m *MSSQLServer) ValidateCreate() (admission.Warnings, error)
- func (m *MSSQLServer) ValidateCreateOrUpdate() field.ErrorList
- func (m *MSSQLServer) ValidateDelete() (admission.Warnings, error)
- func (m *MSSQLServer) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type MSSQLServerApp
- type MSSQLServerAvailabilityGroupSpec
- type MSSQLServerCertificateAlias
- type MSSQLServerLeaderElectionConfig
- type MSSQLServerList
- type MSSQLServerMode
- type MSSQLServerSpec
- type MSSQLServerStatus
- type MSSQLServerTopology
- type MariaDB
- func (m MariaDB) AppBindingMeta() appcat.AppBindingMeta
- func (m *MariaDB) AsOwner() *metav1.OwnerReference
- func (m *MariaDB) CertFilePath(certAlias MariaDBCertificateAlias, certFileName string) string
- func (m *MariaDB) CertMountPath(alias MariaDBCertificateAlias) string
- func (m *MariaDB) CertificateName(alias MariaDBCertificateAlias) string
- func (m MariaDB) ClusterName() string
- func (_ MariaDB) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *MariaDB) DeepCopy() *MariaDB
- func (in *MariaDB) DeepCopyInto(out *MariaDB)
- func (in *MariaDB) DeepCopyObject() runtime.Object
- func (m MariaDB) GetAuthSecretName() string
- func (m *MariaDB) GetCertSecretName(alias MariaDBCertificateAlias) string
- func (m MariaDB) GoverningServiceName() string
- func (m *MariaDB) InlineConfigSecretName() string
- func (m MariaDB) IsCluster() bool
- func (m MariaDB) OffshootLabels() map[string]string
- func (m MariaDB) OffshootName() string
- func (m MariaDB) OffshootSelectors() map[string]string
- func (m MariaDB) PeerName(idx int) string
- func (m MariaDB) PodControllerLabels() map[string]string
- func (m MariaDB) PodLabels() map[string]string
- func (m MariaDB) PrimaryServiceDNS() string
- func (m *MariaDB) ReplicasAreReady(lister appslister.StatefulSetLister) (bool, string, error)
- func (m MariaDB) ResourceFQN() string
- func (m MariaDB) ResourceKind() string
- func (m MariaDB) ResourcePlural() string
- func (m MariaDB) ResourceShortCode() string
- func (m MariaDB) ResourceSingular() string
- func (m MariaDB) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (m MariaDB) ServiceName() string
- func (m *MariaDB) SetDefaults(mdVersion *v1alpha1.MariaDBVersion, topology *core_util.Topology)
- func (m *MariaDB) SetHealthCheckerDefaults()
- func (m *MariaDB) SetTLSDefaults()
- func (m MariaDB) StatsService() mona.StatsAccessor
- func (m MariaDB) StatsServiceLabels() map[string]string
- type MariaDBCertificateAlias
- type MariaDBList
- type MariaDBSpec
- type MariaDBStatus
- type MemberSecret
- type Memcached
- func (m Memcached) Address() string
- func (m Memcached) AppBindingMeta() appcat.AppBindingMeta
- func (m *Memcached) AsOwner() *metav1.OwnerReference
- func (m Memcached) ConfigSecretName() string
- func (m Memcached) CustomConfigSecretName() string
- func (_ Memcached) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Memcached) DeepCopy() *Memcached
- func (in *Memcached) DeepCopyInto(out *Memcached)
- func (in *Memcached) DeepCopyObject() runtime.Object
- func (m Memcached) GoverningServiceName() string
- func (m Memcached) OffshootLabels() map[string]string
- func (m Memcached) OffshootName() string
- func (m Memcached) OffshootSelectors() map[string]string
- func (m Memcached) PodControllerLabels() map[string]string
- func (m Memcached) PodLabels() map[string]string
- func (m *Memcached) ReplicasAreReady(lister appslister.StatefulSetLister) (bool, string, error)
- func (m Memcached) ResourceFQN() string
- func (m Memcached) ResourceKind() string
- func (m Memcached) ResourcePlural() string
- func (m Memcached) ResourceShortCode() string
- func (m Memcached) ResourceSingular() string
- func (m Memcached) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (m Memcached) ServiceName() string
- func (m *Memcached) SetDefaults(mcVersion *catalog.MemcachedVersion)
- func (m *Memcached) SetHealthCheckerDefaults()
- func (m Memcached) StatsService() mona.StatsAccessor
- func (m Memcached) StatsServiceLabels() map[string]string
- type MemcachedCertificateAlias
- type MemcachedList
- type MemcachedSpec
- type MemcachedStatus
- type MetadataStorage
- type MongoArbiterNode
- type MongoDB
- func (m MongoDB) AppBindingMeta() appcat.AppBindingMeta
- func (m MongoDB) ArbiterLabels() map[string]string
- func (m MongoDB) ArbiterNodeName() string
- func (m MongoDB) ArbiterSelectors() map[string]string
- func (m MongoDB) ArbiterShardLabels(nodeNum int32) map[string]string
- func (m MongoDB) ArbiterShardNodeName(nodeNum int32) string
- func (m MongoDB) ArbiterShardSelectors(nodeNum int32) map[string]string
- func (m *MongoDB) AsOwner() *metav1.OwnerReference
- func (m *MongoDB) CertificateName(alias MongoDBCertificateAlias, stsName string) string
- func (m *MongoDB) ConfigSecretName(nodeType string) string
- func (m MongoDB) ConfigSvrDSN() string
- func (m MongoDB) ConfigSvrHosts() []string
- func (m MongoDB) ConfigSvrLabels() map[string]string
- func (m MongoDB) ConfigSvrNodeName() string
- func (m MongoDB) ConfigSvrRepSetName() string
- func (m MongoDB) ConfigSvrSelectors() map[string]string
- func (_ MongoDB) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *MongoDB) DeepCopy() *MongoDB
- func (in *MongoDB) DeepCopyInto(out *MongoDB)
- func (in *MongoDB) DeepCopyObject() runtime.Object
- func (m MongoDB) GetAuthSecretName() string
- func (m *MongoDB) GetCertSecretName(alias MongoDBCertificateAlias, stsName string) string
- func (m MongoDB) GetCorrespondingArbiterStsName(replStsName string) string
- func (m MongoDB) GetCorrespondingHiddenStsName(replStsName string) string
- func (m MongoDB) GetCorrespondingReplicaStsName(arbStsName string) string
- func (m MongoDB) GetCorrespondingReplicaStsNameFromHidden(hiddenStsName string) string
- func (m *MongoDB) GetDefaultLivenessProbeSpec(mgVersion *v1alpha1.MongoDBVersion, isArbiter ...bool) *core.Probe
- func (m *MongoDB) GetDefaultReadinessProbeSpec(mgVersion *v1alpha1.MongoDBVersion, isArbiter ...bool) *core.Probe
- func (m *MongoDB) GetEntryCommand(mgVersion *v1alpha1.MongoDBVersion) string
- func (m MongoDB) GetShardNumber(shardName string) int
- func (m *MongoDB) GetURL(stsName string) string
- func (m MongoDB) GoverningServiceName(name string) string
- func (m MongoDB) HiddenNodeLabels() map[string]string
- func (m MongoDB) HiddenNodeName() string
- func (m MongoDB) HiddenNodeSelectors() map[string]string
- func (m MongoDB) HiddenNodeShardLabels(nodeNum int32) map[string]string
- func (m MongoDB) HiddenNodeShardSelectors(nodeNum int32) map[string]string
- func (m MongoDB) HiddenShardNodeName(nodeNum int32) string
- func (m MongoDB) HostAddress() string
- func (m MongoDB) HostAddressOnlyCoreMembers() string
- func (m MongoDB) Hosts() []string
- func (m MongoDB) HostsOnlyCoreMembers() []string
- func (m *MongoDB) KeyFileRequired() bool
- func (m MongoDB) MongosHosts() []string
- func (m MongoDB) MongosLabels() map[string]string
- func (m MongoDB) MongosNodeName() string
- func (m MongoDB) MongosSelectors() map[string]string
- func (m MongoDB) OffshootLabels() map[string]string
- func (m MongoDB) OffshootLabelsWhenOthers() map[string]string
- func (m MongoDB) OffshootName() string
- func (m MongoDB) OffshootSelectors() map[string]string
- func (m MongoDB) OffshootSelectorsWhenOthers() map[string]string
- func (m MongoDB) PodControllerLabels(podControllerLabels map[string]string, extraLabels ...map[string]string) map[string]string
- func (m MongoDB) PodLabels(podTemplateLabels map[string]string, extraLabels ...map[string]string) map[string]string
- func (m MongoDB) RepSetName() string
- func (m *MongoDB) ReplicasAreReady(lister appslister.StatefulSetLister) (bool, string, error)
- func (m MongoDB) ResourceFQN() string
- func (m MongoDB) ResourceKind() string
- func (m MongoDB) ResourcePlural() string
- func (m MongoDB) ResourceShortCode() string
- func (m MongoDB) ResourceSingular() string
- func (m MongoDB) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (m MongoDB) ServiceName() string
- func (m *MongoDB) SetDefaults(mgVersion *v1alpha1.MongoDBVersion, topology *core_util.Topology)
- func (m *MongoDB) SetHealthCheckerDefaults()
- func (m *MongoDB) SetTLSDefaults()
- func (m MongoDB) ShardCommonNodeName() string
- func (m MongoDB) ShardDSN(nodeNum int32) string
- func (m MongoDB) ShardDSNOnlyCoreMembers(nodeNum int32) string
- func (m MongoDB) ShardHosts(nodeNum int32) []string
- func (m MongoDB) ShardHostsOnlyCoreMembers(nodeNum int32) []string
- func (m MongoDB) ShardLabels(nodeNum int32) map[string]string
- func (m MongoDB) ShardLabelsWhenOthers(nodeNum int32) map[string]string
- func (m MongoDB) ShardNodeName(nodeNum int32) string
- func (m MongoDB) ShardNodeTemplate() string
- func (m MongoDB) ShardRepSetName(nodeNum int32) string
- func (m MongoDB) ShardSelectors(nodeNum int32) map[string]string
- func (m MongoDB) ShardSelectorsWhenOthers(nodeNum int32) map[string]string
- func (m MongoDB) StatsService() mona.StatsAccessor
- func (m MongoDB) StatsServiceLabels() map[string]string
- type MongoDBCertificateAlias
- type MongoDBConfigNode
- type MongoDBList
- type MongoDBMongosNode
- type MongoDBNode
- type MongoDBReplicaSet
- type MongoDBShardNode
- type MongoDBShardingTopology
- type MongoDBSpec
- type MongoDBStatus
- type MongoHiddenNode
- type MongoShellScriptName
- type MySQL
- func (m MySQL) AppBindingMeta() appcat.AppBindingMeta
- func (m *MySQL) AsOwner() *metav1.OwnerReference
- func (m *MySQL) CertificateName(alias MySQLCertificateAlias) string
- func (_ MySQL) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *MySQL) DeepCopy() *MySQL
- func (in *MySQL) DeepCopyInto(out *MySQL)
- func (in *MySQL) DeepCopyObject() runtime.Object
- func (m MySQL) GetAuthSecretName() string
- func (m *MySQL) GetCertSecretName(alias MySQLCertificateAlias) string
- func (m MySQL) GetNameSpacedName() string
- func (m *MySQL) GetRouterName() string
- func (m MySQL) GoverningServiceName() string
- func (m MySQL) Hosts() []string
- func (m *MySQL) IsInnoDBCluster() bool
- func (m *MySQL) IsRemoteReplica() bool
- func (m *MySQL) IsSemiSync() bool
- func (m *MySQL) MySQLTLSArgs() []string
- func (m MySQL) OffshootLabels() map[string]string
- func (m MySQL) OffshootName() string
- func (m MySQL) OffshootSelectors() map[string]string
- func (m MySQL) PeerName(idx int) string
- func (m MySQL) PodControllerLabels() map[string]string
- func (m MySQL) PodLabels() map[string]string
- func (m MySQL) PrimaryServiceDNS() string
- func (m *MySQL) ReplicasAreReady(lister appslister.StatefulSetLister) (bool, string, error)
- func (m MySQL) ResourceFQN() string
- func (m MySQL) ResourceKind() string
- func (m MySQL) ResourcePlural() string
- func (m MySQL) ResourceShortCode() string
- func (m MySQL) ResourceSingular() string
- func (m MySQL) RouterOffshootLabels() map[string]string
- func (m MySQL) RouterOffshootSelectors() map[string]string
- func (m MySQL) RouterPodControllerLabels() map[string]string
- func (m MySQL) RouterPodLabels() map[string]string
- func (m MySQL) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (m MySQL) ServiceName() string
- func (m *MySQL) SetDefaults(myVersion *v1alpha1.MySQLVersion, topology *core_util.Topology)
- func (m *MySQL) SetHealthCheckerDefaults()
- func (m *MySQL) SetTLSDefaults()
- func (m MySQL) StandbyServiceDNS() string
- func (m MySQL) StandbyServiceName() string
- func (m MySQL) StatsService() mona.StatsAccessor
- func (m MySQL) StatsServiceLabels() map[string]string
- func (m *MySQL) UsesGroupReplication() bool
- type MySQLCertificateAlias
- type MySQLGroupMode
- type MySQLGroupSpec
- type MySQLInnoDBClusterSpec
- type MySQLList
- type MySQLMode
- type MySQLRouterSpec
- type MySQLSpec
- type MySQLStatus
- type MySQLTopology
- type MySQLUser
- type NamedServiceStatus
- type NamedServiceTemplateSpec
- type NamedURL
- type PerconaXtraDB
- func (p PerconaXtraDB) AppBindingMeta() appcat.AppBindingMeta
- func (p *PerconaXtraDB) AsOwner() *metav1.OwnerReference
- func (p *PerconaXtraDB) CertFilePath(certAlias PerconaXtraDBCertificateAlias, certFileName string) string
- func (p *PerconaXtraDB) CertMountPath(alias PerconaXtraDBCertificateAlias) string
- func (p *PerconaXtraDB) CertificateName(alias PerconaXtraDBCertificateAlias) string
- func (p PerconaXtraDB) ClusterName() string
- func (_ PerconaXtraDB) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *PerconaXtraDB) DeepCopy() *PerconaXtraDB
- func (in *PerconaXtraDB) DeepCopyInto(out *PerconaXtraDB)
- func (in *PerconaXtraDB) DeepCopyObject() runtime.Object
- func (p PerconaXtraDB) GetAuthSecretName() string
- func (p *PerconaXtraDB) GetCertSecretName(alias PerconaXtraDBCertificateAlias) string
- func (p PerconaXtraDB) GetMonitorSecretName() string
- func (p PerconaXtraDB) GetReplicationSecretName() string
- func (p PerconaXtraDB) GoverningServiceName() string
- func (p PerconaXtraDB) OffshootLabels() map[string]string
- func (p PerconaXtraDB) OffshootName() string
- func (p PerconaXtraDB) OffshootSelectors() map[string]string
- func (p PerconaXtraDB) PeerName(idx int) string
- func (p PerconaXtraDB) PodControllerLabels() map[string]string
- func (p PerconaXtraDB) PodLabels() map[string]string
- func (p PerconaXtraDB) PrimaryServiceDNS() string
- func (p *PerconaXtraDB) ReplicasAreReady(lister appslister.StatefulSetLister) (bool, string, error)
- func (p PerconaXtraDB) ResourceFQN() string
- func (p PerconaXtraDB) ResourceKind() string
- func (p PerconaXtraDB) ResourcePlural() string
- func (p PerconaXtraDB) ResourceShortCode() string
- func (p PerconaXtraDB) ResourceSingular() string
- func (p PerconaXtraDB) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (p PerconaXtraDB) ServiceName() string
- func (p *PerconaXtraDB) SetDefaults(pVersion *v1alpha1.PerconaXtraDBVersion, topology *core_util.Topology)
- func (p *PerconaXtraDB) SetHealthCheckerDefaults()
- func (p *PerconaXtraDB) SetTLSDefaults()
- func (p PerconaXtraDB) StatsService() mona.StatsAccessor
- func (p PerconaXtraDB) StatsServiceLabels() map[string]string
- type PerconaXtraDBCertificateAlias
- type PerconaXtraDBList
- type PerconaXtraDBSpec
- type PerconaXtraDBStatus
- type PgBouncer
- func (p PgBouncer) AppBindingMeta() appcat.AppBindingMeta
- func (p *PgBouncer) AsOwner() *metav1.OwnerReference
- func (p *PgBouncer) CertificateName(alias PgBouncerCertificateAlias) string
- func (p PgBouncer) ConfigSecretName() string
- func (p PgBouncer) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *PgBouncer) DeepCopy() *PgBouncer
- func (in *PgBouncer) DeepCopyInto(out *PgBouncer)
- func (in *PgBouncer) DeepCopyObject() runtime.Object
- func (p PgBouncer) GetAuthSecretName() string
- func (p PgBouncer) GetBackendSecretName() string
- func (p *PgBouncer) GetCertSecretName(alias PgBouncerCertificateAlias) string
- func (p *PgBouncer) GetPersistentSecrets() []string
- func (p PgBouncer) GoverningServiceName() string
- func (p PgBouncer) OffshootLabels() map[string]string
- func (p PgBouncer) OffshootName() string
- func (p PgBouncer) OffshootSelectors() map[string]string
- func (p PgBouncer) PodControllerLabels() map[string]string
- func (p PgBouncer) PodLabels(backendSecretRV string) map[string]string
- func (p *PgBouncer) ReplicasAreReady(lister appslister.StatefulSetLister) (bool, string, error)
- func (p PgBouncer) ReplicasServiceName() string
- func (p PgBouncer) ResourceFQN() string
- func (p PgBouncer) ResourceKind() string
- func (p PgBouncer) ResourcePlural() string
- func (p PgBouncer) ResourceShortCode() string
- func (p PgBouncer) ResourceSingular() string
- func (p PgBouncer) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (p PgBouncer) ServiceName() string
- func (p *PgBouncer) SetDefaults(pgBouncerVersion *catalog.PgBouncerVersion, usesAcme bool)
- func (p *PgBouncer) SetHealthCheckerDefaults()
- func (p *PgBouncer) SetSecurityContext(pgBouncerVersion *catalog.PgBouncerVersion)
- func (p *PgBouncer) SetTLSDefaults(usesAcme bool)
- func (p PgBouncer) StatsService() mona.StatsAccessor
- func (p PgBouncer) StatsServiceLabels() map[string]string
- type PgBouncerCertificateAlias
- type PgBouncerClientAuthMode
- type PgBouncerList
- type PgBouncerSSLMode
- type PgBouncerSpec
- type PgBouncerStatus
- type PgBouncerTerminationPolicy
- type Pgpool
- func (p *Pgpool) AppBindingMeta() appcat.AppBindingMeta
- func (p *Pgpool) CertificateName(alias PgpoolCertificateAlias) string
- func (p *Pgpool) ConfigSecretName() string
- func (p *Pgpool) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Pgpool) DeepCopy() *Pgpool
- func (in *Pgpool) DeepCopyInto(out *Pgpool)
- func (in *Pgpool) DeepCopyObject() runtime.Object
- func (p *Pgpool) Default()
- func (p *Pgpool) GetAuthSecretName() string
- func (p *Pgpool) GetCertSecretName(alias PgpoolCertificateAlias) string
- func (p *Pgpool) GetNameSpacedName() string
- func (p *Pgpool) GetPersistentSecrets() []string
- func (p *Pgpool) GetSSLMODE(appBinding *appcat.AppBinding) (PgpoolSSLMode, error)
- func (p *Pgpool) GoverningServiceName() string
- func (p *Pgpool) IsBackendTLSEnabled() (bool, error)
- func (p *Pgpool) OffshootLabels() map[string]string
- func (p *Pgpool) OffshootName() string
- func (p *Pgpool) OffshootSelectors(extraSelectors ...map[string]string) map[string]string
- func (p *Pgpool) Owner() *meta.OwnerReference
- func (p *Pgpool) PetSetName() string
- func (p *Pgpool) PodControllerLabels(extraLabels ...map[string]string) map[string]string
- func (p *Pgpool) PodLabels(extraLabels ...map[string]string) map[string]string
- func (p *Pgpool) PrimaryServiceDNS() string
- func (p *Pgpool) ReplicasAreReady(lister pslister.PetSetLister) (bool, string, error)
- func (p *Pgpool) ResourceFQN() string
- func (p *Pgpool) ResourceKind() string
- func (p *Pgpool) ResourcePlural() string
- func (p *Pgpool) ResourceShortCode() string
- func (p *Pgpool) ResourceSingular() string
- func (p *Pgpool) ServiceAccountName() string
- func (p *Pgpool) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (p *Pgpool) ServiceName() string
- func (p *Pgpool) SetDefaults()
- func (p *Pgpool) SetHealthCheckerDefaults()
- func (p *Pgpool) SetSecurityContext(ppVersion *catalog.PgpoolVersion, podTemplate *ofst.PodTemplateSpec)
- func (p *Pgpool) SetTLSDefaults()
- func (p *Pgpool) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (p Pgpool) StatsService() mona.StatsAccessor
- func (p Pgpool) StatsServiceLabels() map[string]string
- func (p *Pgpool) TLSSecretName() string
- func (p *Pgpool) ValidateCreate() (admission.Warnings, error)
- func (p *Pgpool) ValidateCreateOrUpdate() field.ErrorList
- func (p *Pgpool) ValidateDelete() (admission.Warnings, error)
- func (p *Pgpool) ValidateEnvVar(envs []core.EnvVar, forbiddenEnvs []string, resourceType string) error
- func (p *Pgpool) ValidateHealth(health *kmapi.HealthCheckSpec) error
- func (p *Pgpool) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type PgpoolCertificateAlias
- type PgpoolClientAuthMode
- type PgpoolConfiguration
- type PgpoolList
- type PgpoolSSLMode
- type PgpoolSpec
- type PgpoolStatsService
- func (in *PgpoolStatsService) DeepCopy() *PgpoolStatsService
- func (in *PgpoolStatsService) DeepCopyInto(out *PgpoolStatsService)
- func (p PgpoolStatsService) GetNamespace() string
- func (p PgpoolStatsService) Path() string
- func (p PgpoolStatsService) Scheme() string
- func (p PgpoolStatsService) ServiceMonitorAdditionalLabels() map[string]string
- func (p PgpoolStatsService) ServiceMonitorName() string
- func (p PgpoolStatsService) ServiceName() string
- func (p PgpoolStatsService) TLSConfig() *promapi.TLSConfig
- type PgpoolStatus
- type PostgreLeaderElectionConfig
- type PostgreSQLMode
- type Postgres
- func (p Postgres) AppBindingMeta() appcat.AppBindingMeta
- func (p *Postgres) AsOwner() *metav1.OwnerReference
- func (p *Postgres) CertificateName(alias PostgresCertificateAlias) string
- func (_ Postgres) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Postgres) DeepCopy() *Postgres
- func (in *Postgres) DeepCopyInto(out *Postgres)
- func (in *Postgres) DeepCopyObject() runtime.Object
- func (p Postgres) GetAuthSecretName() string
- func (p *Postgres) GetCertSecretName(alias PostgresCertificateAlias) string
- func (p Postgres) GoverningServiceName() string
- func (m *Postgres) IsRemoteReplica() bool
- func (p Postgres) OffshootLabels() map[string]string
- func (p Postgres) OffshootName() string
- func (p Postgres) OffshootSelectors() map[string]string
- func (p Postgres) PodControllerLabels() map[string]string
- func (p Postgres) PodLabels() map[string]string
- func (p *Postgres) ReplicasAreReady(lister appslister.StatefulSetLister) (bool, string, error)
- func (p Postgres) ResourceFQN() string
- func (p Postgres) ResourceKind() string
- func (p Postgres) ResourcePlural() string
- func (p Postgres) ResourceShortCode() string
- func (p Postgres) ResourceSingular() string
- func (p Postgres) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (p Postgres) ServiceName() string
- func (p *Postgres) SetArbiterDefault()
- func (p *Postgres) SetDefaultReplicationMode(postgresVersion *catalog.PostgresVersion)
- func (p *Postgres) SetDefaults(postgresVersion *catalog.PostgresVersion, topology *core_util.Topology)
- func (m *Postgres) SetHealthCheckerDefaults()
- func (p *Postgres) SetTLSDefaults()
- func (p Postgres) StandbyServiceName() string
- func (p Postgres) StatsService() mona.StatsAccessor
- func (p Postgres) StatsServiceLabels() map[string]string
- type PostgresCertificateAlias
- type PostgresClientAuthMode
- type PostgresList
- type PostgresRef
- type PostgresReplication
- type PostgresSSLMode
- type PostgresServiceRef
- type PostgresSpec
- type PostgresStandbyMode
- type PostgresStatus
- type PostgresStreamingMode
- type ProxySQL
- func (p ProxySQL) AppBindingMeta() appcat.AppBindingMeta
- func (p *ProxySQL) AsOwner() *metav1.OwnerReference
- func (m *ProxySQL) CertificateName(alias ProxySQLCertificateAlias) string
- func (_ ProxySQL) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *ProxySQL) DeepCopy() *ProxySQL
- func (in *ProxySQL) DeepCopyInto(out *ProxySQL)
- func (in *ProxySQL) DeepCopyObject() runtime.Object
- func (p ProxySQL) GetAuthSecretName() string
- func (m *ProxySQL) GetCertSecretName(alias ProxySQLCertificateAlias) string
- func (p ProxySQL) GoverningServiceName() string
- func (m *ProxySQL) IsCluster() bool
- func (p ProxySQL) OffshootLabels() map[string]string
- func (p ProxySQL) OffshootName() string
- func (p ProxySQL) OffshootSelectors() map[string]string
- func (p ProxySQL) PodControllerLabels() map[string]string
- func (p ProxySQL) PodLabels() map[string]string
- func (p *ProxySQL) ReplicasAreReady(lister appslister.StatefulSetLister) (bool, string, error)
- func (p ProxySQL) ResourceFQN() string
- func (p ProxySQL) ResourceKind() string
- func (p ProxySQL) ResourcePlural() string
- func (p ProxySQL) ResourceShortCode() string
- func (p ProxySQL) ResourceSingular() string
- func (p ProxySQL) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (p ProxySQL) ServiceName() string
- func (p *ProxySQL) SetDefaults(usesAcme bool)
- func (p *ProxySQL) SetHealthCheckerDefaults()
- func (m *ProxySQL) SetTLSDefaults(usesAcme bool)
- func (p ProxySQL) StatsService() mona.StatsAccessor
- func (p ProxySQL) StatsServiceLabels() map[string]string
- type ProxySQLCertificateAlias
- type ProxySQLConfiguration
- type ProxySQLList
- type ProxySQLSpec
- type ProxySQLStatus
- type RabbitMQ
- func (r *RabbitMQ) AppBindingMeta() appcat.AppBindingMeta
- func (r *RabbitMQ) AsOwner() *meta.OwnerReference
- func (r *RabbitMQ) CertSecretVolumeMountPath(configDir string, cert string) string
- func (r *RabbitMQ) CertSecretVolumeName(alias RabbitMQCertificateAlias) string
- func (r *RabbitMQ) CertificateName(alias RabbitMQCertificateAlias) string
- func (r *RabbitMQ) ClientCertificateCN(alias RabbitMQCertificateAlias) string
- func (r *RabbitMQ) ConfigSecretName() string
- func (r *RabbitMQ) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *RabbitMQ) DeepCopy() *RabbitMQ
- func (in *RabbitMQ) DeepCopyInto(out *RabbitMQ)
- func (in *RabbitMQ) DeepCopyObject() runtime.Object
- func (r *RabbitMQ) Default()
- func (r *RabbitMQ) DefaultErlangCookieSecretName() string
- func (r *RabbitMQ) DefaultPodRoleBindingName() string
- func (r *RabbitMQ) DefaultPodRoleName() string
- func (r *RabbitMQ) DefaultUserCredSecretName(username string) string
- func (r *RabbitMQ) Finalizer() string
- func (r *RabbitMQ) GetAuthSecretName() string
- func (r *RabbitMQ) GetCertSecretName(alias RabbitMQCertificateAlias) string
- func (r *RabbitMQ) GetConnectionScheme() string
- func (r *RabbitMQ) GetPersistentSecrets() []string
- func (r *RabbitMQ) GoverningServiceName() string
- func (r *RabbitMQ) OffshootLabels() map[string]string
- func (r *RabbitMQ) OffshootName() string
- func (r *RabbitMQ) OffshootSelectors(extraSelectors ...map[string]string) map[string]string
- func (r *RabbitMQ) Owner() *meta.OwnerReference
- func (r *RabbitMQ) PVCName(alias string) string
- func (r *RabbitMQ) PetSetName() string
- func (r *RabbitMQ) PodControllerLabels(extraLabels ...map[string]string) map[string]string
- func (r *RabbitMQ) PodLabels(extraLabels ...map[string]string) map[string]string
- func (r *RabbitMQ) ReplicasAreReady(lister pslister.PetSetLister) (bool, string, error)
- func (r *RabbitMQ) ResourceFQN() string
- func (r *RabbitMQ) ResourceKind() string
- func (r *RabbitMQ) ResourcePlural() string
- func (r *RabbitMQ) ResourceShortCode() string
- func (r *RabbitMQ) ResourceSingular() string
- func (r *RabbitMQ) ServiceAccountName() string
- func (r *RabbitMQ) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (r *RabbitMQ) ServiceName() string
- func (r *RabbitMQ) SetDefaults()
- func (r *RabbitMQ) SetHealthCheckerDefaults()
- func (r *RabbitMQ) SetTLSDefaults()
- func (r *RabbitMQ) StandbyServiceName() string
- func (r *RabbitMQ) StatsService() mona.StatsAccessor
- func (r *RabbitMQ) StatsServiceLabels() map[string]string
- func (r *RabbitMQ) ValidateCreate() (admission.Warnings, error)
- func (r *RabbitMQ) ValidateCreateOrUpdate() error
- func (r *RabbitMQ) ValidateDelete() (admission.Warnings, error)
- func (r *RabbitMQ) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- func (r *RabbitMQ) ValidateVersion(db *RabbitMQ) error
- type RabbitMQCertificateAlias
- type RabbitMQList
- type RabbitMQPhase
- type RabbitMQSpec
- type RabbitMQStatus
- type RabbitmqApp
- type RabbitmqStatsService
- func (in *RabbitmqStatsService) DeepCopy() *RabbitmqStatsService
- func (in *RabbitmqStatsService) DeepCopyInto(out *RabbitmqStatsService)
- func (ks RabbitmqStatsService) GetNamespace() string
- func (ks RabbitmqStatsService) Path() string
- func (ks RabbitmqStatsService) Scheme() string
- func (ks RabbitmqStatsService) ServiceMonitorAdditionalLabels() map[string]string
- func (ks RabbitmqStatsService) ServiceMonitorName() string
- func (ks RabbitmqStatsService) ServiceName() string
- func (ks RabbitmqStatsService) TLSConfig() *promapi.TLSConfig
- type RecoveryTarget
- type Redis
- func (r Redis) Address() string
- func (r Redis) AppBindingMeta() appcat.AppBindingMeta
- func (r *Redis) AsOwner() *metav1.OwnerReference
- func (r Redis) BaseNameForShard() string
- func (r *Redis) CertificateName(alias RedisCertificateAlias) string
- func (r Redis) ConfigSecretName() string
- func (r Redis) CustomConfigSecretName() string
- func (r Redis) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Redis) DeepCopy() *Redis
- func (in *Redis) DeepCopyInto(out *Redis)
- func (in *Redis) DeepCopyObject() runtime.Object
- func (r Redis) GetAuthSecretName() string
- func (r *Redis) GetCertSecretName(alias RedisCertificateAlias) string
- func (r Redis) GoverningServiceName() string
- func (r Redis) OffshootLabels() map[string]string
- func (r Redis) OffshootName() string
- func (r Redis) OffshootSelectors(extraSelectors ...map[string]string) map[string]string
- func (r Redis) PodControllerLabels(extraLabels ...map[string]string) map[string]string
- func (r Redis) PodLabels(extraLabels ...map[string]string) map[string]string
- func (r *Redis) ReplicasAreReady(lister appslister.StatefulSetLister) (bool, string, error)
- func (r Redis) ResourceFQN() string
- func (r Redis) ResourceKind() string
- func (r Redis) ResourcePlural() string
- func (r Redis) ResourceShortCode() string
- func (r Redis) ResourceSingular() string
- func (r Redis) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (r Redis) ServiceName() string
- func (r *Redis) SetDefaults(rdVersion *catalog.RedisVersion, topology *core_util.Topology)
- func (r *Redis) SetHealthCheckerDefaults()
- func (r *Redis) SetTLSDefaults()
- func (r Redis) ShardNodeTemplate() string
- func (r Redis) StandbyServiceName() string
- func (r Redis) StatefulSetNameWithShard(i int) string
- func (r Redis) StatsService() mona.StatsAccessor
- func (r Redis) StatsServiceLabels() map[string]string
- type RedisCertificateAlias
- type RedisClusterSpec
- type RedisList
- type RedisMode
- type RedisSentinel
- func (r RedisSentinel) Address() string
- func (rs RedisSentinel) AppBindingMeta() appcat.AppBindingMeta
- func (rs *RedisSentinel) AsOwner() *metav1.OwnerReference
- func (rs *RedisSentinel) CertificateName(alias RedisCertificateAlias) string
- func (rs RedisSentinel) ConfigSecretName() string
- func (rs RedisSentinel) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *RedisSentinel) DeepCopy() *RedisSentinel
- func (in *RedisSentinel) DeepCopyInto(out *RedisSentinel)
- func (in *RedisSentinel) DeepCopyObject() runtime.Object
- func (rs RedisSentinel) GetAuthSecretName() string
- func (rs *RedisSentinel) GetCertSecretName(alias RedisCertificateAlias) string
- func (rs *RedisSentinel) GetPersistentSecrets() []string
- func (rs RedisSentinel) GoverningServiceName() string
- func (rs RedisSentinel) OffshootLabels() map[string]string
- func (rs RedisSentinel) OffshootName() string
- func (rs RedisSentinel) OffshootSelectors() map[string]string
- func (rs RedisSentinel) PodControllerLabels() map[string]string
- func (rs RedisSentinel) PodLabels() map[string]string
- func (rs *RedisSentinel) ReplicasAreReady(lister appslister.StatefulSetLister) (bool, string, error)
- func (rs RedisSentinel) ResourceFQN() string
- func (rs RedisSentinel) ResourceKind() string
- func (rs RedisSentinel) ResourcePlural() string
- func (rs RedisSentinel) ResourceShortCode() string
- func (rs RedisSentinel) ResourceSingular() string
- func (rs RedisSentinel) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (rs *RedisSentinel) SetDefaults(rdVersion *catalog.RedisVersion, topology *core_util.Topology)
- func (rs *RedisSentinel) SetHealthCheckerDefaults()
- func (rs *RedisSentinel) SetTLSDefaults()
- func (rs RedisSentinel) StatsService() mona.StatsAccessor
- func (rs RedisSentinel) StatsServiceLabels() map[string]string
- type RedisSentinelList
- type RedisSentinelRef
- type RedisSentinelSpec
- type RedisSentinelStatus
- type RedisSpec
- type RedisStatus
- type RemoteReplicaSpec
- type SQLServerTLSConfig
- type SSLMode
- type ScriptSourceSpec
- type SecretReference
- type SemiSyncSpec
- type ServiceAlias
- type Singlestore
- func (s *Singlestore) AggregatorPetSet() string
- func (s *Singlestore) AppBindingMeta() appcat.AppBindingMeta
- func (s *Singlestore) CertificateName(alias SinglestoreCertificateAlias) string
- func (s *Singlestore) ConfigSecretName() string
- func (s *Singlestore) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Singlestore) DeepCopy() *Singlestore
- func (in *Singlestore) DeepCopyInto(out *Singlestore)
- func (in *Singlestore) DeepCopyObject() runtime.Object
- func (s *Singlestore) Default()
- func (s *Singlestore) DefaultUserCredSecretName(username string) string
- func (s *Singlestore) GetAuthSecretName() string
- func (s *Singlestore) GetCertSecretName(alias SinglestoreCertificateAlias) string
- func (s Singlestore) GetNameSpacedName() string
- func (s *Singlestore) GetPersistentSecrets() []string
- func (s *Singlestore) GoverningServiceName() string
- func (s *Singlestore) IsClustering() bool
- func (s *Singlestore) IsStandalone() bool
- func (s *Singlestore) LeafPetSet() string
- func (s *Singlestore) OffshootLabels() map[string]string
- func (s *Singlestore) OffshootName() string
- func (s *Singlestore) OffshootSelectors(extraSelectors ...map[string]string) map[string]string
- func (s *Singlestore) Owner() *meta.OwnerReference
- func (s *Singlestore) PVCName(alias string) string
- func (s *Singlestore) PetSetName() string
- func (s *Singlestore) PodControllerLabel(podTemplate *ofst.PodTemplateSpec) map[string]string
- func (s *Singlestore) PodControllerLabels(podTemplate *ofst.PodTemplateSpec, extraLabels ...map[string]string) map[string]string
- func (s *Singlestore) PodLabel(podTemplate *ofst.PodTemplateSpec) map[string]string
- func (s *Singlestore) PodLabels(podTemplate *ofst.PodTemplateSpec, extraLabels ...map[string]string) map[string]string
- func (s *Singlestore) PrimaryServiceDNS() string
- func (s *Singlestore) ReplicasAreReady(lister pslister.PetSetLister) (bool, string, error)
- func (s *Singlestore) ResourceFQN() string
- func (s *Singlestore) ResourceKind() string
- func (s *Singlestore) ResourcePlural() string
- func (s *Singlestore) ResourceShortCode() string
- func (s *Singlestore) ResourceSingular() string
- func (s *Singlestore) ServiceAccountName() string
- func (s *Singlestore) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (s *Singlestore) ServiceName() string
- func (s *Singlestore) SetDefaults()
- func (s *Singlestore) SetHealthCheckerDefaults()
- func (s *Singlestore) SetTLSDefaults()
- func (s Singlestore) StatsService() mona.StatsAccessor
- func (s Singlestore) StatsServiceLabels() map[string]string
- func (s *Singlestore) ValidateCreate() (admission.Warnings, error)
- func (s *Singlestore) ValidateCreateOrUpdate() field.ErrorList
- func (s *Singlestore) ValidateDelete() (admission.Warnings, error)
- func (s *Singlestore) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type SinglestoreCertificateAlias
- type SinglestoreList
- type SinglestoreNode
- type SinglestoreSpec
- type SinglestoreStatus
- type SinglestoreTopology
- type Solr
- func (s *Solr) AppBindingMeta() appcat.AppBindingMeta
- func (s *Solr) Append(opt map[string]string) string
- func (s *Solr) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Solr) DeepCopy() *Solr
- func (in *Solr) DeepCopyInto(out *Solr)
- func (in *Solr) DeepCopyObject() runtime.Object
- func (s *Solr) Default()
- func (s *Solr) DefaultPodRoleBindingName() string
- func (s *Solr) DefaultPodRoleName() string
- func (s *Solr) GetConnectionScheme() string
- func (s *Solr) GetPersistentSecrets() []string
- func (s *Solr) GoverningServiceName() string
- func (s *Solr) Merge(opt map[string]string) map[string]string
- func (s *Solr) OffshootLabels() map[string]string
- func (s *Solr) OffshootName() string
- func (s *Solr) OffshootSelectors(extraSelectors ...map[string]string) map[string]string
- func (s *Solr) OverseerDiscoveryServiceName() string
- func (s *Solr) Owner() *meta.OwnerReference
- func (s *Solr) PVCName(alias string) string
- func (s *Solr) PetSetName(suffix string) string
- func (s *Solr) PodControllerLabels(extraLabels ...map[string]string) map[string]string
- func (s *Solr) PodLabels(extraLabels ...map[string]string) map[string]string
- func (s *Solr) ReplicasAreReady(lister pslister.PetSetLister) (bool, string, error)
- func (s *Solr) ResourceFQN() string
- func (s *Solr) ResourceKind() string
- func (s *Solr) ResourcePlural() string
- func (s *Solr) ServiceAccountName() string
- func (s *Solr) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (s *Solr) ServiceName() string
- func (s *Solr) SetDefaults(slVersion *catalog.SolrVersion)
- func (s *Solr) SetHealthCheckerDefaults()
- func (s *Solr) SolrSecretKey() string
- func (s *Solr) SolrSecretName(suffix string) string
- func (s *Solr) StatsService() mona.StatsAccessor
- func (s *Solr) StatsServiceLabels() map[string]string
- func (s *Solr) ValidateCreate() (admission.Warnings, error)
- func (s *Solr) ValidateCreateOrUpdate() field.ErrorList
- func (s *Solr) ValidateDelete() (admission.Warnings, error)
- func (s *Solr) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type SolrApp
- type SolrClusterTopology
- type SolrList
- type SolrNode
- type SolrNodeRoleType
- type SolrSpec
- type SolrStatus
- type StorageEngine
- type StorageType
- type SystemUserSecretsSpec
- type TLSPolicy
- type TerminationPolicy
- type WALLimitPolicy
- type ZooKeeper
- func (z *ZooKeeper) Address() string
- func (z *ZooKeeper) AdminServerServiceName() string
- func (z *ZooKeeper) AppBindingMeta() appcat.AppBindingMeta
- func (z *ZooKeeper) ConfigSecretName() string
- func (z *ZooKeeper) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *ZooKeeper) DeepCopy() *ZooKeeper
- func (in *ZooKeeper) DeepCopyInto(out *ZooKeeper)
- func (in *ZooKeeper) DeepCopyObject() runtime.Object
- func (z *ZooKeeper) Default()
- func (z *ZooKeeper) GetAuthSecretName() string
- func (z *ZooKeeper) GetConnectionScheme() string
- func (z *ZooKeeper) GetPersistentSecrets() []string
- func (z *ZooKeeper) GoverningServiceName() string
- func (z *ZooKeeper) OffshootLabels() map[string]string
- func (z *ZooKeeper) OffshootName() string
- func (z *ZooKeeper) OffshootSelectors(extraSelectors ...map[string]string) map[string]string
- func (z *ZooKeeper) Owner() *meta.OwnerReference
- func (z *ZooKeeper) PVCName(alias string) string
- func (z *ZooKeeper) PetSetName() string
- func (z *ZooKeeper) PodControllerLabels(extraLabels ...map[string]string) map[string]string
- func (z *ZooKeeper) PodLabels(extraLabels ...map[string]string) map[string]string
- func (z *ZooKeeper) ReplicasAreReady(lister pslister.PetSetLister) (bool, string, error)
- func (z *ZooKeeper) ResourceFQN() string
- func (z *ZooKeeper) ResourceKind() string
- func (z *ZooKeeper) ResourcePlural() string
- func (z *ZooKeeper) ResourceShortCode() string
- func (z *ZooKeeper) ResourceSingular() string
- func (z *ZooKeeper) ServiceAccountName() string
- func (z *ZooKeeper) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string
- func (z *ZooKeeper) ServiceName() string
- func (z *ZooKeeper) SetDefaults()
- func (z *ZooKeeper) SetHealthCheckerDefaults()
- func (z *ZooKeeper) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (z *ZooKeeper) StatsService() mona.StatsAccessor
- func (z *ZooKeeper) StatsServiceLabels() map[string]string
- func (z *ZooKeeper) ValidateCreate() (admission.Warnings, error)
- func (z *ZooKeeper) ValidateCreateOrUpdate() (admission.Warnings, error)
- func (z *ZooKeeper) ValidateDelete() (admission.Warnings, error)
- func (z *ZooKeeper) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type ZooKeeperApp
- type ZooKeeperList
- type ZooKeeperSpec
- type ZooKeeperStatus
- type ZookeeperRef
Constants ¶
const ( ResourceKindClickHouse = "ClickHouse" ResourceSingularClickHouse = "clickhouse" ResourcePluralClickHouse = "clickhouses" ResourceCodeClickHouse = "ch" )
const ( // Deprecated DatabaseNamePrefix = "kubedb" KubeDBOrganization = "kubedb" LabelRole = kubedb.GroupName + "/role" LabelPetSet = kubedb.GroupName + "/petset" ReplicationModeDetectorContainerName = "replication-mode-detector" DatabasePodPrimary = "primary" DatabasePodStandby = "standby" ComponentDatabase = "database" ComponentConnectionPooler = "connection-pooler" RoleStats = "stats" DefaultStatsPath = "/metrics" DefaultPasswordLength = 16 HealthCheckInterval = 10 * time.Second ContainerExporterName = "exporter" LocalHost = "localhost" LocalHostIP = "127.0.0.1" DBCustomConfigName = "custom-config" DefaultVolumeClaimTemplateName = "data" DBTLSVolume = "tls-volume" DBExporterTLSVolume = "exporter-tls-volume" CACert = "ca.crt" // =========================== Database key Constants ============================ PostgresKey = ResourceSingularPostgres + "." + kubedb.GroupName ElasticsearchKey = ResourceSingularElasticsearch + "." + kubedb.GroupName MySQLKey = ResourceSingularMySQL + "." + kubedb.GroupName MariaDBKey = ResourceSingularMariaDB + "." + kubedb.GroupName PerconaXtraDBKey = ResourceSingularPerconaXtraDB + "." + kubedb.GroupName MongoDBKey = ResourceSingularMongoDB + "." + kubedb.GroupName RedisKey = ResourceSingularRedis + "." + kubedb.GroupName MemcachedKey = ResourceSingularMemcached + "." + kubedb.GroupName EtcdKey = ResourceSingularEtcd + "." + kubedb.GroupName ProxySQLKey = ResourceSingularProxySQL + "." + kubedb.GroupName // =========================== Elasticsearch Constants ============================ ElasticsearchRestPort = 9200 ElasticsearchRestPortName = "http" ElasticsearchTransportPort = 9300 ElasticsearchTransportPortName = "transport" ElasticsearchPerformanceAnalyzerPort = 9600 ElasticsearchPerformanceAnalyzerPortName = "analyzer" ElasticsearchNodeRoleSet = "set" ElasticsearchConfigDir = "/usr/share/elasticsearch/config" ElasticsearchOpenSearchConfigDir = "/usr/share/opensearch/config" ElasticsearchSecureSettingsDir = "/elasticsearch/secure-settings" ElasticsearchTempConfigDir = "/elasticsearch/temp-config" ElasticsearchCustomConfigDir = "/elasticsearch/custom-config" ElasticsearchDataDir = "/usr/share/elasticsearch/data" ElasticsearchOpenSearchDataDir = "/usr/share/opensearch/data" ElasticsearchTempDir = "/tmp" ElasticsearchOpendistroSecurityConfigDir = "/usr/share/elasticsearch/plugins/opendistro_security/securityconfig" ElasticsearchOpenSearchSecurityConfigDir = "/usr/share/opensearch/plugins/opensearch-security/securityconfig" ElasticsearchOpenSearchSecurityConfigDirV2 = "/usr/share/opensearch/config/opensearch-security" ElasticsearchSearchGuardSecurityConfigDir = "/usr/share/elasticsearch/plugins/search-guard-%v/sgconfig" ElasticsearchOpendistroReadallMonitorRole = "readall_and_monitor" ElasticsearchOpenSearchReadallMonitorRole = "readall_and_monitor" ElasticsearchSearchGuardReadallMonitorRoleV7 = "SGS_READALL_AND_MONITOR" ElasticsearchSearchGuardReadallMonitorRoleV6 = "sg_readall_and_monitor" ElasticsearchStatusGreen = "green" ElasticsearchStatusYellow = "yellow" ElasticsearchStatusRed = "red" ElasticsearchInitSysctlContainerName = "init-sysctl" ElasticsearchInitConfigMergerContainerName = "config-merger" ElasticsearchContainerName = "elasticsearch" ElasticsearchExporterContainerName = "exporter" ElasticsearchSearchGuardRolesMappingFileName = "sg_roles_mapping.yml" ElasticsearchSearchGuardInternalUserFileName = "sg_internal_users.yml" ElasticsearchOpendistroRolesMappingFileName = "roles_mapping.yml" ElasticsearchOpendistroInternalUserFileName = "internal_users.yml" ElasticsearchJavaOptsEnv = "ES_JAVA_OPTS" ElasticsearchOpenSearchJavaOptsEnv = "OPENSEARCH_JAVA_OPTS" ElasticsearchVolumeConfig = "esconfig" ElasticsearchVolumeTempConfig = "temp-config" ElasticsearchVolumeSecurityConfig = "security-config" ElasticsearchVolumeSecureSettings = "secure-settings" ElasticsearchVolumeCustomConfig = "custom-config" ElasticsearchVolumeData = "data" ElasticsearchVolumeTemp = "temp" // Ref: // - https://www.elastic.co/guide/en/elasticsearch/reference/7.6/heap-size.html#heap-size // - no more than 50% of your physical RAM // - no more than 32GB that the JVM uses for compressed object pointers (compressed oops) // - no more than 26GB for zero-based compressed oops; // 26 GB is safe on most systems ElasticsearchMaxHeapSize = 26 * 1024 * 1024 * 1024 // 128MB ElasticsearchMinHeapSize = 128 * 1024 * 1024 // =========================== Memcached Constants ============================ MemcachedConfigKey = "memcached.conf" // MemcachedConfigKey is going to create for the customize redis configuration MemcachedDatabasePortName = "db" MemcachedPrimaryServicePortName = "primary" MemcachedDatabasePort = 11211 MemcachedShardKey = MemcachedKey + "/shard" MemcachedContainerName = ResourceSingularMemcached MemcachedConfigVolumePath = "/etc/memcached/" MongoDBDatabasePortName = "db" MongoDBPrimaryServicePortName = "primary" MongoDBDatabasePort = 27017 MongoDBKeyFileSecretSuffix = "-key" MongoDBRootUsername = "root" MongoDBCustomConfigFile = "mongod.conf" MongoDBReplicaSetConfig = "replicaset.json" MongoDBConfigurationJSFile = "configuration.js" NodeTypeMongos = "mongos" NodeTypeShard = "shard" NodeTypeConfig = "configsvr" NodeTypeArbiter = "arbiter" NodeTypeHidden = "hidden" NodeTypeReplica = "replica" NodeTypeStandalone = "standalone" MongoDBWorkDirectoryName = "workdir" MongoDBWorkDirectoryPath = "/work-dir" MongoDBCertDirectoryName = "certdir" MongoDBDataDirectoryName = "datadir" MongoDBDataDirectoryPath = "/data/db" MongoDBInitInstallContainerName = "copy-config" MongoDBInitBootstrapContainerName = "bootstrap" MongoDBConfigDirectoryName = "config" MongoDBConfigDirectoryPath = "/data/configdb" MongoDBInitialConfigDirectoryName = "configdir" MongoDBInitialConfigDirectoryPath = "/configdb-readonly" MongoDBInitScriptDirectoryName = "init-scripts" MongoDBInitScriptDirectoryPath = "/init-scripts" MongoDBInitialDirectoryName = "initial-script" MongoDBInitialDirectoryPath = "/docker-entrypoint-initdb.d" MongoDBClientCertDirectoryName = "client-cert" MongoDBClientCertDirectoryPath = "/client-cert" MongoDBServerCertDirectoryName = "server-cert" MongoDBServerCertDirectoryPath = "/server-cert" MongoDBInitialKeyDirectoryName = "keydir" MongoDBInitialKeyDirectoryPath = "/keydir-readonly" MongoDBContainerName = ResourceSingularMongoDB MongoDBDefaultVolumeClaimTemplateName = MongoDBDataDirectoryName MongodbUser = "root" MongoDBKeyForKeyFile = "key.txt" MongoDBAuthSecretSuffix = "-auth" // =========================== MySQL Constants ============================ MySQLMetricsExporterConfigSecretSuffix = "metrics-exporter-config" MySQLDatabasePortName = "db" MySQLRouterReadWritePortName = "rw" MySQLRouterReadOnlyPortName = "ro" MySQLPrimaryServicePortName = "primary" MySQLStandbyServicePortName = "standby" MySQLDatabasePort = 3306 MySQLRouterReadWritePort = 6446 MySQLRouterReadOnlyPort = 6447 MySQLCoordinatorClientPort = 2379 MySQLCoordinatorPort = 2380 MySQLCoordinatorStatus = "Coordinator/Status" MySQLGroupComPort = 33060 MySQLMaxGroupMembers = 9 // The recommended MySQL server version for group replication (GR) MySQLGRRecommendedVersion = "8.0.23" MySQLDefaultGroupSize = 3 MySQLRootUserName = "MYSQL_ROOT_USERNAME" MySQLRootPassword = "MYSQL_ROOT_PASSWORD" MySQLName = "MYSQL_NAME" MySQLRootUser = "root" MySQLTLSConfigCustom = "custom" MySQLTLSConfigSkipVerify = "skip-verify" MySQLTLSConfigTrue = "true" MySQLTLSConfigFalse = "false" MySQLTLSConfigPreferred = "preferred" MySQLContainerName = "mysql" MySQLRouterContainerName = "mysql-router" MySQLRouterInitContainerName = "mysql-router-init" MySQLCoordinatorContainerName = "mysql-coordinator" MySQLInitContainerName = "mysql-init" MySQLRouterInitScriptDirectoryName = "init-scripts" MySQLRouterInitScriptDirectoryPath = "/scripts" MySQLRouterConfigDirectoryName = "router-config-secret" MySQLRouterConfigDirectoryPath = "/etc/mysqlrouter" MySQLRouterTLSDirectoryName = "router-tls-volume" MySQLRouterTLSDirectoryPath = "/etc/mysql/certs" MySQLReplicationUser = "repl" MySQLComponentKey = MySQLKey + "/component" MySQLComponentDB = "database" MySQLComponentRouter = "router" MySQLCustomConfigFile = "my-inline.cnf" MySQLVolumeNameTemp = "tmp" MySQLVolumeMountPathTemp = "/tmp" MySQLVolumeNameData = "data" MySQLVolumeMountPathData = "/var/lib/mysql" MySQLVolumeNameUserInitScript = "initial-script" MySQLVolumeMountPathUserInitScript = "/docker-entrypoint-initdb.d" MySQLVolumeNameInitScript = "init-scripts" MySQLVolumeMountPathInitScript = "/scripts" MySQLVolumeNameCustomConfig = "custom-config" MySQLVolumeMountPathCustomConfig = "/etc/mysql/conf.d" MySQLVolumeNameTLS = "tls-volume" MySQLVolumeMountPathTLS = "/etc/mysql/certs" MySQLVolumeNameExporterTLS = "exporter-tls-volume" MySQLVolumeMountPathExporterTLS = "/etc/mysql/certs" MySQLVolumeNameSourceCA = "source-ca" MySQLVolumeMountPathSourceCA = "/etc/mysql/server/certs" // =========================== PerconaXtraDB Constants ============================ PerconaXtraDBClusterRecommendedVersion = "5.7" PerconaXtraDBMaxClusterNameLength = 32 PerconaXtraDBStandaloneReplicas = 1 PerconaXtraDBDefaultClusterSize = 3 PerconaXtraDBDataMountPath = "/var/lib/mysql" PerconaXtraDBDataLostFoundPath = PerconaXtraDBDataMountPath + "/lost+found" PerconaXtraDBInitDBVolumeName = "initial-script" PerconaXtraDBInitDBMountPath = "/docker-entrypoint-initdb.d" PerconaXtraDBCustomConfigMountPath = "/etc/percona-server.conf.d/" PerconaXtraDBClusterCustomConfigMountPath = "/etc/mysql/custom.conf.d/" PerconaXtraDBCustomConfigVolumeName = "custom-config" PerconaXtraDBTLSConfigCustom = "custom" PerconaXtraDBInitContainerName = "px-init" PerconaXtraDBCoordinatorContainerName = "px-coordinator" PerconaXtraDBRunScriptVolumeName = "run-script" PerconaXtraDBRunScriptVolumeMountPath = "/run-script" PerconaXtraDBInitScriptVolumeName = "init-scripts" PerconaXtraDBInitScriptVolumeMountPath = "/scripts" PerconaXtraDBContainerName = ResourceSingularPerconaXtraDB PerconaXtraDBCertMountPath = "/etc/mysql/certs" PerconaXtraDBExporterConfigFileName = "exporter.cnf" PerconaXtraDBGaleraClusterPrimaryComponent = "Primary" PerconaXtraDBServerTLSVolumeName = "tls-server-config" PerconaXtraDBClientTLSVolumeName = "tls-client-config" PerconaXtraDBExporterTLSVolumeName = "tls-metrics-exporter-config" PerconaXtraDBMetricsExporterTLSVolumeName = "metrics-exporter-config" PerconaXtraDBMetricsExporterConfigPath = "/etc/mysql/config/exporter" PerconaXtraDBDataVolumeName = "data" PerconaXtraDBMySQLUserGroupID = 1001 // =========================== MariaDB Constants ============================ MariaDBMaxClusterNameLength = 32 MariaDBStandaloneReplicas = 1 MariaDBDefaultClusterSize = 3 MariaDBDataMountPath = "/var/lib/mysql" MariaDBDataLostFoundPath = MariaDBDataMountPath + "/lost+found" MariaDBInitDBVolumeName = "initial-script" MariaDBInitDBMountPath = "/docker-entrypoint-initdb.d" MariaDBCustomConfigMountPath = "/etc/mysql/conf.d/" MariaDBClusterCustomConfigMountPath = "/etc/mysql/custom.conf.d/" MariaDBCustomConfigVolumeName = "custom-config" MariaDBTLSConfigCustom = "custom" MariaDBInitContainerName = "mariadb-init" MariaDBCoordinatorContainerName = "md-coordinator" MariaDBRunScriptVolumeName = "run-script" MariaDBRunScriptVolumeMountPath = "/run-script" MariaDBInitScriptVolumeName = "init-scripts" MariaDBInitScriptVolumeMountPath = "/scripts" MariaDBContainerName = ResourceSingularMariaDB MariaDBCertMountPath = "/etc/mysql/certs" MariaDBExporterConfigFileName = "exporter.cnf" MariaDBGaleraClusterPrimaryComponent = "Primary" MariaDBServerTLSVolumeName = "tls-server-config" MariaDBClientTLSVolumeName = "tls-client-config" MariaDBExporterTLSVolumeName = "tls-metrics-exporter-config" MariaDBMetricsExporterTLSVolumeName = "metrics-exporter-config" MariaDBMetricsExporterConfigPath = "/etc/mysql/config/exporter" MariaDBDataVolumeName = "data" // =========================== SingleStore Constants ============================ SinglestoreDatabasePortName = "db" SinglestorePrimaryServicePortName = "primary" SinglestoreStudioPortName = "studio" SinglestoreDatabasePort = 3306 SinglestoreStudioPort = 8081 SinglestoreExporterPort = 9104 SinglestoreRootUserName = "ROOT_USERNAME" SinglestoreRootPassword = "ROOT_PASSWORD" SinglestoreRootUser = "root" DatabasePodMaster = "Master" DatabasePodAggregator = "Aggregator" DatabasePodLeaf = "Leaf" PetSetTypeAggregator = "aggregator" PetSetTypeLeaf = "leaf" PetSetTypeStandalone = "standalone" SinglestoreDatabaseHealth = "singlestore_health" SinglestoreTableHealth = "singlestore_health_table" SinglestoreCoordinatorContainerName = "singlestore-coordinator" SinglestoreContainerName = "singlestore" SinglestoreInitContainerName = "singlestore-init" SinglestoreVolumeNameUserInitScript = "initial-script" SinglestoreVolumeMountPathUserInitScript = "/docker-entrypoint-initdb.d" SinglestoreVolumeNameCustomConfig = "custom-config" SinglestoreVolumeMountPathCustomConfig = "/etc/memsql/conf.d" SinglestoreVolmeNameInitScript = "init-scripts" SinglestoreVolumeMountPathInitScript = "/scripts" SinglestoreVolumeNameData = "data" SinglestoreVolumeMountPathData = "/var/lib/memsql" SinglestoreVolumeNameTLS = "tls-volume" SinglestoreVolumeMountPathTLS = "/etc/memsql/certs" SinglestoreTLSConfigCustom = "custom" SinglestoreTLSConfigSkipVerify = "skip-verify" SinglestoreTLSConfigTrue = "true" SinglestoreTLSConfigFalse = "false" SinglestoreTLSConfigPreferred = "preferred" // =========================== MSSQLServer Constants ============================ MSSQLSAUser = "sa" AGPrimaryReplicaReadyCondition = "AGPrimaryReplicaReady" MSSQLDatabasePodPrimary = "primary" MSSQLDatabasePodSecondary = "secondary" MSSQLSecondaryServiceAlias = "secondary" MSSQLSecondaryServicePortName = "secondary" // port related MSSQLDatabasePortName = "db" MSSQLPrimaryServicePortName = "primary" MSSQLDatabasePort = 1433 MSSQLDatabaseMirroringEndpointPort = 5022 MSSQLCoordinatorPort = 2381 // environment variables EnvAcceptEula = "ACCEPT_EULA" EnvMSSQLEnableHADR = "MSSQL_ENABLE_HADR" EnvMSSQLAgentEnabled = "MSSQL_AGENT_ENABLED" EnvMSSQLSAUsername = "MSSQL_SA_USERNAME" EnvMSSQLSAPassword = "MSSQL_SA_PASSWORD" // container related MSSQLContainerName = "mssql" MSSQLCoordinatorContainerName = "mssql-coordinator" MSSQLInitContainerName = "mssql-init" // volume related MSSQLVolumeNameData = "data" MSSQLVolumeMountPathData = "/var/opt/mssql" MSSQLVolumeNameInitScript = "init-scripts" MSSQLVolumeMountPathInitScript = "/scripts" MSSQLVolumeNameEndpointCert = "endpoint-cert" MSSQLVolumeMountPathEndpointCert = "/var/opt/mssql/endpoint-cert" MSSQLVolumeNameCerts = "certs" MSSQLVolumeMountPathCerts = "/var/opt/mssql/certs" MSSQLVolumeNameTLS = "tls" MSSQLVolumeMountPathTLS = "/var/opt/mssql/tls" MSSQLVolumeNameSecurityCACertificates = "security-ca-certificates" MSSQLVolumeMountPathSecurityCACertificates = "/var/opt/mssql/security/ca-certificates" MSSQLVolumeNameCACerts = "cacerts" MSSQLVolumeMountPathCACerts = "/etc/ssl/certs" // tls related MSSQLInternalTLSCrt = "tls.crt" MSSQLInternalTLSKey = "tls.key" // =========================== PostgreSQL Constants ============================ PostgresDatabasePortName = "db" PostgresPrimaryServicePortName = "primary" PostgresStandbyServicePortName = "standby" PostgresDatabasePort = 5432 PostgresPodPrimary = "primary" PostgresPodStandby = "standby" EnvPostgresUser = "POSTGRES_USER" EnvPostgresPassword = "POSTGRES_PASSWORD" PostgresRootUser = "postgres" PostgresCoordinatorContainerName = "pg-coordinator" PostgresCoordinatorPort = 2380 PostgresCoordinatorPortName = "coordinator" PostgresContainerName = ResourceSingularPostgres PostgresInitContainerName = "postgres-init-container" PostgresCoordinatorClientPort = 2379 PostgresCoordinatorClientPortName = "coordinatclient" RaftMetricsExporterPort = 23790 RaftMetricsExporterPortName = "raft-metrics" PostgresInitVolumeName = "initial-script" PostgresInitDir = "/var/initdb" PostgresDataVolumeName = "data" PostgresDataDir = "/var/pv" PostgresCustomConfigVolumeName = "custom-config" PostgresCustomConfigDir = "/etc/config" PostgresRunScriptsVolumeName = "run-scripts" PostgresRunScriptsDir = "/run_scripts" PostgresRoleScriptsVolumeName = "role-scripts" PostgresRoleScriptsDir = "/role_scripts" PostgresCustomConfigFile = "user.conf" PostgresKeyFileSecretSuffix = "key" PostgresPEMSecretSuffix = "pem" PostgresDefaultUsername = "postgres" PostgresPgCoordinatorStatus = "Coordinator/Status" // to pause the failover for postgres. this is helpful for ops request PostgresPgCoordinatorStatusPause = "Pause" // to resume the failover for postgres. this is helpful for ops request PostgresPgCoordinatorStatusResume = "Resume" // when we need to resume pg-coordinator as non transferable we are going to set this state. // this is useful when we have set a node as primary and you don't want other node rather then this node to become primary. PostgresPgCoordinatorStatusResumeNonTransferable = "NonTransferableResume" IPS_LOCK = "IPC_LOCK" SYS_RESOURCE = "SYS_RESOURCE" DropCapabilityALL = "ALL" // =========================== ProxySQL Constants ============================ LabelProxySQLName = ProxySQLKey + "/name" LabelProxySQLLoadBalance = ProxySQLKey + "/load-balance" LabelProxySQLLoadBalanceStandalone = "Standalone" ProxySQLContainerName = ResourceSingularProxySQL ProxySQLDatabasePort = 6033 ProxySQLDatabasePortName = "db" ProxySQLPrimaryServicePortName = "db" ProxySQLAdminPort = 6032 ProxySQLAdminPortName = "admin" ProxySQLDataMountPath = "/var/lib/proxysql" ProxySQLCustomConfigMountPath = "/etc/custom-config" ProxySQLBackendSSLMountPath = "/var/lib/certs" ProxySQLFrontendSSLMountPath = "/var/lib/frontend" ProxySQLClusterAdmin = "cluster" ProxySQLClusterPasswordField = "cluster_password" ProxySQLTLSConfigCustom = "custom" ProxySQLTLSConfigSkipVerify = "skip-verify" ProxySQLMonitorUsername = "proxysql" ProxySQLAuthUsername = "cluster" ProxySQLConfigSecretKey = "proxysql.cnf" // =========================== Redis Constants ============================ RedisConfigKey = "redis.conf" // RedisConfigKey is going to create for the customize redis configuration // DefaultConfigKey is going to create for the default redis configuration RedisContainerName = ResourceSingularRedis RedisSentinelContainerName = "redissentinel" DefaultConfigKey = "default.conf" RedisShardKey = RedisKey + "/shard" RedisDatabasePortName = "db" RedisPrimaryServicePortName = "primary" RedisDatabasePort = 6379 RedisSentinelPort = 26379 RedisGossipPortName = "gossip" RedisGossipPort = 16379 RedisSentinelPortName = "sentinel" RedisInitContainerName = "redis-init" RedisCoordinatorContainerName = "rd-coordinator" RedisSentinelInitContainerName = "sentinel-init" RedisScriptVolumeName = "script-vol" RedisScriptVolumePath = "/scripts" RedisDataVolumeName = "data" RedisDataVolumePath = "/data" RedisTLSVolumeName = "tls-volume" RedisExporterTLSVolumeName = "exporter-tls-volume" RedisTLSVolumePath = "/certs" RedisSentinelTLSVolumeName = "sentinel-tls-volume" RedisSentinelTLSVolumePath = "/sentinel-certs" RedisConfigVolumeName = "redis-config" RedisConfigVolumePath = "/usr/local/etc/redis/" RedisInitVolumeName = "init-volume" RedisInitVolumePath = "/init" RedisNodeFlagMaster = "master" RedisNodeFlagNoAddr = "noaddr" RedisNodeFlagSlave = "slave" RedisKeyFileSecretSuffix = "key" RedisPEMSecretSuffix = "pem" RedisRootUsername = "default" EnvRedisUser = "USERNAME" EnvRedisPassword = "REDISCLI_AUTH" EnvRedisMode = "REDIS_MODE" EnvRedisMajorRedisVersion = "MAJOR_REDIS_VERSION" // =========================== PgBouncer Constants ============================ PgBouncerUpstreamServerCA = "upstream-server-ca.crt" PgBouncerUpstreamServerClientCert = "upstream-server-client.crt" PgBouncerUpstreamServerClientKey = "upstream-server-client.key" PgBouncerClientCrt = "client.crt" PgBouncerClientKey = "client.key" PgBouncerCACrt = "ca.crt" PgBouncerTLSCrt = "tls.crt" PgBouncerTLSKey = "tls.key" PgBouncerDatabasePortName = "db" PgBouncerPrimaryServicePortName = "primary" PgBouncerDatabasePort = 5432 PgBouncerConfigFile = "pgbouncer.ini" PgBouncerAdminUsername = "pgbouncer" PgBouncerDefaultPoolMode = "session" PgBouncerDefaultIgnoreStartupParameters = "empty" BackendSecretResourceVersion = "backend-secret-resource-version" // =========================== Pgpool Constants ============================ EnvPostgresUsername = "POSTGRES_USERNAME" EnvPgpoolPcpUser = "PGPOOL_PCP_USER" EnvPgpoolPcpPassword = "PGPOOL_PCP_PASSWORD" EnvPgpoolPasswordEncryptionMethod = "PGPOOL_PASSWORD_ENCRYPTION_METHOD" EnvEnablePoolPasswd = "PGPOOL_ENABLE_POOL_PASSWD" EnvSkipPasswdEncryption = "PGPOOL_SKIP_PASSWORD_ENCRYPTION" PgpoolConfigSecretMountPath = "/config" PgpoolConfigVolumeName = "pgpool-config" PgpoolContainerName = "pgpool" PgpoolDefaultServicePort = 9999 PgpoolMonitoringDefaultServicePort = 9719 PgpoolPcpPort = 9595 PgpoolExporterDatabase = "postgres" EnvPgpoolExporterDatabase = "POSTGRES_DATABASE" EnvPgpoolService = "PGPOOL_SERVICE" EnvPgpoolServicePort = "PGPOOL_SERVICE_PORT" EnvPgpoolSSLMode = "SSLMODE" EnvPgpoolExporterConnectionString = "DATA_SOURCE_NAME" PgpoolDefaultSSLMode = "disable" PgpoolExporterContainerName = "exporter" PgpoolAuthUsername = "pcp" SyncPeriod = 10 PgpoolTlsVolumeName = "certs" PgpoolTlsVolumeMountPath = "/config/tls" PgpoolExporterTlsVolumeName = "exporter-certs" PgpoolExporterTlsVolumeMountPath = "/tls/certs" PgpoolRootUser = "postgres" PgpoolPrimaryServicePortName = "primary" PgpoolDatabasePortName = "db" PgpoolPcpPortName = "pcp" PgpoolCustomConfigFile = "pgpool.conf" KubeDBZooKeeperRoleName = "kubedb:zookeeper-version-reader" KubeDBZooKeeperRoleBindingName = "kubedb:zookeeper-version-reader" ZooKeeperClientPortName = "client" ZooKeeperClientPort = 2181 ZooKeeperQuorumPortName = "quorum" ZooKeeperQuorumPort = 2888 ZooKeeperLeaderElectionPortName = "leader-election" ZooKeeperLeaderElectionPort = 3888 ZooKeeperMetricsPortName = "metrics" ZooKeeperMetricsPort = 7000 ZooKeeperAdminServerPortName = "admin-server" ZooKeeperAdminServerPort = 8080 ZooKeeperNode = "/kubedb_health_checker_node" ZooKeeperData = "kubedb_health_checker_data" ZooKeeperConfigVolumeName = "zookeeper-config" ZooKeeperConfigVolumePath = "/conf" ZooKeeperDataVolumeName = "data" ZooKeeperDataVolumePath = "/data" ZooKeeperScriptVolumeName = "script-vol" ZooKeeperScriptVolumePath = "/scripts" ZooKeeperContainerName = ResourceSingularZooKeeper ZooKeeperInitContainerName = ResourceSingularZooKeeper + "-init" ZooKeeperConfigFileName = "zoo.cfg" ZooKeeperLog4jPropertiesFileName = "log4j.properties" ZooKeeperLog4jQuietPropertiesFileName = "log4j-quiet.properties" EnvZooKeeperDomain = "DOMAIN" EnvZooKeeperQuorumPort = "QUORUM_PORT" EnvZooKeeperLeaderPort = "LEADER_PORT" EnvZooKeeperClientHost = "CLIENT_HOST" EnvZooKeeperClientPort = "CLIENT_PORT" EnvZooKeeperAdminServerHost = "ADMIN_SERVER_HOST" EnvZooKeeperAdminServerPort = "ADMIN_SERVER_PORT" EnvZooKeeperClusterName = "CLUSTER_NAME" EnvZooKeeperClusterSize = "CLUSTER_SIZE" EnvZooKeeperUser = "ZK_USER" EnvZooKeeperPassword = "ZK_PASSWORD" EnvZooKeeperJaasFilePath = "ZK_JAAS_FILE_PATH" EnvZooKeeperJVMFLags = "JVMFLAGS" ZooKeeperSuperUsername = "super" ZooKeeperSASLAuthLoginConfig = "-Djava.security.auth.login.config" ZooKeeperJaasFilePath = "/data/jaas.conf" )
const ( // used for Databases that have started provisioning DatabaseProvisioningStarted = "ProvisioningStarted" // used for Databases which completed provisioning DatabaseProvisioned = "Provisioned" // used for Databases that are currently being initialized using stash DatabaseDataRestoreStarted = "DataRestoreStarted" // used for Databases that have been initialized using stash DatabaseDataRestored = "DataRestored" // used for Databases whose pods are ready DatabaseReplicaReady = "ReplicaReady" // used for Databases that are currently accepting connection DatabaseAcceptingConnection = "AcceptingConnection" // used for Databases that report status OK (also implies that we can connect to it) DatabaseReady = "Ready" // used for database that reports ok when all the instances are available ServerReady = "ServerReady" // used for Databases that are paused DatabasePaused = "Paused" // used for Databases that are halted DatabaseHalted = "Halted" // used for pausing health check of a Database DatabaseHealthCheckPaused = "HealthCheckPaused" // used for Databases whose internal user credentials are synced InternalUsersSynced = "InternalUsersSynced" // user for databases that have read access DatabaseReadAccess = "DatabaseReadAccess" // user for databases that have write access DatabaseWriteAccess = "DatabaseWriteAccess" // Condition reasons DataRestoreStartedByExternalInitializer = "DataRestoreStartedByExternalInitializer" DataRestoreInterrupted = "DataRestoreInterrupted" DatabaseSuccessfullyRestored = "SuccessfullyDataRestored" FailedToRestoreData = "FailedToRestoreData" AllReplicasAreReady = "AllReplicasReady" SomeReplicasAreNotReady = "SomeReplicasNotReady" DatabaseAcceptingConnectionRequest = "DatabaseAcceptingConnectionRequest" DatabaseNotAcceptingConnectionRequest = "DatabaseNotAcceptingConnectionRequest" ReadinessCheckSucceeded = "ReadinessCheckSucceeded" ReadinessCheckFailed = "ReadinessCheckFailed" DatabaseProvisioningStartedSuccessfully = "DatabaseProvisioningStartedSuccessfully" DatabaseSuccessfullyProvisioned = "DatabaseSuccessfullyProvisioned" DatabaseHaltedSuccessfully = "DatabaseHaltedSuccessfully" DatabaseReadAccessCheckSucceeded = "DatabaseReadAccessCheckSucceeded" DatabaseWriteAccessCheckSucceeded = "DatabaseWriteAccessCheckSucceeded" DatabaseReadAccessCheckFailed = "DatabaseReadAccessCheckFailed" DatabaseWriteAccessCheckFailed = "DatabaseWriteAccessCheckFailed" InternalUsersCredentialSyncFailed = "InternalUsersCredentialsSyncFailed" InternalUsersCredentialsSyncedSuccessfully = "InternalUsersCredentialsSyncedSuccessfully" )
List of possible condition types for a KubeDB object
const ( KafkaPortNameREST = "http" KafkaPortNameController = "controller" KafkaPortNameCruiseControlListener = "cc-listener" KafkaPortNameCruiseControlREST = "cc-rest" KafkaBrokerClientPortName = "broker" KafkaControllerClientPortName = "controller" KafkaPortNameLocal = "local" KafkaTopicNameHealth = "kafka-health" KafkaTopicDeletionThresholdOffset = 1000 KafkaBrokerMaxID = 1000 KafkaRESTPort = 9092 KafkaControllerRESTPort = 9093 KafkaLocalRESTPort = 29092 KafkaCruiseControlRESTPort = 9090 KafkaCruiseControlListenerPort = 9094 KafkaCCDefaultInNetwork = 500000 KafkaCCDefaultOutNetwork = 500000 KafkaContainerName = "kafka" KafkaUserAdmin = "admin" KafkaNodeRoleSet = "set" KafkaNodeRolesCombined = "controller,broker" KafkaNodeRolesController = "controller" KafkaNodeRolesBrokers = "broker" KafkaNodeRolesCruiseControl = "cruise-control" KafkaStandbyServiceSuffix = "standby" KafkaBrokerListener = "KafkaBrokerListener" KafkaControllerListener = "KafkaControllerListener" KafkaDataDir = "/var/log/kafka" KafkaMetaDataDir = "/var/log/kafka/metadata" KafkaCertDir = "/var/private/ssl" KafkaConfigDir = "/opt/kafka/config/kafkaconfig" KafkaTempConfigDir = "/opt/kafka/config/temp-config" KafkaCustomConfigDir = "/opt/kafka/config/custom-config" KafkaCCTempConfigDir = "/opt/cruise-control/temp-config" KafkaCCCustomConfigDir = "/opt/cruise-control/custom-config" KafkaCapacityConfigPath = "config/capacity.json" KafkaConfigFileName = "config.properties" KafkaServerCustomConfigFileName = "server.properties" KafkaBrokerCustomConfigFileName = "broker.properties" KafkaControllerCustomConfigFileName = "controller.properties" KafkaSSLPropertiesFileName = "ssl.properties" KafkaClientAuthConfigFileName = "clientauth.properties" KafkaCruiseControlConfigFileName = "cruisecontrol.properties" KafkaCruiseControlCapacityConfigFileName = "capacity.json" KafkaCruiseControlBrokerSetConfigFileName = "brokerSets.json" KafkaCruiseControlClusterConfigFileName = "clusterConfigs.json" KafkaCruiseControlLog4jConfigFileName = "log4j.properties" KafkaCruiseControlUIConfigFileName = "config.csv" KafkaListeners = "listeners" KafkaAdvertisedListeners = "advertised.listeners" KafkaBootstrapServers = "bootstrap.servers" KafkaListenerSecurityProtocolMap = "listener.security.protocol.map" KafkaControllerNodeCount = "controller.count" KafkaControllerQuorumVoters = "controller.quorum.voters" KafkaControllerListenersName = "controller.listener.names" KafkaInterBrokerListener = "inter.broker.listener.name" KafkaNodeRole = "process.roles" KafkaClusterID = "cluster.id" KafkaClientID = "client.id" KafkaDataDirName = "log.dirs" KafkaMetadataDirName = "metadata.log.dir" KafkaKeystorePasswordKey = "keystore_password" KafkaTruststorePasswordKey = "truststore_password" KafkaServerKeystoreKey = "server.keystore.jks" KafkaServerTruststoreKey = "server.truststore.jks" KafkaSecurityProtocol = "security.protocol" KafkaGracefulShutdownTimeout = "task.shutdown.graceful.timeout.ms" KafkaTopicConfigProviderClass = "topic.config.provider.class" KafkaCapacityConfigFile = "capacity.config.file" KafkaTwoStepVerification = "two.step.verification.enabled" KafkaBrokerFailureDetection = "kafka.broker.failure.detection.enable" KafkaMetricSamplingInterval = "metric.sampling.interval.ms" KafkaPartitionMetricsWindow = "partition.metrics.window.ms" KafkaPartitionMetricsWindowNum = "num.partition.metrics.windows" KafkaSampleStoreTopicReplicationFactor = "sample.store.topic.replication.factor" KafkaEndpointVerifyAlgo = "ssl.endpoint.identification.algorithm" KafkaKeystoreLocation = "ssl.keystore.location" KafkaTruststoreLocation = "ssl.truststore.location" KafkaKeystorePassword = "ssl.keystore.password" KafkaTruststorePassword = "ssl.truststore.password" KafkaKeyPassword = "ssl.key.password" KafkaTruststoreType = "ssl.truststore.type" KafkaKeystoreType = "ssl.keystore.type" KafkaTruststoreTypeJKS = "JKS" KafkaKeystoreDefaultPass = "changeit" KafkaMetricReporters = "metric.reporters" KafkaAutoCreateTopicEnable = "auto.create.topics.enable" KafkaEnabledSASLMechanisms = "sasl.enabled.mechanisms" KafkaSASLMechanism = "sasl.mechanism" KafkaMechanismControllerProtocol = "sasl.mechanism.controller.protocol" KafkaSASLInterBrokerProtocol = "sasl.mechanism.inter.broker.protocol" KafkaSASLPLAINConfigKey = "listener.name.SASL_PLAINTEXT.plain.sasl.jaas.config" KafkaSASLSSLConfigKey = "listener.name.SASL_SSL.plain.sasl.jaas.config" KafkaSASLJAASConfig = "sasl.jaas.config" KafkaServiceName = "serviceName" KafkaSASLPlainMechanism = "PLAIN" KafkaCCMetricSamplerClass = "metric.sampler.class" KafkaCCCapacityConfig = "capacity.config.file" KafkaCCTwoStepVerificationEnabled = "two.step.verification.enabled" KafkaCCBrokerFailureDetectionEnabled = "kafka.broker.failure.detection.enable" KafkaOffSetTopicReplica = "offsets.topic.replication.factor" KafkaTransactionStateLogReplica = "transaction.state.log.replication.factor" KafkaTransactionSateLogMinISR = "transaction.state.log.min.isr" KafkaLogCleanerMinLagSec = "log.cleaner.min.compaction.lag.ms" KafkaLogCleanerBackoffMS = "log.cleaner.backoff.ms" KafkaCCKubernetesMode = "cruise.control.metrics.reporter.kubernetes.mode" KafkaCCBootstrapServers = "cruise.control.metrics.reporter.bootstrap.servers" KafkaCCMetricTopicAutoCreate = "cruise.control.metrics.topic.auto.create" KafkaCCMetricTopicNumPartition = "cruise.control.metrics.topic.num.partitions" KafkaCCMetricTopicReplica = "cruise.control.metrics.topic.replication.factor" KafkaCCMetricReporterSecurityProtocol = "cruise.control.metrics.reporter.security.protocol" KafkaCCMetricReporterSaslMechanism = "cruise.control.metrics.reporter.sasl.mechanism" KafkaCCSampleLoadingThreadsNum = "num.sample.loading.threads" KafkaCCMinSamplesPerBrokerWindow = "min.samples.per.broker.metrics.window" KafkaVolumeData = "data" KafkaVolumeConfig = "kafkaconfig" KafkaVolumeTempConfig = "temp-config" KafkaVolumeCustomConfig = "custom-config" EnvKafkaUser = "KAFKA_USER" EnvKafkaPassword = "KAFKA_PASSWORD" KafkaListenerPLAINTEXTProtocol = "PLAINTEXT" KafkaListenerSASLProtocol = "SASL_PLAINTEXT" KafkaListenerSASLSSLProtocol = "SASL_SSL" KafkaCCMetricsSampler = "com.linkedin.kafka.cruisecontrol.monitor.sampling.CruiseControlMetricsReporterSampler" KafkaAdminTopicConfigProvider = "com.linkedin.kafka.cruisecontrol.config.KafkaAdminTopicConfigProvider" KafkaCCMetricReporter = "com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlMetricsReporter" KafkaJMXMetricReporter = "org.apache.kafka.common.metrics.JmxReporter" // =========================== Solr Constants ============================ ResourceCodeSolr = "sl" ResourceKindSolr = "Solr" ResourceSingularSolr = "solr" ResourcePluralSolr = "solrs" SolrPortName = "http" SolrRestPort = 8983 SolrExporterPort = 9854 SolrSecretKey = "solr.xml" SolrContainerName = "solr" SolrInitContainerName = "init-solr" SolrAdmin = "admin" SecurityJSON = "security.json" SolrZkDigest = "zk-digest" SolrZkReadonlyDigest = "zk-digest-readonly" SolrVolumeDefaultConfig = "default-config" SolrVolumeCustomConfig = "custom-config" SolrVolumeAuthConfig = "auth-config" SolrVolumeData = "data" SolrVolumeConfig = "slconfig" DistLibs = "/opt/solr/dist" ContribLibs = "/opt/solr/contrib/%s/lib" SysPropLibPlaceholder = "${solr.sharedLib:}" SolrHomeDir = "/var/solr" SolrDataDir = "/var/solr/data" SolrTempConfigDir = "/temp-config" SolrCustomConfigDir = "/custom-config" SolrSecurityConfigDir = "/var/security" SolrCloudHostKey = "host" SolrCloudHostValue = "" SolrCloudHostPortKey = "hostPort" SolrCloudHostPortValue = 80 SolrCloudHostContextKey = "hostContext" SolrCloudHostContextValue = "solr" SolrCloudGenericCoreNodeNamesKey = "genericCoreNodeNames" SolrCloudGenericCoreNodeNamesValue = true SolrCloudZKClientTimeoutKey = "zkClientTimeout" SolrCloudZKClientTimeoutValue = 30000 SolrCloudDistribUpdateSoTimeoutKey = "distribUpdateSoTimeout" SolrCloudDistribUpdateSoTimeoutValue = 600000 SolrCloudDistribUpdateConnTimeoutKey = "distribUpdateConnTimeout" SolrCloudDistribUpdateConnTimeoutValue = 60000 SolrCloudZKCredentialProviderKey = "zkCredentialsProvider" SolrCloudZKCredentialProviderValue = "org.apache.solr.common.cloud.DigestZkCredentialsProvider" SolrCloudZKAclProviderKey = "zkACLProvider" SolrCloudZKAclProviderValue = "org.apache.solr.common.cloud.DigestZkACLProvider" SolrCloudZKCredentialsInjectorKey = "zkCredentialsInjector" SolrCloudZKCredentialsInjectorValue = "org.apache.solr.common.cloud.VMParamsZkCredentialsInjector" ShardHandlerFactorySocketTimeoutKey = "socketTimeout" ShardHandlerFactorySocketTimeoutValue = 600000 ShardHandlerFactoryConnTimeoutKey = "connTimeout" ShardHandlerFactoryConnTimeoutValue = 60000 SolrKeysMaxBooleanClausesKey = "maxBooleanClauses" SolrKeysMaxBooleanClausesValue = "solr.max.booleanClauses" SolrKeysShardLibValue = "solr.sharedLib" SolrKeysHostPortKey = "hostPort" SolrKeysHostPortValue = "solr.port.advertise" SolrKeysAllowPathsKey = "allowPaths" SolrKeysAllowPathsValue = "solr.allowPaths" SolrConfMaxBooleanClausesKey = "maxBooleanClauses" SolrConfMaxBooleanClausesValue = 1024 SolrConfAllowPathsKey = "allowPaths" SolrConfAllowPathsValue = "" SolrConfSolrCloudKey = "solrcloud" SolrConfShardHandlerFactoryKey = "shardHandlerFactory" )
const ( DruidConfigDirCommon = "/opt/druid/conf/druid/cluster/_common" DruidConfigDirCoordinatorOverlord = "/opt/druid/conf/druid/cluster/master/coordinator-overlord" DruidConfigDirHistoricals = "/opt/druid/conf/druid/cluster/data/historical" DruidConfigDirMiddleManagers = "/opt/druid/conf/druid/cluster/data/middleManager" DruidConfigDirBrokers = "/opt/druid/conf/druid/cluster/query/broker" DruidConfigDirRouters = "/opt/druid/conf/druid/cluster/query/router" DruidCConfigDirMySQLMetadata = "/opt/druid/extensions/mysql-metadata-storage" DruidVolumeOperatorConfig = "operator-config-volume" DruidVolumeMainConfig = "main-config-volume" DruidVolumeCustomConfig = "custom-config" DruidOperatorConfigDir = "/tmp/config/operator-config" DruidMainConfigDir = "/opt/druid/conf" DruidCustomConfigDir = "/tmp/config/custom-config" DruidVolumeCommonConfig = "common-config-volume" DruidCommonConfigFile = "common.runtime.properties" DruidCoordinatorsJVMConfigFile = "coordinators.jvm.config" DruidHistoricalsJVMConfigFile = "historicals.jvm.config" DruidBrokersJVMConfigFile = "brokers.jvm.config" DruidMiddleManagersJVMConfigFile = "middleManagers.jvm.config" DruidRoutersJVMConfigFile = "routers.jvm.config" DruidCoordinatorsConfigFile = "coordinators.properties" DruidHistoricalsConfigFile = "historicals.properties" DruidMiddleManagersConfigFile = "middleManagers.properties" DruidBrokersConfigFile = "brokers.properties" DruidRoutersConfigFile = "routers.properties" DruidVolumeMySQLMetadataStorage = "mysql-metadata-storage" DruidContainerName = "druid" DruidInitContainerName = "init-druid" DruidUserAdmin = "admin" EnvDruidAdminPassword = "DRUID_ADMIN_PASSWORD" EnvDruidMetdataStoragePassword = "DRUID_METADATA_STORAGE_PASSWORD" EnvDruidZKServicePassword = "DRUID_ZK_SERVICE_PASSWORD" EnvDruidCoordinatorAsOverlord = "DRUID_COORDINATOR_AS_OVERLORD" DruidPortCoordinators = 8081 DruidPortOverlords = 8090 DruidPortHistoricals = 8083 DruidPortMiddleManagers = 8091 DruidPortBrokers = 8082 DruidPortRouters = 8888 DruidExporterPort = 9104 // Common Runtime Configurations Properties // ZooKeeperSpec DruidZKServiceHost = "druid.zk.service.host" DruidZKPathsBase = "druid.zk.paths.base" DruidZKServiceCompress = "druid.zk.service.compress" DruidZKServiceUserKey = "druid.zk.service.user" DruidZKServicePasswordKey = "druid.zk.service.pwd" DruidZKServicePasswordEnvConfig = "{\"type\": \"environment\", \"variable\": \"DRUID_ZK_SERVICE_PASSWORD\"}" // Metadata Storage DruidMetadataStorageTypeKey = "druid.metadata.storage.type" DruidMetadataStorageConnectorConnectURI = "druid.metadata.storage.connector.connectURI" DruidMetadataStorageConnectURIPrefixMySQL = "jdbc:mysql://" DruidMetadataStorageConnectURIPrefixPostgreSQL = "jdbc:postgresql://" DruidMetadataStorageConnectorUser = "druid.metadata.storage.connector.user" DruidMetadataStorageConnectorPassword = "druid.metadata.storage.connector.password" DruidMetadataStorageConnectorPasswordEnvConfig = "{\"type\": \"environment\", \"variable\": \"DRUID_METADATA_STORAGE_PASSWORD\"}" DruidMetadataStorageCreateTables = "druid.metadata.storage.connector.createTables" // Deep Storage DruidDeepStorageTypeKey = "druid.storage.type" DruidDeepStorageTypeS3 = "s3" DruidDeepStorageBaseKey = "druid.storage.baseKey" DruidDeepStorageBucket = "druid.storage.bucket" DruidS3AccessKey = "druid.s3.accessKey" DruidS3SecretKey = "druid.s3.secretKey" DruidS3EndpointSigningRegion = "druid.s3.endpoint.signingRegion" DruidS3EnablePathStyleAccess = "druid.s3.enablePathStyleAccess" DruidS3EndpointURL = "druid.s3.endpoint.url" // Indexing service logs DruidIndexerLogsType = "druid.indexer.logs.type" DruidIndexerLogsS3Bucket = "druid.indexer.logs.s3Bucket" DruidIndexerLogsS3Prefix = "druid.indexer.logs.s3Prefix" DruidEnableLookupSyncOnStartup = "druid.lookup.enableLookupSyncOnStartup" // Authentication DruidAuthAuthenticationChain = "druid.auth.authenticatorChain" DruidAuthAuthenticationChainValueBasic = "[\"basic\"]" DruidAuthAuthenticatorBasicType = "druid.auth.authenticator.basic.type" DruidAuthAuthenticatorBasicTypeValue = "basic" DruidAuthAuthenticatorBasicInitialAdminPassword = "druid.auth.authenticator.basic.initialAdminPassword" DruidAuthAuthenticatorBasicInitialAdminPasswordEnvConfig = "{\"type\": \"environment\", \"variable\": \"DRUID_ADMIN_PASSWORD\"}" DruidAuthAuthenticatorBasicInitialInternalClientPassword = "druid.auth.authenticator.basic.initialInternalClientPassword" DruidAuthAuthenticatorBasicCredentialsValidatorType = "druid.auth.authenticator.basic.credentialsValidator.type" DruidAuthAuthenticatorBasicSkipOnFailure = "druid.auth.authenticator.basic.skipOnFailure" DruidAuthAuthenticatorBasicAuthorizerName = "druid.auth.authenticator.basic.authorizerName" // Escalator DruidAuthEscalatorType = "druid.escalator.type" DruidAuthEscalatorInternalClientUsername = "druid.escalator.internalClientUsername" DruidAuthEscalatorInternalClientPassword = "druid.escalator.internalClientPassword" DruidAuthEscalatorAuthorizerName = "druid.escalator.authorizerName" DruidAuthAuthorizers = "druid.auth.authorizers" DruidAuthAuthorizerBasicType = "druid.auth.authorizer.basic.type" // Extension Load List DruidExtensionLoadListKey = "druid.extensions.loadList" DruidExtensionLoadList = "" /* 217-byte string literal not displayed */ DruidExtensionAvro = "druid-avro-extensions" DruidExtensionS3 = "druid-s3-extensions" DruidExtensionHDFS = "druid-hdfs-storage" DruidExtensionGoogle = "druid-google-extensions" DruidExtensionAzure = "druid-azure-extensions" DruidExtensionKafkaIndexingService = "druid-kafka-indexing-service" DruidExtensionDataSketches = "druid-datasketches" DruidExtensionKubernetes = "druid-kubernetes-extensions" DruidExtensionMySQLMetadataStorage = "mysql-metadata-storage" DruidExtensionPostgreSQLMetadataStorage = "postgresql-metadata-storage" DruidExtensionBasicSecurity = "druid-basic-security" DruidExtensionMultiStageQuery = "druid-multi-stage-query" DruidExtensionPrometheusEmitter = "prometheus-emitter" DruidService = "druid.service" // Monitoring Configurations DruidEmitter = "druid.emitter" DruidEmitterPrometheus = "prometheus" DruidEmitterPrometheusPortKey = "druid.emitter.prometheus.port" DruidEmitterPrometheusPortVal = 9104 DruidMonitoringMonitorsKey = "druid.monitoring.monitors" DruidEmitterPrometheusDimensionMapPath = "druid.emitter.prometheus.dimensionMapPath" DruidEmitterPrometheusStrategy = "druid.emitter.prometheus.strategy" DruidMetricsJVMMonitor = "org.apache.druid.java.util.metrics.JvmMonitor" DruidMetricsServiceStatusMonitor = "org.apache.druid.server.metrics.ServiceStatusMonitor" DruidMetricsQueryCountStatsMonitor = "org.apache.druid.server.metrics.QueryCountStatsMonitor" DruidMonitoringHistoricalMetricsMonitor = "org.apache.druid.server.metrics.HistoricalMetricsMonitor" DruidMonitoringSegmentsStatsMonitor = "org.apache.druid.server.metrics.SegmentStatsMonitor" DruidMonitoringWorkerTaskCountsStatsMonitor = "org.apache.druid.server.metrics.WorkerTaskCountStatsMonitor" DruidMonitoringQueryCountStatsMonitor = "org.apache.druid.server.metrics.QueryCountStatsMonitor" DruidMonitoringTaskCountStatsMonitor = "org.apache.druid.server.metrics.TaskCountStatsMonitor" DruidMonitoringSysMonitor = "org.apache.druid.java.util.metrics.SysMonitor" /// Coordinators Configurations DruidCoordinatorStartDelay = "druid.coordinator.startDelay" DruidCoordinatorPeriod = "druid.coordinator.period" DruidIndexerQueueStartDelay = "druid.indexer.queue.startDelay" DruidManagerSegmentsPollDuration = "druid.manager.segments.pollDuration" DruidCoordinatorKillAuditLogOn = "druid.coordinator.kill.audit.on" DruidMillisToWaitBeforeDeleting = "millisToWaitBeforeDeleting" DruidCoordinatorAsOverlord = "druid.coordinator.asOverlord.enabled" DruidCoordinatorAsOverlordOverlordService = "druid.coordinator.asOverlord.overlordService" /// Overlords Configurations DruidServiceNameOverlords = "druid/overlord" DruidIndexerStorageType = "druid.indexer.storage.type" DruidIndexerAuditLogEnabled = "druid.indexer.auditLog.enabled" DruidIndexerLogsKillEnables = "druid.indexer.logs.kill.enabled" DruidIndexerLogsKillDurationToRetain = "druid.indexer.logs.kill.durationToRetain" DruidIndexerLogsKillInitialDelay = "druid.indexer.logs.kill.initialDelay" DruidIndexerLogsKillDelay = "druid.indexer.logs.kill.delay" DruidEmitterLoggingLogLevel = "druid.emitter.logging.logLevel" /// Historicals Configurations // Properties DruidProcessingNumOfThreads = "druid.processing.numThreads" // Segment Cache DruidHistoricalsSegmentCacheLocations = "druid.segmentCache.locations" DruidHistoricalsSegmentCacheDropSegmentDelayMillis = "druid.segmentCache.dropSegmentDelayMillis" DruidHistoricalsSegmentCacheDir = "/druid/data/segments" DruidVolumeHistoricalsSegmentCache = "segment-cache" // Query Cache DruidHistoricalCacheUseCache = "druid.historical.cache.useCache" DruidHistoricalCachePopulateCache = "druid.historical.cache.populateCache" DruidCacheSizeInBytes = "druid.cache.sizeInBytes" // Values DruidSegmentCacheLocationsDefaultValue = "[{\"path\":\"/druid/data/segments\",\"maxSize\":10737418240}]" /// MiddleManagers Configurations // Properties DruidWorkerCapacity = "druid.worker.capacity" DruidIndexerTaskBaseTaskDir = "druid.indexer.task.baseTaskDir" DruidWorkerTaskBaseTaskDirKey = "druid.worker.task.baseTaskDir" DruidWorkerTaskBaseTaskDir = "/var/druid/task" DruidWorkerBaseTaskDirSize = "druid.worker.baseTaskDirSize" DruidIndexerForkPropertyDruidProcessingBufferSizeBytes = "druid.indexer.fork.property.druid.processing.buffer.sizeBytes" DruidMiddleManagersVolumeBaseTaskDir = "base-task-dir" DruidVolumeMiddleManagersBaseTaskDir = "base-task-dir" // Values DruidIndexerTaskBaseTaskDirValue = "/druid/data/baseTaskDir" /// Brokers Configurations DruidBrokerHTTPNumOfConnections = "druid.broker.http.numConnections" DruidSQLEnable = "druid.sql.enable" /// Routers Configurations DruidRouterHTTPNumOfConnections = "druid.router.http.numConnections" DruidRouterHTTPNumOfMaxThreads = "druid.router.http.numMaxThreads" // Common Nodes Configurations // Properties DruidPlaintextPort = "druid.plaintextPort" DruidProcessingBufferSizeBytes = "druid.processing.buffer.sizeBytes" DruidProcessingNumOfMergeBuffers = "druid.processing.numMergeBuffers" DruidServerHTTPNumOfThreads = "druid.server.http.numThreads" // Health Check DruidHealthDataZero = "0" DruidHealthDataOne = "1" )
=========================== Druid Constants ============================
const ( RabbitMQAMQPPort = 5672 RabbitMQPeerDiscoveryPort = 4369 RabbitMQManagementUIPort = 15672 RabbitMQExporterPort = 15692 RabbitMQInterNodePort = 25672 RabbitMQVolumeData = "data" RabbitMQVolumeConfig = "rabbitmqconfig" RabbitMQVolumeTempConfig = "temp-config" RabbitMQVolumeCustomConfig = "custom-config" RabbitMQDataDir = "/var/lib/rabbitmq/mnesia" RabbitMQConfigDir = "/config/" RabbitMQPluginsDir = "/etc/rabbitmq/" RabbitMQCertDir = "/var/private/ssl" RabbitMQTempConfigDir = "/tmp/config/" RabbitMQCustomConfigDir = "/tmp/config/custom_config/" RabbitMQConfigVolName = "rabbitmq-config" RabbitMQPluginsVolName = "rabbitmq-plugins" RabbitMQTempConfigVolName = "temp-config" RabbitMQContainerName = "rabbitmq" RabbitMQInitContainerName = "rabbitmq-init" RabbitMQManagementPlugin = "rabbitmq_management" RabbitMQPeerdiscoveryPlugin = "rabbitmq_peer_discovery_k8s" RabbitMQFederationPlugin = "rabbitmq_federation" RabbitMQFederationManagementPlugin = "rabbitmq_federation_management" RabbitMQShovelPlugin = "rabbitmq_shovel" RabbitMQShovelManagementPlugin = "rabbitmq_shovel_management" RabbitMQWebDispatchPlugin = "rabbitmq_web_dispatch" RabbitMQLoopBackUserKey = "loopback_users" RabbitMQLoopBackUserVal = "none" RabbitMQDefaultTCPListenerKey = "listeners.tcp.default" RabbitMQDefaultSSLListenerKey = "listeners.ssl.default" RabbitMQDefaultTCPListenerVal = "5672" RabbitMQDefaultTLSListenerVal = "5671" RabbitMQQueueMasterLocatorKey = "queue_master_locator" RabbitMQQueueMasterLocatorVal = "min-masters" RabbitMQDiskFreeLimitKey = "disk_free_limit.absolute" RabbitMQDiskFreeLimitVal = "2GB" RabbitMQPartitionHandingKey = "cluster_partition_handling" RabbitMQPartitionHandingVal = "pause_minority" RabbitMQPeerDiscoveryKey = "cluster_formation.peer_discovery_backend" RabbitMQPeerDiscoveryVal = "rabbit_peer_discovery_k8s" RabbitMQK8sHostKey = "cluster_formation.k8s.host" RabbitMQK8sHostVal = "kubernetes.default.svc.cluster.local" RabbitMQK8sAddressTypeKey = "cluster_formation.k8s.address_type" RabbitMQK8sAddressTypeVal = "hostname" RabbitMQNodeCleanupWarningKey = "cluster_formation.node_cleanup.only_log_warning" RabbitMQNodeCleanupWarningVal = "true" RabbitMQLogFileLevelKey = "log.file.level" RabbitMQLogFileLevelVal = "info" RabbitMQLogConsoleKey = "log.console" RabbitMQLogConsoleVal = "true" RabbitMQLogConsoleLevelKey = "log.console.level" RabbitMQLogConsoleLevelVal = "info" RabbitMQDefaultUserKey = "default_user" RabbitMQDefaultUserVal = "$(RABBITMQ_DEFAULT_USER)" RabbitMQDefaultPasswordKey = "default_pass" RabbitMQDefaultPasswordVal = "$(RABBITMQ_DEFAULT_PASS)" RabbitMQClusterNameKey = "cluster_name" RabbitMQK8sSvcNameKey = "cluster_formation.k8s.service_name" RabbitMQSSLOptionsCAKey = "ssl_options.cacertfile" RabbitMQSSLOptionsCertKey = "ssl_options.certfile" RabbitMQSSLOptionsPrivateKey = "ssl_options.keyfile" RabbitMQSSLOptionsVerifyKey = "ssl_options.verify" RabbitMQSSLOptionsFailIfNoPeerKey = "ssl_options.fail_if_no_peer_cert" RabbitMQConfigFileName = "rabbitmq.conf" RabbitMQEnabledPluginsFileName = "enabled_plugins" RabbitMQHealthCheckerQueueName = "kubedb-system" )
const ( // envs EnvFerretDBUser = "FERRETDB_PG_USER" EnvFerretDBPassword = "FERRETDB_PG_PASSWORD" EnvFerretDBHandler = "FERRETDB_HANDLER" EnvFerretDBPgURL = "FERRETDB_POSTGRESQL_URL" EnvFerretDBTLSPort = "FERRETDB_LISTEN_TLS" EnvFerretDBCAPath = "FERRETDB_LISTEN_TLS_CA_FILE" EnvFerretDBCertPath = "FERRETDB_LISTEN_TLS_CERT_FILE" EnvFerretDBKeyPath = "FERRETDB_LISTEN_TLS_KEY_FILE" FerretDBContainerName = "ferretdb" FerretDBMainImage = "ghcr.io/ferretdb/ferretdb" FerretDBUser = "postgres" FerretDBServerPath = "/etc/certs/server" FerretDBDefaultPort = 27017 FerretDBMetricsPort = 8080 FerretDBTLSPort = 27018 FerretDBMetricsPath = "/debug/metrics" )
=========================== FerretDB Constants ============================
const ( ClickHouseKeeperPort = 9181 ClickHouseDefaultHTTP = 8123 ClickHouseDefaultTLS = 8443 ClickHouseNativeTCP = 9000 ClickHouseNativeTLS = 9440 ClickhousePromethues = 9363 ClickHouseVolumeData = "data" ClickHouseDataDir = "/var/lib/clickhouse" ClickHouseConfigVolName = "clickhouse-config" ClickHouseConfigDir = "/etc/clickhouse-server/config.d" ClickHouseDefaultStorageSize = "2Gi" ClickHouseClusterConfigVolName = "cluster-config" ClickHouseClusterConfigDir = "/etc/clickhouse-server/conf.d" ClickHouseTempClusterConfigVolName = "temp-cluster-config" ClickHouseContainerName = "clickhouse" ClickHouseInitContainerName = "clickhouse-init" ClickHouseClusterConfigFile = "cluster-config.yaml" ClickHouseTempConfigDir = "/ch-tmp/config" ClickHouseTempDir = "/ch-tmp" ClickHouseUserConfigDir = "/etc/clickhouse-server/user.d" ClickHouseMacrosFileName = "macros.yaml" ClickHouseStandalone = "standalone" ClickHouseCluster = "cluster" ClickHouseHealthCheckerDatabase = "kubedb_system_db" ClickHouseHealthCheckerTable = "kubedb_system_table" ClickHouseServerConfigFile = "server-config.yaml" ClickHouseKeeperFileConfig = "keeper-config.yaml" )
const ( ResourceKindStatefulSet = "StatefulSet" ResourceKindPetSet = "PetSet" )
Resource kind related constants
const ( InitFromGit = "init-from-git" InitFromGitMountPath = "/git" GitSecretVolume = "git-secret" GitSecretMountPath = "/etc/git-secret" GitSyncContainerName = "git-sync" )
const ( ResourceCodeDruid = "dr" ResourceKindDruid = "Druid" ResourceSingularDruid = "druid" ResourcePluralDruid = "druids" )
const ( ResourceCodeElasticsearch = "es" ResourceKindElasticsearch = "Elasticsearch" ResourceSingularElasticsearch = "elasticsearch" ResourcePluralElasticsearch = "elasticsearches" )
const ( ResourceCodeEtcd = "etc" ResourceKindEtcd = "Etcd" ResourceSingularEtcd = "etcd" ResourcePluralEtcd = "etcds" )
const ( ResourceCodeFerretDB = "fr" ResourceKindFerretDB = "FerretDB" ResourceSingularFerretDB = "ferretdb" ResourcePluralFerretDB = "ferretdbs" )
const ( ResourceCodeKafka = "kf" ResourceKindKafka = "Kafka" ResourceSingularKafka = "kafka" ResourcePluralKafka = "kafkas" )
const ( ResourceCodeMariaDB = "md" ResourceKindMariaDB = "MariaDB" ResourceSingularMariaDB = "mariadb" ResourcePluralMariaDB = "mariadbs" )
const ( ResourceCodeMemcached = "mc" ResourceKindMemcached = "Memcached" ResourceSingularMemcached = "memcached" ResourcePluralMemcached = "memcacheds" )
const ( TLSCAKeyFileName = "ca.key" TLSCACertFileName = "ca.crt" MongoPemFileName = "mongo.pem" MongoClientFileName = "client.pem" MongoCertDirectory = "/var/run/mongodb/tls" MongoDBShardLabelKey = "mongodb.kubedb.com/node.shard" MongoDBConfigLabelKey = "mongodb.kubedb.com/node.config" MongoDBMongosLabelKey = "mongodb.kubedb.com/node.mongos" MongoDBTypeLabelKey = "mongodb.kubedb.com/node.type" MongoDBShardAffinityTemplateVar = "SHARD_INDEX" )
const ( ResourceCodeMongoDB = "mg" ResourceKindMongoDB = "MongoDB" ResourceSingularMongoDB = "mongodb" ResourcePluralMongoDB = "mongodbs" )
const ( ResourceCodeMSSQLServer = "ms" ResourceKindMSSQLServer = "MSSQLServer" ResourceSingularMSSQLServer = "mssqlserver" ResourcePluralMSSQLServer = "mssqlservers" )
const ( ResourceCodeMySQL = "my" ResourceKindMySQL = "MySQL" ResourceSingularMySQL = "mysql" ResourcePluralMySQL = "mysqls" )
const ( ResourceCodePerconaXtraDB = "px" ResourceKindPerconaXtraDB = "PerconaXtraDB" ResourceSingularPerconaXtraDB = "perconaxtradb" ResourcePluralPerconaXtraDB = "perconaxtradbs" )
const ( ResourceCodePgBouncer = "pb" ResourceKindPgBouncer = "PgBouncer" ResourceSingularPgBouncer = "pgbouncer" ResourcePluralPgBouncer = "pgbouncers" )
const ( ResourceCodePgpool = "pp" ResourceKindPgpool = "Pgpool" ResourceSingularPgpool = "pgpool" ResourcePluralPgpool = "pgpools" )
const ( ResourceCodePostgres = "pg" ResourceKindPostgres = "Postgres" ResourceSingularPostgres = "postgres" ResourcePluralPostgres = "postgreses" )
const ( ResourceCodeProxySQL = "prx" ResourceKindProxySQL = "ProxySQL" ResourceSingularProxySQL = "proxysql" ResourcePluralProxySQL = "proxysqls" )
const ( ResourceCodeRabbitmq = "rm" ResourceKindRabbitmq = "RabbitMQ" ResourceSingularRabbitmq = "rabbitmq" ResourcePluralRabbitmq = "rabbitmqs" )
const ( ResourceCodeRedisSentinel = "rds" ResourceKindRedisSentinel = "RedisSentinel" ResourceSingularRedisSentinel = "redissentinel" ResourcePluralRedisSentinel = "redissentinels" )
const ( ResourceCodeRedis = "rd" ResourceKindRedis = "Redis" ResourceSingularRedis = "redis" ResourcePluralRedis = "redises" )
const ( ResourceCodeSinglestore = "sdb" ResourceKindSinglestore = "Singlestore" ResourceSingularSinglestore = "singlestore" ResourcePluralSinglestore = "singlestores" )
const ( ResourceCodeZooKeeper = "zk" ResourceKindZooKeeper = "ZooKeeper" ResourceSingularZooKeeper = "zookeeper" ResourcePluralZooKeeper = "zookeepers" )
const (
ElasticsearchNodeAffinityTemplateVar = "NODE_ROLE"
)
const (
RedisShardAffinityTemplateVar = "SHARD_INDEX"
)
Variables ¶
var ( DefaultInitContainerResource = core.ResourceRequirements{ Requests: core.ResourceList{ core.ResourceCPU: resource.MustParse(".200"), core.ResourceMemory: resource.MustParse("256Mi"), }, Limits: core.ResourceList{ core.ResourceMemory: resource.MustParse("512Mi"), }, } DefaultResources = core.ResourceRequirements{ Requests: core.ResourceList{ core.ResourceCPU: resource.MustParse(".500"), core.ResourceMemory: resource.MustParse("1024Mi"), }, Limits: core.ResourceList{ core.ResourceMemory: resource.MustParse("1024Mi"), }, } // CoordinatorDefaultResources must be used for raft backed coordinators to avoid unintended leader switches CoordinatorDefaultResources = core.ResourceRequirements{ Requests: core.ResourceList{ core.ResourceCPU: resource.MustParse(".200"), core.ResourceMemory: resource.MustParse("256Mi"), }, Limits: core.ResourceList{ core.ResourceMemory: resource.MustParse("256Mi"), }, } // DefaultResourcesCPUIntensive is for MongoDB versions >= 6 DefaultResourcesCPUIntensive = core.ResourceRequirements{ Requests: core.ResourceList{ core.ResourceCPU: resource.MustParse(".800"), core.ResourceMemory: resource.MustParse("1024Mi"), }, Limits: core.ResourceList{ core.ResourceMemory: resource.MustParse("1024Mi"), }, } // DefaultResourcesMemoryIntensive must be used for elasticsearch // to avoid OOMKILLED while deploying ES V8 DefaultResourcesMemoryIntensive = core.ResourceRequirements{ Requests: core.ResourceList{ core.ResourceCPU: resource.MustParse(".500"), core.ResourceMemory: resource.MustParse("1.5Gi"), }, Limits: core.ResourceList{ core.ResourceMemory: resource.MustParse("1.5Gi"), }, } // DefaultResourcesCoreAndMemoryIntensive must be used for Solr DefaultResourcesCoreAndMemoryIntensiveSolr = core.ResourceRequirements{ Requests: core.ResourceList{ core.ResourceCPU: resource.MustParse(".900"), core.ResourceMemory: resource.MustParse("2Gi"), }, Limits: core.ResourceList{ core.ResourceMemory: resource.MustParse("2Gi"), }, } // DefaultResourcesMemoryIntensiveSDB must be used for Singlestore when enabled monitoring or version >= 8.5.x DefaultResourcesMemoryIntensiveSDB = core.ResourceRequirements{ Requests: core.ResourceList{ core.ResourceCPU: resource.MustParse(".500"), core.ResourceMemory: resource.MustParse("2Gi"), }, Limits: core.ResourceList{ core.ResourceMemory: resource.MustParse("2Gi"), }, } // DefaultResourcesMemoryIntensive must be used for Druid MiddleManagers DefaultResourcesMemoryIntensiveDruid = core.ResourceRequirements{ Requests: core.ResourceList{ core.ResourceCPU: resource.MustParse(".500"), core.ResourceMemory: resource.MustParse("2.5Gi"), }, Limits: core.ResourceList{ core.ResourceMemory: resource.MustParse("2.5Gi"), }, } )
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 (
DefaultClient client.Client
)
var PgpoolForbiddenEnvVars = []string{ EnvPostgresUsername, EnvPostgresPassword, EnvPgpoolPcpUser, EnvPgpoolPcpPassword, EnvPgpoolPasswordEncryptionMethod, EnvEnablePoolPasswd, EnvSkipPasswdEncryption, }
var PgpoolReservedVolumes = []string{ PgpoolConfigVolumeName, PgpoolTlsVolumeName, }
var PgpoolReservedVolumesMountPaths = []string{ PgpoolConfigSecretMountPath, PgpoolTlsVolumeMountPath, }
var SchemeGroupVersion = schema.GroupVersion{Group: kubedb.GroupName, Version: "v1alpha2"}
Functions ¶
func DefaultArbiter ¶ added in v0.38.0
func DefaultArbiter(computeOnly bool) core.ResourceRequirements
func FerretDBValidateEnvVar ¶ added in v0.41.0
func GetDatabasePods ¶ added in v0.24.0
func GetDatabasePods(db metav1.Object, stsLister appslister.StatefulSetLister, pods []core.Pod) ([]core.Pod, error)
func GetDatabasePodsByPetSetLister ¶ added in v0.44.0
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func GetServiceTemplate ¶ added in v0.15.0
func GetServiceTemplate(templates []NamedServiceTemplateSpec, alias ServiceAlias) ofst.ServiceTemplateSpec
GetServiceTemplate returns a pointer to the desired serviceTemplate referred by "aliaS". Otherwise, it returns nil.
func GetSharedBufferSizeForPostgres ¶ added in v0.19.0
GetSharedBufferSizeForPostgres this func takes a input type int64 which is in bytes return the 25% of the input in Bytes
func HasServiceTemplate ¶ added in v0.15.0
func HasServiceTemplate(templates []NamedServiceTemplateSpec, alias ServiceAlias) bool
HasServiceTemplate returns "true" if the desired serviceTemplate provided in "aliaS" is present in the serviceTemplate list. Otherwise, it returns "false".
func MySQLExporterTLSArg ¶ added in v0.16.0
func MySQLExporterTLSArg() string
func MySQLRequireSSLArg ¶ added in v0.16.0
func MySQLRequireSSLArg() string
func PgpoolGetMainContainerEnvs ¶ added in v0.41.0
func PgpoolValidateVersion ¶ added in v0.41.0
func PgpoolValidateVolumes ¶ added in v0.41.0
func PgpoolValidateVolumesMountPaths ¶ added in v0.41.0
func PgpoolValidateVolumesMountPaths(podTemplate *ofst.PodTemplateSpec) error
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func SetDefaultClient ¶ added in v0.38.0
func UsesAcmeIssuer ¶ added in v0.32.0
Types ¶
type AddressType ¶ added in v0.18.0
type AddressType string
+kubebuilder:validation:Enum=DNS;IP;IPv4;IPv6
const ( AddressTypeDNS AddressType = "DNS" // Uses spec.podIP as address for db pods. AddressTypeIP AddressType = "IP" // Uses first IPv4 address from spec.podIP, spec.podIPs fields as address for db pods. AddressTypeIPv4 AddressType = "IPv4" // Uses first IPv6 address from spec.podIP, spec.podIPs fields as address for db pods. AddressTypeIPv6 AddressType = "IPv6" )
func (AddressType) IsIP ¶ added in v0.18.0
func (a AddressType) IsIP() bool
type Age ¶ added in v0.29.0
type Age struct { // Populated by Provisioner when authSecret is created or Ops Manager when authSecret is updated. LastUpdateTimestamp metav1.Time `json:"lastUpdateTimestamp,omitempty"` }
func (*Age) DeepCopy ¶ added in v0.29.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Age.
func (*Age) DeepCopyInto ¶ added in v0.29.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AllowedConsumers ¶ added in v0.25.0
type AllowedConsumers struct { // Namespaces indicates namespaces from which Consumers may be attached to // // +optional // +kubebuilder:default={from: Same} Namespaces *ConsumerNamespaces `json:"namespaces,omitempty"` // Selector specifies a selector for consumers that are allowed to bind // to this database instance. // // +optional Selector *metav1.LabelSelector `json:"selector,omitempty"` }
AllowedConsumers defines which consumers may refer to a database instance.
func (*AllowedConsumers) DeepCopy ¶ added in v0.25.0
func (in *AllowedConsumers) DeepCopy() *AllowedConsumers
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllowedConsumers.
func (*AllowedConsumers) DeepCopyInto ¶ added in v0.25.0
func (in *AllowedConsumers) DeepCopyInto(out *AllowedConsumers)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArbiterSpec ¶ added in v0.38.0
type ArbiterSpec struct { // Compute Resources required by the sidecar container. // +optional Resources core.ResourceRequirements `json:"resources,omitempty"` // NodeSelector is a selector which must be true for the pod to fit on a node. // Selector which must match a node's labels for the pod to be scheduled on that node. // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ // +optional // +mapType=atomic NodeSelector map[string]string `json:"nodeSelector,omitempty"` // If specified, the pod's tolerations. // +optional Tolerations []core.Toleration `json:"tolerations,omitempty"` }
func (*ArbiterSpec) DeepCopy ¶ added in v0.38.0
func (in *ArbiterSpec) DeepCopy() *ArbiterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArbiterSpec.
func (*ArbiterSpec) DeepCopyInto ¶ added in v0.38.0
func (in *ArbiterSpec) DeepCopyInto(out *ArbiterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Archiver ¶ added in v0.38.0
type Archiver struct { // Pause is used to stop the archiver backup for the database // +optional Pause bool `json:"pause,omitempty"` // Ref is the name and namespace reference to the Archiver CR Ref kmapi.ObjectReference `json:"ref"` }
func (*Archiver) DeepCopy ¶ added in v0.38.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Archiver.
func (*Archiver) DeepCopyInto ¶ added in v0.38.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArchiverRecovery ¶ added in v0.38.0
type ArchiverRecovery struct { RecoveryTimestamp metav1.Time `json:"recoveryTimestamp"` // +optional EncryptionSecret *kmapi.ObjectReference `json:"encryptionSecret,omitempty"` // +optional ManifestRepository *kmapi.ObjectReference `json:"manifestRepository,omitempty"` // FullDBRepository means db restore + manifest restore FullDBRepository *kmapi.ObjectReference `json:"fullDBRepository,omitempty"` }
func (*ArchiverRecovery) DeepCopy ¶ added in v0.38.0
func (in *ArchiverRecovery) DeepCopy() *ArchiverRecovery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArchiverRecovery.
func (*ArchiverRecovery) DeepCopyInto ¶ added in v0.38.0
func (in *ArchiverRecovery) DeepCopyInto(out *ArchiverRecovery)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AutoOpsSpec ¶ added in v0.28.0
type AutoOpsSpec struct { // Disabled specifies whether the ops-request recommendation generation will be disabled or not. // +optional Disabled bool `json:"disabled,omitempty"` }
AutoOpsSpec defines the specifications of automatic ops-request recommendation generation
func (*AutoOpsSpec) DeepCopy ¶ added in v0.28.0
func (in *AutoOpsSpec) DeepCopy() *AutoOpsSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoOpsSpec.
func (*AutoOpsSpec) DeepCopyInto ¶ added in v0.28.0
func (in *AutoOpsSpec) DeepCopyInto(out *AutoOpsSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClickHouse ¶ added in v0.46.0
type ClickHouse struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClickHouseSpec `json:"spec,omitempty"` Status ClickHouseStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:shortName=ch,scope=Namespaced +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".apiVersion" +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 (*ClickHouse) AppBindingMeta ¶ added in v0.46.0
func (c *ClickHouse) AppBindingMeta() appcat.AppBindingMeta
func (*ClickHouse) ClusterGoverningServiceDNS ¶ added in v0.46.0
func (c *ClickHouse) ClusterGoverningServiceDNS(petSetName string, replicaNo int) string
func (*ClickHouse) ClusterGoverningServiceName ¶ added in v0.46.0
func (c *ClickHouse) ClusterGoverningServiceName(name string) string
func (*ClickHouse) ClusterPodLabels ¶ added in v0.46.0
func (*ClickHouse) ConfigSecretName ¶ added in v0.46.0
func (r *ClickHouse) ConfigSecretName() string
func (*ClickHouse) CustomResourceDefinition ¶ added in v0.46.0
func (r *ClickHouse) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*ClickHouse) DeepCopy ¶ added in v0.46.0
func (in *ClickHouse) DeepCopy() *ClickHouse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClickHouse.
func (*ClickHouse) DeepCopyInto ¶ added in v0.46.0
func (in *ClickHouse) DeepCopyInto(out *ClickHouse)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClickHouse) DeepCopyObject ¶ added in v0.46.0
func (in *ClickHouse) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClickHouse) Default ¶ added in v0.46.0
func (r *ClickHouse) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*ClickHouse) DefaultUserCredSecretName ¶ added in v0.46.0
func (c *ClickHouse) DefaultUserCredSecretName(username string) string
func (*ClickHouse) Finalizer ¶ added in v0.46.0
func (c *ClickHouse) Finalizer() string
func (*ClickHouse) GetAuthSecretName ¶ added in v0.46.0
func (c *ClickHouse) GetAuthSecretName() string
func (*ClickHouse) GetConnectionScheme ¶ added in v0.46.0
func (c *ClickHouse) GetConnectionScheme() string
func (*ClickHouse) GoverningServiceName ¶ added in v0.46.0
func (c *ClickHouse) GoverningServiceName() string
func (*ClickHouse) OffshootClusterLabels ¶ added in v0.46.0
func (c *ClickHouse) OffshootClusterLabels(petSetName string) map[string]string
func (*ClickHouse) OffshootClusterName ¶ added in v0.46.0
func (c *ClickHouse) OffshootClusterName(value string) string
func (*ClickHouse) OffshootClusterPetSetName ¶ added in v0.46.0
func (c *ClickHouse) OffshootClusterPetSetName(clusterName string, shardNo int) string
func (*ClickHouse) OffshootClusterSelectors ¶ added in v0.46.0
func (*ClickHouse) OffshootLabels ¶ added in v0.46.0
func (c *ClickHouse) OffshootLabels() map[string]string
func (*ClickHouse) OffshootName ¶ added in v0.46.0
func (c *ClickHouse) OffshootName() string
func (*ClickHouse) OffshootSelectors ¶ added in v0.46.0
func (c *ClickHouse) OffshootSelectors(extraSelectors ...map[string]string) map[string]string
func (*ClickHouse) Owner ¶ added in v0.46.0
func (c *ClickHouse) Owner() *meta.OwnerReference
Owner returns owner reference to resources
func (*ClickHouse) PVCName ¶ added in v0.46.0
func (c *ClickHouse) PVCName(alias string) string
func (*ClickHouse) PetSetName ¶ added in v0.46.0
func (c *ClickHouse) PetSetName() string
func (*ClickHouse) PodLabels ¶ added in v0.46.0
func (c *ClickHouse) PodLabels(extraLabels ...map[string]string) map[string]string
func (*ClickHouse) PrimaryServiceDNS ¶ added in v0.46.0
func (c *ClickHouse) PrimaryServiceDNS() string
func (*ClickHouse) ResourceFQN ¶ added in v0.46.0
func (c *ClickHouse) ResourceFQN() string
func (*ClickHouse) ResourceKind ¶ added in v0.46.0
func (c *ClickHouse) ResourceKind() string
func (*ClickHouse) ResourcePlural ¶ added in v0.46.0
func (c *ClickHouse) ResourcePlural() string
func (*ClickHouse) ResourceSingular ¶ added in v0.46.0
func (c *ClickHouse) ResourceSingular() string
func (*ClickHouse) ServiceName ¶ added in v0.46.0
func (c *ClickHouse) ServiceName() string
func (*ClickHouse) SetDefaults ¶ added in v0.46.0
func (c *ClickHouse) SetDefaults()
func (*ClickHouse) SetHealthCheckerDefaults ¶ added in v0.46.0
func (c *ClickHouse) SetHealthCheckerDefaults()
func (*ClickHouse) ValidateCreate ¶ added in v0.46.0
func (r *ClickHouse) ValidateCreate() (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ClickHouse) ValidateCreateOrUpdate ¶ added in v0.46.0
func (r *ClickHouse) ValidateCreateOrUpdate() error
func (*ClickHouse) ValidateDelete ¶ added in v0.46.0
func (r *ClickHouse) ValidateDelete() (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ClickHouse) ValidateUpdate ¶ added in v0.46.0
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
func (*ClickHouse) ValidateVersion ¶ added in v0.46.0
func (r *ClickHouse) ValidateVersion(db *ClickHouse) error
type ClickHouseKeeperConfig ¶ added in v0.46.0
type ClickHouseKeeperConfig struct {
Node ClickHouseKeeperNode `json:"node,omitempty"`
}
func (*ClickHouseKeeperConfig) DeepCopy ¶ added in v0.46.0
func (in *ClickHouseKeeperConfig) DeepCopy() *ClickHouseKeeperConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClickHouseKeeperConfig.
func (*ClickHouseKeeperConfig) DeepCopyInto ¶ added in v0.46.0
func (in *ClickHouseKeeperConfig) DeepCopyInto(out *ClickHouseKeeperConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClickHouseKeeperNode ¶ added in v0.46.0
type ClickHouseKeeperNode struct { Host string `json:"host,omitempty"` // +optional Port int32 `json:"port,omitempty"` }
ClickHouseKeeperNode defines item of nodes section of .spec.clusterTopology.
func (*ClickHouseKeeperNode) DeepCopy ¶ added in v0.46.0
func (in *ClickHouseKeeperNode) DeepCopy() *ClickHouseKeeperNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClickHouseKeeperNode.
func (*ClickHouseKeeperNode) DeepCopyInto ¶ added in v0.46.0
func (in *ClickHouseKeeperNode) DeepCopyInto(out *ClickHouseKeeperNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClickHouseList ¶ added in v0.46.0
type ClickHouseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClickHouse `json:"items"` }
ClickHouseList contains a list of ClickHouse
func (*ClickHouseList) DeepCopy ¶ added in v0.46.0
func (in *ClickHouseList) DeepCopy() *ClickHouseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClickHouseList.
func (*ClickHouseList) DeepCopyInto ¶ added in v0.46.0
func (in *ClickHouseList) DeepCopyInto(out *ClickHouseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClickHouseList) DeepCopyObject ¶ added in v0.46.0
func (in *ClickHouseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClickHouseSpec ¶ added in v0.46.0
type ClickHouseSpec struct { // Version of ClickHouse to be deployed. Version string `json:"version"` // Number of instances to deploy for a ClickHouse database. // +optional Replicas *int32 `json:"replicas,omitempty"` // Cluster // +optional ClusterTopology *ClusterTopology `json:"clusterTopology,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"` // disable security. It disables authentication security of user. // If unset, default is false // +optional DisableSecurity bool `json:"disableSecurity,omitempty"` // Database authentication secret // +optional AuthSecret *SecretReference `json:"authSecret,omitempty"` // PodTemplate is an optional configuration for pods used to expose database // +optional PodTemplate *ofst.PodTemplateSpec `json:"podTemplate,omitempty"` // ServiceTemplates is an optional configuration for services used to expose database // +optional ServiceTemplates []NamedServiceTemplateSpec `json:"serviceTemplates,omitempty"` // DeletionPolicy controls the delete operation for database // +optional DeletionPolicy TerminationPolicy `json:"deletionPolicy,omitempty"` // HealthChecker defines attributes of the health checker // +optional // +kubebuilder:default={periodSeconds: 20, timeoutSeconds: 10, failureThreshold: 3} HealthChecker kmapi.HealthCheckSpec `json:"healthChecker"` }
ClickHouseSpec defines the desired state of ClickHouse
func (*ClickHouseSpec) DeepCopy ¶ added in v0.46.0
func (in *ClickHouseSpec) DeepCopy() *ClickHouseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClickHouseSpec.
func (*ClickHouseSpec) DeepCopyInto ¶ added in v0.46.0
func (in *ClickHouseSpec) DeepCopyInto(out *ClickHouseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClickHouseStatus ¶ added in v0.46.0
type ClickHouseStatus struct { // Specifies the current phase of the database // +optional Phase DatabasePhase `json:"phase,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 int64 `json:"observedGeneration,omitempty"` // Conditions applied to the database, such as approval or denial. // +optional Conditions []kmapi.Condition `json:"conditions,omitempty"` // +optional Gateway *Gateway `json:"gateway,omitempty"` }
ClickHouseStatus defines the observed state of ClickHouse
func (*ClickHouseStatus) DeepCopy ¶ added in v0.46.0
func (in *ClickHouseStatus) DeepCopy() *ClickHouseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClickHouseStatus.
func (*ClickHouseStatus) DeepCopyInto ¶ added in v0.46.0
func (in *ClickHouseStatus) DeepCopyInto(out *ClickHouseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClickhouseApp ¶ added in v0.46.0
type ClickhouseApp struct {
*ClickHouse
}
func (*ClickhouseApp) DeepCopy ¶ added in v0.46.0
func (in *ClickhouseApp) DeepCopy() *ClickhouseApp
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClickhouseApp.
func (*ClickhouseApp) DeepCopyInto ¶ added in v0.46.0
func (in *ClickhouseApp) DeepCopyInto(out *ClickhouseApp)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClickhouseApp) Name ¶ added in v0.46.0
func (r ClickhouseApp) Name() string
func (ClickhouseApp) Type ¶ added in v0.46.0
func (r ClickhouseApp) Type() appcat.AppType
type ClusterAuthMode ¶
type ClusterAuthMode string
ClusterAuthMode represents the clusterAuthMode of mongodb clusters ( replicaset or sharding) ref: https://docs.mongodb.com/manual/reference/program/mongod/#cmdoption-mongod-clusterauthmode +kubebuilder:validation:Enum=keyFile;sendKeyFile;sendX509;x509
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 ClusterSpec ¶ added in v0.46.0
type ClusterSpec struct { // Cluster Name Name string `json:"name,omitempty"` // Number of replica for each shard to deploy for a cluster. // +optional Replicas *int32 `json:"replicas,omitempty"` // Number of shard to deploy for a cluster. // +optional Shards *int32 `json:"shards,omitempty"` // PodTemplate is an optional configuration for pods used to expose database // +optional PodTemplate *ofst.PodTemplateSpec `json:"podTemplate,omitempty"` // Storage to specify how storage shall be used. Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"` // StorageType can be durable (default) or ephemeral StorageType StorageType `json:"storageType,omitempty"` }
func (*ClusterSpec) DeepCopy ¶ added in v0.46.0
func (in *ClusterSpec) DeepCopy() *ClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.
func (*ClusterSpec) DeepCopyInto ¶ added in v0.46.0
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterTopology ¶ added in v0.46.0
type ClusterTopology struct { // Clickhouse Cluster Structure Cluster []ClusterSpec `json:"cluster,omitempty"` // ClickHouse Keeper server name ClickHouseKeeper *ClickHouseKeeperConfig `json:"clickHouseKeeper,omitempty"` }
func (*ClusterTopology) DeepCopy ¶ added in v0.46.0
func (in *ClusterTopology) DeepCopy() *ClusterTopology
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTopology.
func (*ClusterTopology) DeepCopyInto ¶ added in v0.46.0
func (in *ClusterTopology) DeepCopyInto(out *ClusterTopology)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConnectionPoolConfig ¶
type ConnectionPoolConfig struct { // Port is the port number on which PgBouncer listens to clients. Default: 5432. // +kubebuilder:default=5432 // +optional Port *int32 `json:"port,omitempty"` // PoolMode is the pooling mechanism type. Default: session. // +kubebuilder:default="session" // +optional PoolMode string `json:"poolMode,omitempty"` // MaxClientConnections is the maximum number of allowed client connections. Default: 100. // +kubebuilder:default=100 // +optional MaxClientConnections *int64 `json:"maxClientConnections,omitempty"` // DefaultPoolSize specifies how many server connections to allow per user/database pair. Default: 20. // +kubebuilder:default=20 // +optional DefaultPoolSize *int64 `json:"defaultPoolSize,omitempty"` // MinPoolSize is used to add more server connections to pool if below this number. Default: 0 (disabled). // +kubebuilder:default=0 // +optional MinPoolSize *int64 `json:"minPoolSize,omitempty"` // ReservePoolSize specifies how many additional connections to allow to a pool. 0 disables. Default: 0 (disabled). // +kubebuilder:default=0 // +optional ReservePoolSize *int64 `json:"reservePoolSize,omitempty"` // ReservePoolTimeoutSeconds is the number of seconds in which if a client has not been serviced, // pgbouncer enables use of additional connections from reserve pool. 0 disables. Default: 5.0. // +kubebuilder:default=5 // +optional ReservePoolTimeoutSeconds *int64 `json:"reservePoolTimeoutSeconds,omitempty"` // MaxDBConnections is the maximum number of connections allowed per-database. Default: 0 (unlimited). // +kubebuilder:default=0 // +optional MaxDBConnections *int64 `json:"maxDBConnections,omitempty"` // MaxUserConnections is the maximum number of users allowed per-database. Default: 0 (unlimited). // +kubebuilder:default=0 // +optional MaxUserConnections *int64 `json:"maxUserConnections,omitempty"` // StatsPeriodSeconds sets how often the averages shown in various SHOW commands are updated // and how often aggregated statistics are written to the log. Default: 60 // +kubebuilder:default=60 // +optional StatsPeriodSeconds *int64 `json:"statsPeriodSeconds,omitempty"` // AuthType specifies how to authenticate users. Default: md5 (md5+plain text). // +kubebuilder:default=md5 // +optional AuthType PgBouncerClientAuthMode `json:"authType,omitempty"` // IgnoreStartupParameters specifies comma-separated startup parameters that // pgbouncer knows are handled by admin and it can ignore them. Default: empty // +kubebuilder:default="empty" // +optional IgnoreStartupParameters string `json:"ignoreStartupParameters,omitempty"` }
func (*ConnectionPoolConfig) DeepCopy ¶
func (in *ConnectionPoolConfig) DeepCopy() *ConnectionPoolConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPoolConfig.
func (*ConnectionPoolConfig) DeepCopyInto ¶
func (in *ConnectionPoolConfig) DeepCopyInto(out *ConnectionPoolConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConsumerNamespaces ¶ added in v0.25.0
type ConsumerNamespaces struct { // From indicates where Consumers will be selected for the database instance. Possible // values are: // * All: Consumers in all namespaces. // * Selector: Consumers in namespaces selected by the selector // * Same: Only Consumers in the same namespace // // +optional // +kubebuilder:default=Same From *FromNamespaces `json:"from,omitempty"` // Selector must be specified when From is set to "Selector". In that case, // only Consumers in Namespaces matching this Selector will be selected by the // database instance. This field is ignored for other values of "From". // // +optional Selector *metav1.LabelSelector `json:"selector,omitempty"` }
ConsumerNamespaces indicate which namespaces Consumers should be selected from.
func (*ConsumerNamespaces) DeepCopy ¶ added in v0.25.0
func (in *ConsumerNamespaces) DeepCopy() *ConsumerNamespaces
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsumerNamespaces.
func (*ConsumerNamespaces) DeepCopyInto ¶ added in v0.25.0
func (in *ConsumerNamespaces) DeepCopyInto(out *ConsumerNamespaces)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CoordinatorSpec ¶ added in v0.21.0
type CoordinatorSpec struct { // Compute Resources required by coordinator container. // Cannot be updated. // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ // +optional Resources core.ResourceRequirements `json:"resources,omitempty"` // Security options the coordinator container should run with. // More info: https://kubernetes.io/docs/concepts/policy/security-context/ // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ // +optional SecurityContext *core.SecurityContext `json:"securityContext,omitempty"` }
CoordinatorSpec defines attributes of the coordinator container
func (*CoordinatorSpec) DeepCopy ¶ added in v0.21.0
func (in *CoordinatorSpec) DeepCopy() *CoordinatorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CoordinatorSpec.
func (*CoordinatorSpec) DeepCopyInto ¶ added in v0.21.0
func (in *CoordinatorSpec) DeepCopyInto(out *CoordinatorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Database ¶ added in v0.46.0
type Database struct { // SyncUsers is a boolean type and when enabled, operator fetches users of backend server from externally managed // secrets to the PgBouncer server. Secrets updation or deletion are also synced in pgBouncer when it is enabled. // +optional SyncUsers bool `json:"syncUsers,omitempty"` // DatabaseRef specifies the database appbinding reference in any namespace. DatabaseRef appcat.AppReference `json:"databaseRef"` // DatabaseName is the name of the target database inside a Postgres instance. DatabaseName string `json:"databaseName"` }
func (*Database) DeepCopy ¶ added in v0.46.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Database.
func (*Database) DeepCopyInto ¶ added in v0.46.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabasePhase ¶
type DatabasePhase string
+kubebuilder:validation:Enum=Provisioning;DataRestoring;Ready;Critical;NotReady;Halted;Unknown
const ( // used for Databases that are currently provisioning DatabasePhaseProvisioning DatabasePhase = "Provisioning" // used for Databases for which data is currently restoring DatabasePhaseDataRestoring DatabasePhase = "DataRestoring" // used for Databases that are currently ReplicaReady, AcceptingConnection and Ready DatabasePhaseReady DatabasePhase = "Ready" // used for Databases that can connect, ReplicaReady == false || Ready == false (eg, ES yellow) DatabasePhaseCritical DatabasePhase = "Critical" // used for Databases that can't connect DatabasePhaseNotReady DatabasePhase = "NotReady" // used for Databases that are halted DatabasePhaseHalted DatabasePhase = "Halted" // used for Databases for which Phase can't be calculated DatabasePhaseUnknown DatabasePhase = "Unknown" )
type DeepStorageSpec ¶ added in v0.41.0
type DeepStorageSpec struct { // Specifies the storage type to be used by druid // Possible values: s3, google, azure, hdfs Type DruidDeepStorageType `json:"type"` // deepStorage.configSecret should contain the necessary data // to connect to the deep storage // +optional ConfigSecret *core.LocalObjectReference `json:"configSecret,omitempty"` }
func (*DeepStorageSpec) DeepCopy ¶ added in v0.41.0
func (in *DeepStorageSpec) DeepCopy() *DeepStorageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeepStorageSpec.
func (*DeepStorageSpec) DeepCopyInto ¶ added in v0.41.0
func (in *DeepStorageSpec) DeepCopyInto(out *DeepStorageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Druid ¶ added in v0.41.0
type Druid struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DruidSpec `json:"spec,omitempty"` Status DruidStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:shortName=dr,scope=Namespaced +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".apiVersion" +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 (*Druid) AddDruidExtensionLoadList ¶ added in v0.41.0
func (*Druid) AppBindingMeta ¶ added in v0.41.0
func (d *Druid) AppBindingMeta() appcat.AppBindingMeta
func (*Druid) BrokersServiceName ¶ added in v0.41.0
func (*Druid) ConfigSecretName ¶ added in v0.41.0
func (*Druid) CoordinatorsServiceName ¶ added in v0.41.0
func (*Druid) CustomResourceDefinition ¶ added in v0.41.0
func (d *Druid) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*Druid) DeepCopy ¶ added in v0.41.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Druid.
func (*Druid) DeepCopyInto ¶ added in v0.41.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Druid) DeepCopyObject ¶ added in v0.41.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Druid) Default ¶ added in v0.41.0
func (d *Druid) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Druid) DefaultUserCredSecretName ¶ added in v0.41.0
func (*Druid) DruidNodeContainerPort ¶ added in v0.41.0
func (d *Druid) DruidNodeContainerPort(nodeRole DruidNodeRoleType) int32
func (*Druid) DruidNodeRoleString ¶ added in v0.41.0
func (d *Druid) DruidNodeRoleString(nodeRole DruidNodeRoleType) string
func (*Druid) DruidNodeRoleStringSingular ¶ added in v0.41.0
func (d *Druid) DruidNodeRoleStringSingular(nodeRole DruidNodeRoleType) string
func (*Druid) GetConnectionScheme ¶ added in v0.41.0
func (*Druid) GetDruidSegmentCacheConfig ¶ added in v0.41.0
func (*Druid) GetDruidStorageSize ¶ added in v0.41.0
func (*Druid) GetMetadataStorageConnectURI ¶ added in v0.41.0
func (d *Druid) GetMetadataStorageConnectURI(appbinding *appcat.AppBinding, metadataStorageType DruidMetadataStorageType) string
func (*Druid) GetMetadataStorageType ¶ added in v0.41.0
func (d *Druid) GetMetadataStorageType(metadataStorage string) DruidMetadataStorageType
func (*Druid) GetNodeSpec ¶ added in v0.46.0
func (d *Druid) GetNodeSpec(nodeType DruidNodeRoleType) (*DruidNode, *DruidDataNode)
func (*Druid) GetPersistentSecrets ¶ added in v0.41.0
func (*Druid) GetZKServiceHost ¶ added in v0.41.0
func (d *Druid) GetZKServiceHost(appbinding *appcat.AppBinding) string
func (*Druid) GoverningServiceName ¶ added in v0.41.0
func (*Druid) OffShootLabels ¶ added in v0.41.0
func (*Druid) OffShootName ¶ added in v0.41.0
func (*Druid) OffShootSelectors ¶ added in v0.41.0
func (Druid) OffshootLabels ¶ added in v0.41.0
func (*Druid) OffshootSelectors ¶ added in v0.41.0
func (*Druid) OverlordsServiceName ¶ added in v0.41.0
func (*Druid) Owner ¶ added in v0.41.0
func (d *Druid) Owner() *meta.OwnerReference
func (*Druid) PetSetName ¶ added in v0.44.0
func (d *Druid) PetSetName(nodeRole DruidNodeRoleType) string
func (*Druid) PodControllerLabels ¶ added in v0.41.0
func (*Druid) ReplicasAreReady ¶ added in v0.41.0
func (*Druid) ResourceFQN ¶ added in v0.41.0
func (*Druid) ResourceKind ¶ added in v0.41.0
func (*Druid) ResourcePlural ¶ added in v0.41.0
func (*Druid) ResourceSingular ¶ added in v0.41.0
func (*Druid) RoutersServiceName ¶ added in v0.41.0
func (*Druid) ServiceAccountName ¶ added in v0.41.0
func (*Druid) ServiceLabels ¶ added in v0.41.0
func (*Druid) ServiceName ¶ added in v0.41.0
func (*Druid) SetDefaults ¶ added in v0.41.0
func (d *Druid) SetDefaults()
func (*Druid) SetHealthCheckerDefaults ¶ added in v0.41.0
func (d *Druid) SetHealthCheckerDefaults()
func (*Druid) StatsService ¶ added in v0.44.0
func (d *Druid) StatsService() mona.StatsAccessor
func (*Druid) StatsServiceLabels ¶ added in v0.44.0
func (*Druid) ValidateCreate ¶ added in v0.41.0
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Druid) ValidateDelete ¶ added in v0.41.0
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type DruidApp ¶ added in v0.41.0
type DruidApp struct {
*Druid
}
func (*DruidApp) DeepCopy ¶ added in v0.41.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidApp.
func (*DruidApp) DeepCopyInto ¶ added in v0.41.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DruidClusterTopology ¶ added in v0.41.0
type DruidClusterTopology struct { Coordinators *DruidNode `json:"coordinators,omitempty"` // +optional Overlords *DruidNode `json:"overlords,omitempty"` MiddleManagers *DruidDataNode `json:"middleManagers,omitempty"` Historicals *DruidDataNode `json:"historicals,omitempty"` Brokers *DruidNode `json:"brokers,omitempty"` // +optional Routers *DruidNode `json:"routers,omitempty"` }
func (*DruidClusterTopology) DeepCopy ¶ added in v0.41.0
func (in *DruidClusterTopology) DeepCopy() *DruidClusterTopology
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidClusterTopology.
func (*DruidClusterTopology) DeepCopyInto ¶ added in v0.41.0
func (in *DruidClusterTopology) DeepCopyInto(out *DruidClusterTopology)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DruidDataNode ¶ added in v0.46.0
type DruidDataNode struct { // DruidDataNode has all the characteristics of DruidNode DruidNode `json:",inline"` // StorageType specifies if the storage // of this node is durable (default) or ephemeral. StorageType StorageType `json:"storageType,omitempty"` // Storage to specify how storage shall be used. Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"` // EphemeralStorage spec to specify the configuration of ephemeral storage type. EphemeralStorage *core.EmptyDirVolumeSource `json:"ephemeralStorage,omitempty"` }
func (*DruidDataNode) DeepCopy ¶ added in v0.46.0
func (in *DruidDataNode) DeepCopy() *DruidDataNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidDataNode.
func (*DruidDataNode) DeepCopyInto ¶ added in v0.46.0
func (in *DruidDataNode) DeepCopyInto(out *DruidDataNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DruidDeepStorageType ¶ added in v0.41.0
type DruidDeepStorageType string
+kubebuilder:validation:Enum=s3;google;azure;hdfs
const ( DruidDeepStorageS3 DruidDeepStorageType = "s3" DruidDeepStorageGoogle DruidDeepStorageType = "google" DruidDeepStorageAzure DruidDeepStorageType = "azure" DruidDeepStorageHDFS DruidDeepStorageType = "hdfs" )
type DruidList ¶ added in v0.41.0
type DruidList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Druid `json:"items"` }
DruidList contains a list of Druid
func (*DruidList) DeepCopy ¶ added in v0.41.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidList.
func (*DruidList) DeepCopyInto ¶ added in v0.41.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DruidList) DeepCopyObject ¶ added in v0.41.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DruidMetadataStorageType ¶ added in v0.41.0
type DruidMetadataStorageType string
+kubebuilder:validation:Enum=MySQL;PostgreSQL
const ( DruidMetadataStorageMySQL DruidMetadataStorageType = "MySQL" DruidMetadataStoragePostgreSQL DruidMetadataStorageType = "PostgreSQL" )
type DruidNode ¶ added in v0.41.0
type DruidNode struct { // Replicas represents number of replicas for the specific type of node // +kubebuilder:default=1 // +optional Replicas *int32 `json:"replicas,omitempty"` // Suffix to append with node name // +optional Suffix string `json:"suffix,omitempty"` // PodTemplate is an optional configuration for pods used to expose database // +optional PodTemplate ofst.PodTemplateSpec `json:"podTemplate,omitempty"` }
func (*DruidNode) DeepCopy ¶ added in v0.41.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidNode.
func (*DruidNode) DeepCopyInto ¶ added in v0.41.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DruidNodeRoleType ¶ added in v0.41.0
type DruidNodeRoleType string
+kubebuilder:validation:Enum=coordinators;overlords;brokers;routers;middleManagers;historicals
const ( DruidNodeRoleCoordinators DruidNodeRoleType = "coordinators" DruidNodeRoleOverlords DruidNodeRoleType = "overlords" DruidNodeRoleBrokers DruidNodeRoleType = "brokers" DruidNodeRoleRouters DruidNodeRoleType = "routers" DruidNodeRoleMiddleManagers DruidNodeRoleType = "middleManagers" DruidNodeRoleHistoricals DruidNodeRoleType = "historicals" )
type DruidPhase ¶ added in v0.41.0
type DruidPhase string
+kubebuilder:validation:Enum=Provisioning;Ready;NotReady;Critical
const ( DruidPhaseProvisioning DruidPhase = "Provisioning" DruidPhaseReady DruidPhase = "Ready" DruidPhaseNotReady DruidPhase = "NotReady" DruidPhaseCritical DruidPhase = "Critical" )
type DruidSpec ¶ added in v0.41.0
type DruidSpec struct { // Version of Druid to be deployed. Version string `json:"version"` // Druid topology for node specification // +optional Topology *DruidClusterTopology `json:"topology,omitempty"` // disable security. It disables authentication security of user. // If unset, default is false // +optional DisableSecurity *bool `json:"disableSecurity,omitempty"` // Database authentication secret // +optional AuthSecret *core.LocalObjectReference `json:"authSecret,omitempty"` // ConfigSecret is an optional field to provide custom configuration file for database (i.e. config.properties). // If specified, this file will be used as configuration file otherwise default configuration file will be used. // +optional ConfigSecret *core.LocalObjectReference `json:"configSecret,omitempty"` // MetadataStorage contains information for Druid to connect to external dependency metadata storage MetadataStorage *MetadataStorage `json:"metadataStorage"` // DeepStorage contains specification for druid to connect to the deep storage DeepStorage *DeepStorageSpec `json:"deepStorage"` // ZooKeeper contains information for Druid to connect to external dependency metadata storage // +optional ZookeeperRef *ZookeeperRef `json:"zookeeperRef,omitempty"` // ServiceTemplates is an optional configuration for services used to expose database // +optional ServiceTemplates []NamedServiceTemplateSpec `json:"serviceTemplates,omitempty"` // Indicates that the database is halted and all offshoot Kubernetes resources except PVCs are deleted. // +optional Halted bool