v1alpha1

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Overview

+groupName=ops.kubedb.com

Index

Constants

View Source
const (
	ResourceCodeClickHouseOpsRequest     = "chops"
	ResourceKindClickHouseOpsRequest     = "ClickHouseOpsRequest"
	ResourceSingularClickHouseOpsRequest = "clickhouseopsrequest"
	ResourcePluralClickHouseOpsRequest   = "clickhouseopsrequests"
)
View Source
const (
	GenericKey = "ops.kubedb.com"

	LabelOpsRequestKind = GenericKey + "/kind"
	LabelOpsRequestName = GenericKey + "/name"
)
View Source
const (
	Running    = "Running"
	Successful = "Successful"
	Failed     = "Failed"
)
View Source
const (
	DatabaseReady           = "DatabaseReady"
	PauseDatabase           = "PauseDatabase"
	DatabasePauseSucceeded  = "DatabasePauseSucceeded"
	DatabasePauseFailed     = "DatabasePauseFailed"
	ResumeDatabase          = "ResumeDatabase"
	DatabaseResumeSucceeded = "DatabaseResumeSucceeded"
	DatabaseResumeFailed    = "DatabaseResumeFailed"
	UpdateDatabase          = "UpdateDatabase"
)

Database

View Source
const (
	VersionUpdate          = "VersionUpdate"
	VersionUpdateStarted   = "VersionUpdateStarted"
	VersionUpdateSucceeded = "VersionUpdateSucceeded"
	VersionUpdateFailed    = "VersionUpdateFailed"
)

Version Update

View Source
const (
	HorizontalScale          = "HorizontalScale"
	HorizontalScaleUp        = "HorizontalScaleUp"
	HorizontalScaleDown      = "HorizontalScaleDown"
	HorizontalScaleStarted   = "HorizontalScaleStarted"
	HorizontalScaleSucceeded = "HorizontalScaleSucceeded"
	HorizontalScaleFailed    = "HorizontalScaleFailed"
)

Horizontal

View Source
const (
	VerticalScale          = "VerticalScale"
	VerticalScaleUp        = "VerticalScaleUp"
	VerticalScaleDown      = "VerticalScaleDown"
	VerticalScaleStarted   = "VerticalScaleStarted"
	VerticalScaleSucceeded = "VerticalScaleSucceeded"
	VerticalScaleFailed    = "VerticalScaleFailed"
)

Vertical

View Source
const (
	VolumeExpansion          = "VolumeExpansion"
	VolumeExpansionSucceeded = "VolumeExpansionSucceeded"
	VolumeExpansionFailed    = "VolumeExpansionFailed"
)

Volume Expansion

View Source
const (
	Reconfigure          = "Reconfigure"
	ReconfigureSucceeded = "ReconfigureSucceeded"
	ReconfigureFailed    = "ReconfigureFailed"
)

Reconfigure

View Source
const (
	ReconfigureTLS          = "ReconfigureTLS"
	ReconfigureTLSSucceeded = "ReconfigureTLSSucceeded"
	ReconfigureTLSFailed    = "ReconfigureTLSFailed"

	RemoveTLS                  = "RemoveTLS"
	RemoveTLSSucceeded         = "RemoveTLSSucceeded"
	RemoveTLSFailed            = "RemoveTLSFailed"
	AddTLS                     = "AddTLS"
	AddTLSSucceeded            = "AddTLSSucceeded"
	AddTLSFailed               = "AddTLSFailed"
	Issuing                    = "Issuing"
	IssueCertificatesSucceeded = "IssueCertificatesSucceeded"
	CertificateSynced          = "CertificateSynced"
	IssueCertificatesFailed    = "IssueCertificatesFailed"
)

ReconfigureTLS

View Source
const (
	RotateAuth                     = "RotateAuth"
	UpdateCredential               = "UpdateCredential"
	BasicAuthPreviousUsernameKey   = "username.prev"
	BasicAuthPreviousPasswordKey   = "password.prev"
	BasicAuthNextUsernameKey       = "username.next"
	BasicAuthNextPasswordKey       = "password.next"
	SecretAlreadyUpdatedAnnotation = "secret-already-updated"
)

RotateAuth

View Source
const (
	Restart              = "Restart"
	RestartNodes         = "RestartNodes"
	RestartPods          = "RestartPods"
	RestartPodsSucceeded = "RestartPodsSucceeded"
	RestartPodsFailed    = "RestartPodsFailed"
)

Restart

View Source
const (
	ReloadPods          = "ReloadPods"
	ReloadPodsSucceeded = "ReloadPodsSucceeded"
	ReloadPodsFailed    = "ReloadPodsFailed"
)

Reload

View Source
const (
	UpdateStatefulSets          = "UpdateStatefulSets"
	UpdateStatefulSetsSucceeded = "UpdateStatefulSetsSucceeded"
	UpdateStatefulSetsFailed    = "UpdateStatefulSetsFailed"
	ReadyStatefulSets           = "ReadyStatefulSets"
	DeleteStatefulSets          = "DeleteStatefulSets"
	OrphanStatefulSetPods       = "OrphanStatefulSetPods"
)

StatefulSets

View Source
const (
	UpdatePetSets          = "UpdatePetSets"
	UpdatePetSetsSucceeded = "UpdatePetSetsSucceeded"
	UpdatePetSetsFailed    = "UpdatePetSetsFailed"
	ReadyPetSets           = "ReadyPetSets"
	DeletePetSets          = "DeletePetSets"
	OrphanPetSetPods       = "OrphanPetSetPods"
)

PetSets

View Source
const (
	PauseBackupConfiguration  = "PauseBackupConfiguration"
	ResumeBackupConfiguration = "ResumeBackupConfiguration"
)

Stash

View Source
const (
	PrepareCustomConfig       = "PrepareCustomConfig"
	PrepareSecureCustomConfig = "PrepareSecureCustomConfig"
	ReconfigureSecurityAdmin  = "ReconfigureSecurityAdmin"

	HorizontalScaleMasterNode       = "HorizontalScaleMasterNode"
	HorizontalScaleDataNode         = "HorizontalScaleDataNode"
	HorizontalScaleDataHotNode      = "HorizontalScaleDataHotNode"
	HorizontalScaleDataWarmNode     = "HorizontalScaleDataWarmNode"
	HorizontalScaleDataColdNode     = "HorizontalScaleDataColdNode"
	HorizontalScaleDataFrozenNode   = "HorizontalScaleDataFrozenNode"
	HorizontalScaleDataContentNode  = "HorizontalScaleDataContentNode"
	HorizontalScaleMLNode           = "HorizontalScaleMLNode"
	HorizontalScaleTransformNode    = "HorizontalScaleTransformNode"
	HorizontalScaleCoordinatingNode = "HorizontalScaleCoordinatingNode"
	HorizontalScaleIngestNode       = "HorizontalScaleIngestNode"
	HorizontalScaleCombinedNode     = "HorizontalScaleCombinedNode"
	HorizontalScaleOverseerNode     = "HorizontalScaleOverseerNode"
	HorizontalScaleCoordinatorNode  = "HorizontalScaleCoordinatorNode"

	VolumeExpansionCombinedNode     = "VolumeExpansionCombinedNode"
	VolumeExpansionMasterNode       = "VolumeExpansionMasterNode"
	VolumeExpansionIngestNode       = "VolumeExpansionIngestNode"
	VolumeExpansionDataNode         = "VolumeExpansionDataNode"
	VolumeExpansionDataContentNode  = "VolumeExpansionDataContentNode"
	VolumeExpansionDataHotNode      = "VolumeExpansionDataHotNode"
	VolumeExpansionDataWarmNode     = "VolumeExpansionDataWarmNode"
	VolumeExpansionDataColdNode     = "VolumeExpansionDataColdNode"
	VolumeExpansionDataFrozenNode   = "VolumeExpansionDataFrozenNode"
	VolumeExpansionMLNode           = "VolumeExpansionMLNode"
	VolumeExpansionTransformNode    = "VolumeExpansionTransformNode"
	VolumeExpansionCoordinatingNode = "VolumeExpansionCoordinatingNode"
	VolumeExpansionOverseerNode     = "VolumeExpansionOverseerNode"
	VolumeExpansionCoordinatorNode  = "VolumeExpansionCoordinatorNode"
)

Elasticsearch Constant

View Source
const (
	ScaleUpBroker       = "ScaleUpBroker"
	ScaleUpController   = "ScaleUpController"
	ScaleUpCombined     = "ScaleUpCombined"
	ScaleDownBroker     = "ScaleDownBroker"
	ScaleDownController = "ScaleDownController"
	ScaleDownCombined   = "ScaleDownCombined"

	UpdateBrokerNodePVCs     = "UpdateBrokerNodePVCs"
	UpdateControllerNodePVCs = "UpdateControllerNodePVCs"
	UpdateCombinedNodePVCs   = "UpdateCombinedNodePVCs"
)

Kafka Constants

View Source
const (
	ScaleUpAggregator   = "ScaleUpAggregator"
	ScaleDownAggregator = "ScaleDownAggregator"
	ScaleUpLeaf         = "ScaleUpLeaf"
	ScaleDownLeaf       = "ScaleDownLeaf"
)

Singlestore Constants

View Source
const (
	StartingBalancer  = "StartingBalancer"
	StoppingBalancer  = "StoppingBalancer"
	FlushRouterConfig = "FlushRouterConfig"

	UpdateStandaloneImage   = "UpdateStandaloneImage"
	UpdateShardImage        = "UpdateShardImage"
	UpdateReplicaSetImage   = "UpdateReplicaSetImage"
	UpdateConfigServerImage = "UpdateConfigServerImage"
	UpdateMongosImage       = "UpdateMongosImage"

	HorizontalScaleStandaloneUp      = "HorizontalScaleStandaloneUp"
	HorizontalScaleStandaloneDown    = "HorizontalScaleStandaloneDown"
	HorizontalScaleReplicaSetUp      = "HorizontalScaleReplicaSetUp"
	HorizontalScaleReplicaSetDown    = "HorizontalScaleReplicaSetDown"
	HorizontalScaleMongos            = "HorizontalScaleMongos"
	HorizontalScaleConfigServerUp    = "HorizontalScaleConfigServerUp"
	HorizontalScaleConfigServerDown  = "HorizontalScaleConfigServerDown"
	HorizontalScaleShardReplicasUp   = "HorizontalScaleShardReplicasUp"
	HorizontalScaleShardReplicasDown = "HorizontalScaleShardReplicasDown"
	HorizontalScaleShardUp           = "HorizontalScaleShardUp"
	HorizontalScaleShardDown         = "HorizontalScaleShardDown"
	HorizontalScaleArbiterUp         = "HorizontalScaleArbiterUp"
	HorizontalScaleArbiterDown       = "HorizontalScaleArbiterDown"
	HorizontalScaleHiddenUp          = "HorizontalScaleHiddenUp"
	HorizontalScaleHiddenDown        = "HorizontalScaleHiddenDown"

	VerticalScaleStandalone   = "VerticalScaleStandalone"
	VerticalScaleReplicaSet   = "VerticalScaleReplicaSet"
	VerticalScaleMongos       = "VerticalScaleMongos"
	VerticalScaleConfigServer = "VerticalScaleConfigServer"
	VerticalScaleShard        = "VerticalScaleShard"
	VerticalScaleArbiter      = "VerticalScaleArbiter"
	VerticalScaleHidden       = "VerticalScaleHidden"

	VolumeExpansionStandalone   = "VolumeExpansionStandalone"
	VolumeExpansionReplicaSet   = "VolumeExpansionReplicaSet"
	VolumeExpansionMongos       = "VolumeExpansionMongos"
	VolumeExpansionConfigServer = "VolumeExpansionConfigServer"
	VolumeExpansionShard        = "VolumeExpansionShard"
	VolumeExpansionHidden       = "VolumeExpansionHidden"

	ReconfigureStandalone   = "ReconfigureStandalone"
	ReconfigureReplicaset   = "ReconfigureReplicaset"
	ReconfigureMongos       = "ReconfigureMongos"
	ReconfigureConfigServer = "ReconfigureConfigServer"
	ReconfigureShard        = "ReconfigureShard"
	ReconfigureArbiter      = "ReconfigureArbiter"
	ReconfigureHidden       = "ReconfigureHidden"

	RestartStandalone   = "RestartStandalone"
	RestartReplicaSet   = "RestartReplicaSet"
	RestartMongos       = "RestartMongos"
	RestartConfigServer = "RestartConfigServer"
	RestartShard        = "RestartShard"
	RestartArbiter      = "RestartArbiter"
	RestartHidden       = "RestartHidden"
)

MongoDB Constants

View Source
const (
	PausePgCoordinator                                   = "PausePgCoordinator"
	ResumePgCoordinator                                  = "ResumePgCoordinator"
	DataDirectoryInitialized                             = "DataDirectoryInitialized"
	ReplacedDataDirectory                                = "ReplacedDataDirectory"
	TransferLeaderShipToFirstNode                        = "TransferPrimaryRoleToDefault"
	TransferLeaderShipToFirstNodeBeforeCoordinatorPaused = "TransferLeaderShipToFirstNodeBeforeCoordinatorPaused"
	CopiedOldBinaries                                    = "CopiedOldBinaries"
	ResumePrimaryPgCoordinator                           = "NonTransferableResumePgCoordinator"

	UpdatePrimaryImage = "UpdatePrimaryImage"
	UpdateStandbyImage = "UpdateStandbyImage"

	RestartPrimary   = "RestartPrimary"
	RestartSecondary = "RestartSecondary"
)

Postgres Constants

View Source
const (
	PatchedSecret                        = "patchedSecret"
	ConfigKeyRedis                       = "redis.conf"
	RedisTLSArg                          = "--tls-port 6379"
	ReplaceSentinel                      = "ReplaceSentinel"
	ScaleUpRedisReplicasInSentinelMode   = "ScaleUpRedisReplicasInSentinelMode"
	ScaleDownRedisReplicasInSentinelMode = "ScaleDownRedisReplicasInSentinelMode"

	HorizontalScaleReplicasUp   = "HorizontalScaleReplicasUp"
	HorizontalScaleReplicasDown = "HorizontalScaleReplicasDown"
	HorizontalScaleSentinelUp   = "HorizontalScaleSentinelUp"
	HorizontalScaleSentinelDown = "HorizontalScaleSentinelDown"
)

Redis Constants

View Source
const (
	ScaleUpCoordinators   = "ScaleUpCoordinators"
	ScaleUpOverlords      = "ScaleUpOverlords"
	ScaleUpBrokers        = "ScaleUpBrokers"
	ScaleUpHistoricals    = "ScaleUpHistoricals"
	ScaleUpMiddleManagers = "ScaleUpMiddleManagers"
	ScaleUpRouters        = "ScaleUpRouters"

	ScaleDownCoordinators   = "ScaleDownCoordinators"
	ScaleDownOverlords      = "ScaleDownOverlords"
	ScaleDownBrokers        = "ScaleDownBrokers"
	ScaleDownHistoricals    = "ScaleDownHistoricals"
	ScaleDownMiddleManagers = "ScaleDownMiddleManagers"
	ScaleDownRouters        = "ScaleDownRouters"

	UpdateMiddleManagersNodePVCs = "UpdateMiddleManagersNodePVCs"
	UpdateHistoricalsNodePVCs    = "UpdateHistoricalsNodePVCs"

	UpdateCredentialDynamically = "UpdateCredentialDynamically"
)

Druid Constants

View Source
const (
	UpdateAggregatorNodePVCs = "UpdateAggregatorNodePVCs"
	UpdateLeafNodePVCs       = "UpdateLeafNodePVCs"
)

SingleStore Constants

View Source
const (
	UpdatePgBouncerBackendSecret = "UpdateBackendSecret"
	ConfigSecretDelete           = "ConfigSecretDeleted"
)

PgBouncer Constants

View Source
const (
	ResourceCodeDruidOpsRequest     = "drops"
	ResourceKindDruidOpsRequest     = "DruidOpsRequest"
	ResourceSingularDruidOpsRequest = "druidopsrequest"
	ResourcePluralDruidOpsRequest   = "druidopsrequests"
)
View Source
const (
	ResourceCodeElasticsearchOpsRequest     = "esops"
	ResourceKindElasticsearchOpsRequest     = "ElasticsearchOpsRequest"
	ResourceSingularElasticsearchOpsRequest = "elasticsearchopsrequest"
	ResourcePluralElasticsearchOpsRequest   = "elasticsearchopsrequests"
)
View Source
const (
	ResourceCodeEtcdOpsRequest     = "etcdops"
	ResourceKindEtcdOpsRequest     = "EtcdOpsRequest"
	ResourceSingularEtcdOpsRequest = "etcdopsrequest"
	ResourcePluralEtcdOpsRequest   = "etcdopsrequests"
)
View Source
const (
	ResourceCodeFerretDBOpsRequest     = "frops"
	ResourceKindFerretDBOpsRequest     = "FerretDBOpsRequest"
	ResourceSingularFerretDBOpsRequest = "ferretdbopsrequest"
	ResourcePluralFerretDBOpsRequest   = "ferretdbopsrequests"
)
View Source
const (
	ResourceCodeKafkaOpsRequest     = "kfops"
	ResourceKindKafkaOpsRequest     = "KafkaOpsRequest"
	ResourceSingularKafkaOpsRequest = "kafkaopsrequest"
	ResourcePluralKafkaOpsRequest   = "kafkaopsrequests"
)
View Source
const (
	ResourceCodeMariaDBOpsRequest     = "mariaops"
	ResourceKindMariaDBOpsRequest     = "MariaDBOpsRequest"
	ResourceSingularMariaDBOpsRequest = "mariadbopsrequest"
	ResourcePluralMariaDBOpsRequest   = "mariadbopsrequests"
)
View Source
const (
	ResourceCodeMemcachedOpsRequest     = "mcops"
	ResourceKindMemcachedOpsRequest     = "MemcachedOpsRequest"
	ResourceSingularMemcachedOpsRequest = "memcachedopsrequest"
	ResourcePluralMemcachedOpsRequest   = "memcachedopsrequests"
)
View Source
const (
	ResourceCodeMongoDBOpsRequest     = "mgops"
	ResourceKindMongoDBOpsRequest     = "MongoDBOpsRequest"
	ResourceSingularMongoDBOpsRequest = "mongodbopsrequest"
	ResourcePluralMongoDBOpsRequest   = "mongodbopsrequests"
)
View Source
const (
	ResourceCodeMSSQLServerOpsRequest     = "msops"
	ResourceKindMSSQLServerOpsRequest     = "MSSQLServerOpsRequest"
	ResourceSingularMSSQLServerOpsRequest = "mssqlserveropsrequest"
	ResourcePluralMSSQLServerOpsRequest   = "mssqlserveropsrequests"
)
View Source
const (
	ResourceCodeMySQLOpsRequest     = "myops"
	ResourceKindMySQLOpsRequest     = "MySQLOpsRequest"
	ResourceSingularMySQLOpsRequest = "mysqlopsrequest"
	ResourcePluralMySQLOpsRequest   = "mysqlopsrequests"
)
View Source
const (
	ResourceCodePerconaXtraDBOpsRequest     = "pxcops"
	ResourceKindPerconaXtraDBOpsRequest     = "PerconaXtraDBOpsRequest"
	ResourceSingularPerconaXtraDBOpsRequest = "perconaxtradbopsrequest"
	ResourcePluralPerconaXtraDBOpsRequest   = "perconaxtradbopsrequests"
)
View Source
const (
	ResourceCodePgBouncerOpsRequest     = "pbops"
	ResourceKindPgBouncerOpsRequest     = "PgBouncerOpsRequest"
	ResourceSingularPgBouncerOpsRequest = "pgbounceropsrequest"
	ResourcePluralPgBouncerOpsRequest   = "pgbounceropsrequests"
)
View Source
const (
	ResourceCodePgpoolOpsRequest     = "ppops"
	ResourceKindPgpoolOpsRequest     = "PgpoolOpsRequest"
	ResourceSingularPgpoolOpsRequest = "pgpoolopsrequest"
	ResourcePluralPgpoolOpsRequest   = "pgpoolopsrequests"
)
View Source
const (
	ResourceCodePostgresOpsRequest     = "pgops"
	ResourceKindPostgresOpsRequest     = "PostgresOpsRequest"
	ResourceSingularPostgresOpsRequest = "postgresopsrequest"
	ResourcePluralPostgresOpsRequest   = "postgresopsrequests"
)
View Source
const (
	ResourceCodeProxySQLOpsRequest     = "prxops"
	ResourceKindProxySQLOpsRequest     = "ProxySQLOpsRequest"
	ResourceSingularProxySQLOpsRequest = "proxysqlopsrequest"
	ResourcePluralProxySQLOpsRequest   = "proxysqlopsrequests"
)
View Source
const (
	ResourceCodeRabbitMQOpsRequest     = "rmops"
	ResourceKindRabbitMQOpsRequest     = "RabbitMQOpsRequest"
	ResourceSingularRabbitMQOpsRequest = "rabbitmqopsrequest"
	ResourcePluralRabbitMQOpsRequest   = "rabbitmqopsrequests"
)
View Source
const (
	ResourceCodeRedisOpsRequest     = "rdops"
	ResourceKindRedisOpsRequest     = "RedisOpsRequest"
	ResourceSingularRedisOpsRequest = "redisopsrequest"
	ResourcePluralRedisOpsRequest   = "redisopsrequests"
)
View Source
const (
	ResourceCodeRedisSentinelOpsRequest     = "rdsops"
	ResourceKindRedisSentinelOpsRequest     = "RedisSentinelOpsRequest"
	ResourceSingularRedisSentinelOpsRequest = "redissentinelopsrequest"
	ResourcePluralRedisSentinelOpsRequest   = "redissentinelopsrequests"
)
View Source
const (
	ResourceCodeSinglestoreOpsRequest     = "sdbops"
	ResourceKindSinglestoreOpsRequest     = "SinglestoreOpsRequest"
	ResourceSingularSinglestoreOpsRequest = "singlestoreopsrequest"
	ResourcePluralSinglestoreOpsRequest   = "singlestoreopsrequests"
)
View Source
const (
	ResourceCodeSolrOpsRequest     = "slops"
	ResourceKindSolrOpsRequest     = "SolrOpsRequest"
	ResourceSingularSolrOpsRequest = "solropsrequest"
	ResourcePluralSolrOpsRequest   = "solropsrequests"
)
View Source
const (
	ResourceCodeZooKeeperOpsRequest     = "zkops"
	ResourceKindZooKeeperOpsRequest     = "ZooKeeperOpsRequest"
	ResourceSingularZooKeeperOpsRequest = "zookeeperopsrequest"
	ResourcePluralZooKeeperOpsRequest   = "zookeeperopsrequests"
)
View Source
const (
	TempIniFilesPath = "/tmp/kubedb-custom-ini-files"
)

MySQL/MariaDB Constants

View Source
const (
	UpdateNodePVCs = "UpdateNodePVCs"
)

RabbitMQ Constants

Variables

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

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var ErrInvalidClickHouseOpsRequestType = fmt.Errorf("not a valid ClickHouseOpsRequestType, try [%s]", strings.Join(_ClickHouseOpsRequestTypeNames, ", "))
View Source
var ErrInvalidDruidOpsRequestType = fmt.Errorf("not a valid DruidOpsRequestType, try [%s]", strings.Join(_DruidOpsRequestTypeNames, ", "))
View Source
var ErrInvalidElasticsearchOpsRequestType = fmt.Errorf("not a valid ElasticsearchOpsRequestType, try [%s]", strings.Join(_ElasticsearchOpsRequestTypeNames, ", "))
View Source
var ErrInvalidEtcdOpsRequestType = fmt.Errorf("not a valid EtcdOpsRequestType, try [%s]", strings.Join(_EtcdOpsRequestTypeNames, ", "))
View Source
var ErrInvalidFerretDBOpsRequestType = fmt.Errorf("not a valid FerretDBOpsRequestType, try [%s]", strings.Join(_FerretDBOpsRequestTypeNames, ", "))
View Source
var ErrInvalidKafkaOpsRequestType = fmt.Errorf("not a valid KafkaOpsRequestType, try [%s]", strings.Join(_KafkaOpsRequestTypeNames, ", "))
View Source
var ErrInvalidMSSQLServerOpsRequestType = fmt.Errorf("not a valid MSSQLServerOpsRequestType, try [%s]", strings.Join(_MSSQLServerOpsRequestTypeNames, ", "))
View Source
var ErrInvalidMariaDBOpsRequestType = fmt.Errorf("not a valid MariaDBOpsRequestType, try [%s]", strings.Join(_MariaDBOpsRequestTypeNames, ", "))
View Source
var ErrInvalidMemcachedOpsRequestType = fmt.Errorf("not a valid MemcachedOpsRequestType, try [%s]", strings.Join(_MemcachedOpsRequestTypeNames, ", "))
View Source
var ErrInvalidMongoDBOpsRequestType = fmt.Errorf("not a valid MongoDBOpsRequestType, try [%s]", strings.Join(_MongoDBOpsRequestTypeNames, ", "))
View Source
var ErrInvalidMySQLOpsRequestType = fmt.Errorf("not a valid MySQLOpsRequestType, try [%s]", strings.Join(_MySQLOpsRequestTypeNames, ", "))
View Source
var ErrInvalidPerconaXtraDBOpsRequestType = fmt.Errorf("not a valid PerconaXtraDBOpsRequestType, try [%s]", strings.Join(_PerconaXtraDBOpsRequestTypeNames, ", "))
View Source
var ErrInvalidPgBouncerOpsRequestType = fmt.Errorf("not a valid PgBouncerOpsRequestType, try [%s]", strings.Join(_PgBouncerOpsRequestTypeNames, ", "))
View Source
var ErrInvalidPgpoolOpsRequestType = fmt.Errorf("not a valid PgpoolOpsRequestType, try [%s]", strings.Join(_PgpoolOpsRequestTypeNames, ", "))
View Source
var ErrInvalidPostgresOpsRequestType = fmt.Errorf("not a valid PostgresOpsRequestType, try [%s]", strings.Join(_PostgresOpsRequestTypeNames, ", "))
View Source
var ErrInvalidProxySQLOpsRequestType = fmt.Errorf("not a valid ProxySQLOpsRequestType, try [%s]", strings.Join(_ProxySQLOpsRequestTypeNames, ", "))
View Source
var ErrInvalidRabbitMQOpsRequestType = fmt.Errorf("not a valid RabbitMQOpsRequestType, try [%s]", strings.Join(_RabbitMQOpsRequestTypeNames, ", "))
View Source
var ErrInvalidRedisOpsRequestType = fmt.Errorf("not a valid RedisOpsRequestType, try [%s]", strings.Join(_RedisOpsRequestTypeNames, ", "))
View Source
var ErrInvalidRedisSentinelOpsRequestType = fmt.Errorf("not a valid RedisSentinelOpsRequestType, try [%s]", strings.Join(_RedisSentinelOpsRequestTypeNames, ", "))
View Source
var ErrInvalidSinglestoreOpsRequestType = fmt.Errorf("not a valid SinglestoreOpsRequestType, try [%s]", strings.Join(_SinglestoreOpsRequestTypeNames, ", "))
View Source
var ErrInvalidSolrOpsRequestType = fmt.Errorf("not a valid SolrOpsRequestType, try [%s]", strings.Join(_SolrOpsRequestTypeNames, ", "))
View Source
var ErrInvalidZooKeeperOpsRequestType = fmt.Errorf("not a valid ZooKeeperOpsRequestType, try [%s]", strings.Join(_ZooKeeperOpsRequestTypeNames, ", "))
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: ops.GroupName, Version: "v1alpha1"}

Functions

func ClickHouseOpsRequestTypeNames added in v0.47.0

func ClickHouseOpsRequestTypeNames() []string

ClickHouseOpsRequestTypeNames returns a list of possible string values of ClickHouseOpsRequestType.

func DruidOpsRequestTypeNames added in v0.46.0

func DruidOpsRequestTypeNames() []string

DruidOpsRequestTypeNames returns a list of possible string values of DruidOpsRequestType.

func ElasticsearchOpsRequestTypeNames added in v0.33.0

func ElasticsearchOpsRequestTypeNames() []string

ElasticsearchOpsRequestTypeNames returns a list of possible string values of ElasticsearchOpsRequestType.

func EtcdOpsRequestTypeNames added in v0.33.0

func EtcdOpsRequestTypeNames() []string

EtcdOpsRequestTypeNames returns a list of possible string values of EtcdOpsRequestType.

func FerretDBOpsRequestTypeNames added in v0.47.0

func FerretDBOpsRequestTypeNames() []string

FerretDBOpsRequestTypeNames returns a list of possible string values of FerretDBOpsRequestType.

func KafkaOpsRequestTypeNames added in v0.36.0

func KafkaOpsRequestTypeNames() []string

KafkaOpsRequestTypeNames returns a list of possible string values of KafkaOpsRequestType.

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func MSSQLServerOpsRequestTypeNames added in v0.47.0

func MSSQLServerOpsRequestTypeNames() []string

MSSQLServerOpsRequestTypeNames returns a list of possible string values of MSSQLServerOpsRequestType.

func MariaDBOpsRequestTypeNames added in v0.33.0

func MariaDBOpsRequestTypeNames() []string

MariaDBOpsRequestTypeNames returns a list of possible string values of MariaDBOpsRequestType.

func MemcachedOpsRequestTypeNames added in v0.33.0

func MemcachedOpsRequestTypeNames() []string

MemcachedOpsRequestTypeNames returns a list of possible string values of MemcachedOpsRequestType.

func MongoDBOpsRequestTypeNames added in v0.33.0

func MongoDBOpsRequestTypeNames() []string

MongoDBOpsRequestTypeNames returns a list of possible string values of MongoDBOpsRequestType.

func MySQLOpsRequestTypeNames added in v0.33.0

func MySQLOpsRequestTypeNames() []string

MySQLOpsRequestTypeNames returns a list of possible string values of MySQLOpsRequestType.

func PerconaXtraDBOpsRequestTypeNames added in v0.33.0

func PerconaXtraDBOpsRequestTypeNames() []string

PerconaXtraDBOpsRequestTypeNames returns a list of possible string values of PerconaXtraDBOpsRequestType.

func PgBouncerOpsRequestTypeNames added in v0.33.0

func PgBouncerOpsRequestTypeNames() []string

PgBouncerOpsRequestTypeNames returns a list of possible string values of PgBouncerOpsRequestType.

func PgpoolOpsRequestTypeNames added in v0.46.0

func PgpoolOpsRequestTypeNames() []string

PgpoolOpsRequestTypeNames returns a list of possible string values of PgpoolOpsRequestType.

func PostgresOpsRequestTypeNames added in v0.33.0

func PostgresOpsRequestTypeNames() []string

PostgresOpsRequestTypeNames returns a list of possible string values of PostgresOpsRequestType.

func ProxySQLOpsRequestTypeNames added in v0.33.0

func ProxySQLOpsRequestTypeNames() []string

ProxySQLOpsRequestTypeNames returns a list of possible string values of ProxySQLOpsRequestType.

func RabbitMQOpsRequestTypeNames added in v0.45.0

func RabbitMQOpsRequestTypeNames() []string

RabbitMQOpsRequestTypeNames returns a list of possible string values of RabbitMQOpsRequestType.

func RedisOpsRequestTypeNames added in v0.33.0

func RedisOpsRequestTypeNames() []string

RedisOpsRequestTypeNames returns a list of possible string values of RedisOpsRequestType.

func RedisSentinelOpsRequestTypeNames added in v0.33.0

func RedisSentinelOpsRequestTypeNames() []string

RedisSentinelOpsRequestTypeNames returns a list of possible string values of RedisSentinelOpsRequestType.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func SinglestoreOpsRequestTypeNames added in v0.46.0

func SinglestoreOpsRequestTypeNames() []string

SinglestoreOpsRequestTypeNames returns a list of possible string values of SinglestoreOpsRequestType.

func SolrOpsRequestTypeNames added in v0.47.0

func SolrOpsRequestTypeNames() []string

SolrOpsRequestTypeNames returns a list of possible string values of SolrOpsRequestType.

func ZooKeeperOpsRequestTypeNames added in v0.47.0

func ZooKeeperOpsRequestTypeNames() []string

ZooKeeperOpsRequestTypeNames returns a list of possible string values of ZooKeeperOpsRequestType.

Types

type Accessor added in v0.28.1

type Accessor interface {
	GetObjectMeta() metav1.ObjectMeta
	GetDBRefName() string
	GetRequestType() any
	GetStatus() OpsRequestStatus
	SetStatus(_ OpsRequestStatus)
}

type ApplyOption added in v0.28.0

type ApplyOption string

+kubebuilder:validation:Enum=IfReady;Always

const (
	ApplyOptionIfReady ApplyOption = "IfReady"
	ApplyOptionAlways  ApplyOption = "Always"
)

type ArchiverOperation added in v0.38.0

type ArchiverOperation string

+kubebuilder:validation:Enum=ConfigureArchiver;DisableArchiver

const (
	ArchiverOperationConfigure ArchiverOperation = "ConfigureArchiver"
	ArchiverOperationDisable   ArchiverOperation = "DisableArchiver"
)

type ArchiverOptions added in v0.38.0

type ArchiverOptions struct {
	Operation ArchiverOperation     `json:"operation"`
	Ref       kmapi.ObjectReference `json:"ref"`
}

func (*ArchiverOptions) DeepCopy added in v0.38.0

func (in *ArchiverOptions) DeepCopy() *ArchiverOptions

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

func (*ArchiverOptions) DeepCopyInto added in v0.38.0

func (in *ArchiverOptions) DeepCopyInto(out *ArchiverOptions)

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

type AuthSpec added in v0.49.0

type AuthSpec struct {
	// SecretRef holds the new authSecret
	// If it is given, ops-manager will use this. Otherwise, will generate random password
	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty"`
}

func (*AuthSpec) DeepCopy added in v0.49.0

func (in *AuthSpec) DeepCopy() *AuthSpec

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

func (*AuthSpec) DeepCopyInto added in v0.49.0

func (in *AuthSpec) DeepCopyInto(out *AuthSpec)

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

type ClickHouseOpsRequest added in v0.47.0

type ClickHouseOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ClickHouseOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus         `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=clickhouseopsrequests,singular=clickhouseopsrequest,shortName=chops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*ClickHouseOpsRequest) CustomResourceDefinition added in v0.47.0

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

func (*ClickHouseOpsRequest) DeepCopy added in v0.47.0

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

func (*ClickHouseOpsRequest) DeepCopyInto added in v0.47.0

func (in *ClickHouseOpsRequest) DeepCopyInto(out *ClickHouseOpsRequest)

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

func (*ClickHouseOpsRequest) DeepCopyObject added in v0.47.0

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

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

func (*ClickHouseOpsRequest) GetDBRefName added in v0.47.0

func (r *ClickHouseOpsRequest) GetDBRefName() string

func (*ClickHouseOpsRequest) GetObjectMeta added in v0.47.0

func (r *ClickHouseOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*ClickHouseOpsRequest) GetRequestType added in v0.47.0

func (r *ClickHouseOpsRequest) GetRequestType() any

func (*ClickHouseOpsRequest) GetStatus added in v0.47.0

func (r *ClickHouseOpsRequest) GetStatus() OpsRequestStatus

func (*ClickHouseOpsRequest) ResourceFQN added in v0.47.0

func (r *ClickHouseOpsRequest) ResourceFQN() string

func (*ClickHouseOpsRequest) ResourceKind added in v0.47.0

func (r *ClickHouseOpsRequest) ResourceKind() string

func (*ClickHouseOpsRequest) ResourcePlural added in v0.47.0

func (r *ClickHouseOpsRequest) ResourcePlural() string

func (*ClickHouseOpsRequest) ResourceShortCode added in v0.47.0

func (r *ClickHouseOpsRequest) ResourceShortCode() string

func (*ClickHouseOpsRequest) ResourceSingular added in v0.47.0

func (r *ClickHouseOpsRequest) ResourceSingular() string

func (*ClickHouseOpsRequest) SetStatus added in v0.47.0

func (r *ClickHouseOpsRequest) SetStatus(s OpsRequestStatus)

type ClickHouseOpsRequestList added in v0.47.0

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

ClickHouseOpsRequestList is a list of ClickHouseOpsRequests

func (*ClickHouseOpsRequestList) DeepCopy added in v0.47.0

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

func (*ClickHouseOpsRequestList) DeepCopyInto added in v0.47.0

func (in *ClickHouseOpsRequestList) DeepCopyInto(out *ClickHouseOpsRequestList)

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

func (*ClickHouseOpsRequestList) DeepCopyObject added in v0.47.0

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

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

type ClickHouseOpsRequestSpec added in v0.47.0

type ClickHouseOpsRequestSpec struct {
	// Specifies the ClickHouse reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc.
	Type ClickHouseOpsRequestType `json:"type"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

ClickHouseOpsRequestSpec is the spec for ClickHouseOpsRequest

func (*ClickHouseOpsRequestSpec) DeepCopy added in v0.47.0

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

func (*ClickHouseOpsRequestSpec) DeepCopyInto added in v0.47.0

func (in *ClickHouseOpsRequestSpec) DeepCopyInto(out *ClickHouseOpsRequestSpec)

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

type ClickHouseOpsRequestType added in v0.47.0

type ClickHouseOpsRequestType string

+kubebuilder:validation:Enum=Restart;RotateAuth ENUM(Restart, RotateAuth)

const (
	// ClickHouseOpsRequestTypeRestart is a ClickHouseOpsRequestType of type Restart.
	ClickHouseOpsRequestTypeRestart ClickHouseOpsRequestType = "Restart"
	// ClickHouseOpsRequestTypeRotateAuth is a ClickHouseOpsRequestType of type RotateAuth.
	ClickHouseOpsRequestTypeRotateAuth ClickHouseOpsRequestType = "RotateAuth"
)

func ClickHouseOpsRequestTypeValues added in v0.47.0

func ClickHouseOpsRequestTypeValues() []ClickHouseOpsRequestType

ClickHouseOpsRequestTypeValues returns a list of the values for ClickHouseOpsRequestType

func MustParseClickHouseOpsRequestType added in v0.47.0

func MustParseClickHouseOpsRequestType(name string) ClickHouseOpsRequestType

MustParseClickHouseOpsRequestType converts a string to a ClickHouseOpsRequestType, and panics if is not valid.

func ParseClickHouseOpsRequestType added in v0.47.0

func ParseClickHouseOpsRequestType(name string) (ClickHouseOpsRequestType, error)

ParseClickHouseOpsRequestType attempts to convert a string to a ClickHouseOpsRequestType.

func (ClickHouseOpsRequestType) IsValid added in v0.47.0

func (x ClickHouseOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (ClickHouseOpsRequestType) String added in v0.47.0

func (x ClickHouseOpsRequestType) String() string

String implements the Stringer interface.

type ConfigNode

type ConfigNode struct {
	Replicas int32 `json:"replicas,omitempty"`
}

ConfigNode is the spec for mongodb ConfigServer

func (*ConfigNode) DeepCopy

func (in *ConfigNode) DeepCopy() *ConfigNode

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

func (*ConfigNode) DeepCopyInto

func (in *ConfigNode) DeepCopyInto(out *ConfigNode)

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

type ContainerResources added in v0.39.0

type ContainerResources struct {
	// Compute Resources required by the sidecar container.
	// +optional
	Resources core.ResourceRequirements `json:"resources,omitempty"`
}

ContainerResources is the spec for vertical scaling of containers

func (*ContainerResources) DeepCopy added in v0.39.0

func (in *ContainerResources) DeepCopy() *ContainerResources

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

func (*ContainerResources) DeepCopyInto added in v0.39.0

func (in *ContainerResources) DeepCopyInto(out *ContainerResources)

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

type DruidCustomConfigurationSpec added in v0.49.0

type DruidCustomConfigurationSpec struct {
	// ConfigSecret is an optional field to provide custom configuration file for database.
	// +optional
	ConfigSecret *core.LocalObjectReference `json:"configSecret,omitempty"`
	// ApplyConfig is an optional field to provide Druid configuration.
	// Provided configuration will be applied to config files stored in ConfigSecret.
	// If the ConfigSecret is missing, the operator will create a new k8s secret by the
	// following naming convention: {db-name}-user-config .
	// Expected input format:
	//	applyConfig:
	//		file-name.properties: |
	//			key=value
	//		server.properties: |
	//			log.retention.ms=10000
	// +optional
	ApplyConfig map[string]string `json:"applyConfig,omitempty"`
	// If set to "true", the user provided configuration will be removed.
	// The Druid cluster will start will default configuration that is generated by the operator.
	// +optional
	RemoveCustomConfig bool `json:"removeCustomConfig,omitempty"`
}

DruidCustomConfigurationSpec is the spec for Reconfiguring the Druid Settings

func (*DruidCustomConfigurationSpec) DeepCopy added in v0.49.0

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

func (*DruidCustomConfigurationSpec) DeepCopyInto added in v0.49.0

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

type DruidHorizontalScalingSpec added in v0.49.0

type DruidHorizontalScalingSpec struct {
	// Node topology specification
	Topology *DruidHorizontalScalingTopologySpec `json:"topology,omitempty"`
}

DruidHorizontalScalingSpec contains the horizontal scaling information of a Druid cluster

func (*DruidHorizontalScalingSpec) DeepCopy added in v0.49.0

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

func (*DruidHorizontalScalingSpec) DeepCopyInto added in v0.49.0

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

type DruidHorizontalScalingTopologySpec added in v0.49.0

type DruidHorizontalScalingTopologySpec struct {
	// Number of coordinator nodes
	Coordinators *int32 `json:"coordinators,omitempty"`
	// Number of overlords nodes
	Overlords *int32 `json:"overlords,omitempty"`
	// Number of middleManagers nodes
	MiddleManagers *int32 `json:"middleManagers,omitempty"`
	// Number of historicals nodes
	Historicals *int32 `json:"historicals,omitempty"`
	// Number of brokers nodes
	Brokers *int32 `json:"brokers,omitempty"`
	// Number of routers nodes
	Routers *int32 `json:"routers,omitempty"`
}

DruidHorizontalScalingTopologySpec contains the horizontal scaling information in cluster topology mode

func (*DruidHorizontalScalingTopologySpec) DeepCopy added in v0.49.0

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

func (*DruidHorizontalScalingTopologySpec) DeepCopyInto added in v0.49.0

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

type DruidOpsRequest added in v0.46.0

type DruidOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DruidOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus    `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=druidopsrequests,singular=druidopsrequest,shortName=drops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*DruidOpsRequest) CustomResourceDefinition added in v0.46.0

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

func (*DruidOpsRequest) DeepCopy added in v0.46.0

func (in *DruidOpsRequest) DeepCopy() *DruidOpsRequest

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

func (*DruidOpsRequest) DeepCopyInto added in v0.46.0

func (in *DruidOpsRequest) DeepCopyInto(out *DruidOpsRequest)

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

func (*DruidOpsRequest) DeepCopyObject added in v0.46.0

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

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

func (*DruidOpsRequest) GetDBRefName added in v0.46.0

func (d *DruidOpsRequest) GetDBRefName() string

func (*DruidOpsRequest) GetObjectMeta added in v0.46.0

func (d *DruidOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*DruidOpsRequest) GetRequestType added in v0.46.0

func (d *DruidOpsRequest) GetRequestType() any

func (*DruidOpsRequest) GetStatus added in v0.46.0

func (d *DruidOpsRequest) GetStatus() OpsRequestStatus

func (*DruidOpsRequest) ResourceFQN added in v0.46.0

func (d *DruidOpsRequest) ResourceFQN() string

func (*DruidOpsRequest) ResourceKind added in v0.46.0

func (d *DruidOpsRequest) ResourceKind() string

func (*DruidOpsRequest) ResourcePlural added in v0.46.0

func (d *DruidOpsRequest) ResourcePlural() string

func (*DruidOpsRequest) ResourceShortCode added in v0.46.0

func (d *DruidOpsRequest) ResourceShortCode() string

func (*DruidOpsRequest) ResourceSingular added in v0.46.0

func (d *DruidOpsRequest) ResourceSingular() string

func (*DruidOpsRequest) SetStatus added in v0.46.0

func (d *DruidOpsRequest) SetStatus(s OpsRequestStatus)

type DruidOpsRequestList added in v0.46.0

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

DruidOpsRequestList is a list of DruidOpsRequests

func (*DruidOpsRequestList) DeepCopy added in v0.46.0

func (in *DruidOpsRequestList) DeepCopy() *DruidOpsRequestList

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

func (*DruidOpsRequestList) DeepCopyInto added in v0.46.0

func (in *DruidOpsRequestList) DeepCopyInto(out *DruidOpsRequestList)

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

func (*DruidOpsRequestList) DeepCopyObject added in v0.46.0

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

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

type DruidOpsRequestSpec added in v0.46.0

type DruidOpsRequestSpec struct {
	// Specifies the Druid reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc.
	Type DruidOpsRequestType `json:"type"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *DruidHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *DruidVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *DruidVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Specifies information necessary for upgrading Druid
	UpdateVersion *DruidUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for custom configuration of Druid
	Configuration *DruidCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *TLSSpec `json:"tls,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

DruidOpsRequestSpec is the spec for DruidOpsRequest

func (*DruidOpsRequestSpec) DeepCopy added in v0.46.0

func (in *DruidOpsRequestSpec) DeepCopy() *DruidOpsRequestSpec

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

func (*DruidOpsRequestSpec) DeepCopyInto added in v0.46.0

func (in *DruidOpsRequestSpec) DeepCopyInto(out *DruidOpsRequestSpec)

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

type DruidOpsRequestType added in v0.46.0

type DruidOpsRequestType string

+kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth)

const (
	// DruidOpsRequestTypeUpdateVersion is a DruidOpsRequestType of type UpdateVersion.
	DruidOpsRequestTypeUpdateVersion DruidOpsRequestType = "UpdateVersion"
	// DruidOpsRequestTypeHorizontalScaling is a DruidOpsRequestType of type HorizontalScaling.
	DruidOpsRequestTypeHorizontalScaling DruidOpsRequestType = "HorizontalScaling"
	// DruidOpsRequestTypeVerticalScaling is a DruidOpsRequestType of type VerticalScaling.
	DruidOpsRequestTypeVerticalScaling DruidOpsRequestType = "VerticalScaling"
	// DruidOpsRequestTypeVolumeExpansion is a DruidOpsRequestType of type VolumeExpansion.
	DruidOpsRequestTypeVolumeExpansion DruidOpsRequestType = "VolumeExpansion"
	// DruidOpsRequestTypeRestart is a DruidOpsRequestType of type Restart.
	DruidOpsRequestTypeRestart DruidOpsRequestType = "Restart"
	// DruidOpsRequestTypeReconfigure is a DruidOpsRequestType of type Reconfigure.
	DruidOpsRequestTypeReconfigure DruidOpsRequestType = "Reconfigure"
	// DruidOpsRequestTypeReconfigureTLS is a DruidOpsRequestType of type ReconfigureTLS.
	DruidOpsRequestTypeReconfigureTLS DruidOpsRequestType = "ReconfigureTLS"
	// DruidOpsRequestTypeRotateAuth is a DruidOpsRequestType of type RotateAuth.
	DruidOpsRequestTypeRotateAuth DruidOpsRequestType = "RotateAuth"
)

func DruidOpsRequestTypeValues added in v0.46.0

func DruidOpsRequestTypeValues() []DruidOpsRequestType

DruidOpsRequestTypeValues returns a list of the values for DruidOpsRequestType

func MustParseDruidOpsRequestType added in v0.46.0

func MustParseDruidOpsRequestType(name string) DruidOpsRequestType

MustParseDruidOpsRequestType converts a string to a DruidOpsRequestType, and panics if is not valid.

func ParseDruidOpsRequestType added in v0.46.0

func ParseDruidOpsRequestType(name string) (DruidOpsRequestType, error)

ParseDruidOpsRequestType attempts to convert a string to a DruidOpsRequestType.

func (DruidOpsRequestType) IsValid added in v0.46.0

func (x DruidOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (DruidOpsRequestType) String added in v0.46.0

func (x DruidOpsRequestType) String() string

String implements the Stringer interface.

type DruidUpdateVersionSpec added in v0.49.0

type DruidUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion string `json:"targetVersion,omitempty"`
}

DruidUpdateVersionSpec contains the update version information of a druid cluster

func (*DruidUpdateVersionSpec) DeepCopy added in v0.49.0

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

func (*DruidUpdateVersionSpec) DeepCopyInto added in v0.49.0

func (in *DruidUpdateVersionSpec) DeepCopyInto(out *DruidUpdateVersionSpec)

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

type DruidVerticalScalingSpec added in v0.46.0

type DruidVerticalScalingSpec struct {
	Coordinators   *PodResources `json:"coordinators,omitempty"`
	Overlords      *PodResources `json:"overlords,omitempty"`
	MiddleManagers *PodResources `json:"middleManagers,omitempty"`
	Historicals    *PodResources `json:"historicals,omitempty"`
	Brokers        *PodResources `json:"brokers,omitempty"`
	Routers        *PodResources `json:"routers,omitempty"`
}

DruidVerticalScalingSpec contains the vertical scaling information of a Druid cluster

func (*DruidVerticalScalingSpec) DeepCopy added in v0.46.0

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

func (*DruidVerticalScalingSpec) DeepCopyInto added in v0.46.0

func (in *DruidVerticalScalingSpec) DeepCopyInto(out *DruidVerticalScalingSpec)

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

type DruidVolumeExpansionSpec added in v0.46.0

type DruidVolumeExpansionSpec struct {
	Mode VolumeExpansionMode `json:"mode"`
	// volume specification for middleManagers nodes
	MiddleManagers *resource.Quantity `json:"middleManagers,omitempty"`
	// volume specification for historicals nodes
	Historicals *resource.Quantity `json:"historicals,omitempty"`
}

DruidVolumeExpansionSpec is the spec for Druid volume expansion

func (*DruidVolumeExpansionSpec) DeepCopy added in v0.46.0

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

func (*DruidVolumeExpansionSpec) DeepCopyInto added in v0.46.0

func (in *DruidVolumeExpansionSpec) DeepCopyInto(out *DruidVolumeExpansionSpec)

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

type ElasticsearchCustomConfiguration

type ElasticsearchCustomConfiguration struct {
	ConfigMap *core.LocalObjectReference `json:"configMap,omitempty"`
	Data      map[string]string          `json:"data,omitempty"`
	Remove    bool                       `json:"remove,omitempty"`
}

func (*ElasticsearchCustomConfiguration) DeepCopy

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

func (*ElasticsearchCustomConfiguration) DeepCopyInto

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

type ElasticsearchCustomConfigurationSpec

type ElasticsearchCustomConfigurationSpec struct {
	// ConfigSecret is an optional field to provide custom configuration file for database.
	// +optional
	ConfigSecret *core.LocalObjectReference `json:"configSecret,omitempty"`
	// SecureConfigSecret is an optional field to provide secure settings for database.
	//	- Ref: https://www.elastic.co/guide/en/elasticsearch/reference/7.14/secure-settings.html
	// +optional
	SecureConfigSecret *core.LocalObjectReference `json:"secureConfigSecret,omitempty"`
	// ApplyConfig is an optional field to provide Elasticsearch configuration.
	// Provided configuration will be applied to config files stored in ConfigSecret.
	// If the ConfigSecret is missing, the operator will create a new k8s secret by the
	// following naming convention: {db-name}-user-config .
	// Expected input format:
	//	applyConfig:
	//		file-name.yml: |
	//			key: value
	//		elasticsearch.yml: |
	//			thread_pool:
	//				write:
	//					size: 30
	// +optional
	ApplyConfig map[string]string `json:"applyConfig,omitempty"`
	// If set to "true", the user provided configuration will be removed.
	// The Elasticsearch cluster will start will default configuration that is generated by the operator.
	// +optional
	RemoveCustomConfig bool `json:"removeCustomConfig,omitempty"`
	// If set to "true", the user provided secure settings will be removed.
	// The elasticsearch.keystore will start will default password (i.e. "").
	// +optional
	RemoveSecureCustomConfig bool `json:"removeSecureCustomConfig,omitempty"`
}

ElasticsearchCustomConfigurationSpec is the spec for Reconfiguring the Elasticsearch Settings

func (*ElasticsearchCustomConfigurationSpec) DeepCopy

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

func (*ElasticsearchCustomConfigurationSpec) DeepCopyInto

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

type ElasticsearchHorizontalScalingSpec

type ElasticsearchHorizontalScalingSpec struct {
	// Number of combined (i.e. master, data, ingest) node
	Node *int32 `json:"node,omitempty"`
	// Node topology specification
	Topology *ElasticsearchHorizontalScalingTopologySpec `json:"topology,omitempty"`
}

ElasticsearchHorizontalScalingSpec contains the horizontal scaling information of an Elasticsearch cluster

func (*ElasticsearchHorizontalScalingSpec) DeepCopy

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

func (*ElasticsearchHorizontalScalingSpec) DeepCopyInto

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

type ElasticsearchHorizontalScalingTopologySpec added in v0.16.0

type ElasticsearchHorizontalScalingTopologySpec struct {
	// Number of master nodes
	Master *int32 `json:"master,omitempty"`
	// Number of ingest nodes
	Ingest *int32 `json:"ingest,omitempty"`
	// Number of data nodes
	Data         *int32 `json:"data,omitempty"`
	DataContent  *int32 `json:"dataContent,omitempty"`
	DataHot      *int32 `json:"dataHot,omitempty"`
	DataWarm     *int32 `json:"dataWarm,omitempty"`
	DataCold     *int32 `json:"dataCold,omitempty"`
	DataFrozen   *int32 `json:"dataFrozen,omitempty"`
	ML           *int32 `json:"ml,omitempty"`
	Transform    *int32 `json:"transform,omitempty"`
	Coordinating *int32 `json:"coordinating,omitempty"`
}

ElasticsearchHorizontalScalingTopologySpec contains the horizontal scaling information in cluster topology mode

func (*ElasticsearchHorizontalScalingTopologySpec) DeepCopy added in v0.16.0

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

func (*ElasticsearchHorizontalScalingTopologySpec) DeepCopyInto added in v0.16.0

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

type ElasticsearchOpsRequest

type ElasticsearchOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ElasticsearchOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus            `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=elasticsearchopsrequests,singular=elasticsearchopsrequest,shortName=esops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (ElasticsearchOpsRequest) CustomResourceDefinition

func (_ ElasticsearchOpsRequest) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*ElasticsearchOpsRequest) DeepCopy

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

func (*ElasticsearchOpsRequest) DeepCopyInto

func (in *ElasticsearchOpsRequest) DeepCopyInto(out *ElasticsearchOpsRequest)

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

func (*ElasticsearchOpsRequest) DeepCopyObject

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

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

func (*ElasticsearchOpsRequest) GetDBRefName added in v0.28.1

func (e *ElasticsearchOpsRequest) GetDBRefName() string

func (*ElasticsearchOpsRequest) GetObjectMeta added in v0.28.1

func (e *ElasticsearchOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*ElasticsearchOpsRequest) GetRequestType added in v0.28.1

func (e *ElasticsearchOpsRequest) GetRequestType() any

func (*ElasticsearchOpsRequest) GetStatus added in v0.28.1

func (ElasticsearchOpsRequest) ResourceFQN added in v0.16.0

func (e ElasticsearchOpsRequest) ResourceFQN() string

func (ElasticsearchOpsRequest) ResourceKind

func (e ElasticsearchOpsRequest) ResourceKind() string

func (ElasticsearchOpsRequest) ResourcePlural

func (e ElasticsearchOpsRequest) ResourcePlural() string

func (ElasticsearchOpsRequest) ResourceShortCode

func (e ElasticsearchOpsRequest) ResourceShortCode() string

func (ElasticsearchOpsRequest) ResourceSingular

func (e ElasticsearchOpsRequest) ResourceSingular() string

func (*ElasticsearchOpsRequest) SetStatus added in v0.28.1

func (e *ElasticsearchOpsRequest) SetStatus(s OpsRequestStatus)

func (ElasticsearchOpsRequest) ValidateSpecs

func (e ElasticsearchOpsRequest) ValidateSpecs() error

type ElasticsearchOpsRequestList

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

ElasticsearchOpsRequestList is a list of ElasticsearchOpsRequests

func (*ElasticsearchOpsRequestList) DeepCopy

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

func (*ElasticsearchOpsRequestList) DeepCopyInto

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

func (*ElasticsearchOpsRequestList) DeepCopyObject

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

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

type ElasticsearchOpsRequestSpec

type ElasticsearchOpsRequestSpec struct {
	// Specifies the Elasticsearch reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc.
	Type ElasticsearchOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading Elasticsearch
	UpdateVersion *ElasticsearchUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *ElasticsearchHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *ElasticsearchVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *ElasticsearchVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for custom configuration of Elasticsearch
	Configuration *ElasticsearchCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *TLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

ElasticsearchOpsRequestSpec is the spec for ElasticsearchOpsRequest

func (*ElasticsearchOpsRequestSpec) DeepCopy

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

func (*ElasticsearchOpsRequestSpec) DeepCopyInto

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

type ElasticsearchOpsRequestType added in v0.29.0

type ElasticsearchOpsRequestType string

+kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth)

const (
	// ElasticsearchOpsRequestTypeUpdateVersion is a ElasticsearchOpsRequestType of type UpdateVersion.
	ElasticsearchOpsRequestTypeUpdateVersion ElasticsearchOpsRequestType = "UpdateVersion"
	// ElasticsearchOpsRequestTypeHorizontalScaling is a ElasticsearchOpsRequestType of type HorizontalScaling.
	ElasticsearchOpsRequestTypeHorizontalScaling ElasticsearchOpsRequestType = "HorizontalScaling"
	// ElasticsearchOpsRequestTypeVerticalScaling is a ElasticsearchOpsRequestType of type VerticalScaling.
	ElasticsearchOpsRequestTypeVerticalScaling ElasticsearchOpsRequestType = "VerticalScaling"
	// ElasticsearchOpsRequestTypeVolumeExpansion is a ElasticsearchOpsRequestType of type VolumeExpansion.
	ElasticsearchOpsRequestTypeVolumeExpansion ElasticsearchOpsRequestType = "VolumeExpansion"
	// ElasticsearchOpsRequestTypeRestart is a ElasticsearchOpsRequestType of type Restart.
	ElasticsearchOpsRequestTypeRestart ElasticsearchOpsRequestType = "Restart"
	// ElasticsearchOpsRequestTypeReconfigure is a ElasticsearchOpsRequestType of type Reconfigure.
	ElasticsearchOpsRequestTypeReconfigure ElasticsearchOpsRequestType = "Reconfigure"
	// ElasticsearchOpsRequestTypeReconfigureTLS is a ElasticsearchOpsRequestType of type ReconfigureTLS.
	ElasticsearchOpsRequestTypeReconfigureTLS ElasticsearchOpsRequestType = "ReconfigureTLS"
	// ElasticsearchOpsRequestTypeRotateAuth is a ElasticsearchOpsRequestType of type RotateAuth.
	ElasticsearchOpsRequestTypeRotateAuth ElasticsearchOpsRequestType = "RotateAuth"
)

func ElasticsearchOpsRequestTypeValues added in v0.33.0

func ElasticsearchOpsRequestTypeValues() []ElasticsearchOpsRequestType

ElasticsearchOpsRequestTypeValues returns a list of the values for ElasticsearchOpsRequestType

func MustParseElasticsearchOpsRequestType added in v0.33.0

func MustParseElasticsearchOpsRequestType(name string) ElasticsearchOpsRequestType

MustParseElasticsearchOpsRequestType converts a string to a ElasticsearchOpsRequestType, and panics if is not valid.

func ParseElasticsearchOpsRequestType added in v0.33.0

func ParseElasticsearchOpsRequestType(name string) (ElasticsearchOpsRequestType, error)

ParseElasticsearchOpsRequestType attempts to convert a string to a ElasticsearchOpsRequestType.

func (ElasticsearchOpsRequestType) IsValid added in v0.33.0

func (x ElasticsearchOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (ElasticsearchOpsRequestType) String added in v0.33.0

String implements the Stringer interface.

type ElasticsearchReplicaReadinessCriteria

type ElasticsearchReplicaReadinessCriteria struct{}

ElasticsearchReplicaReadinessCriteria is the criteria for checking readiness of an Elasticsearch database

func (*ElasticsearchReplicaReadinessCriteria) DeepCopy

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

func (*ElasticsearchReplicaReadinessCriteria) DeepCopyInto

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

type ElasticsearchUpdateVersionSpec added in v0.33.0

type ElasticsearchUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion string `json:"targetVersion,omitempty"`
}

func (*ElasticsearchUpdateVersionSpec) DeepCopy added in v0.33.0

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

func (*ElasticsearchUpdateVersionSpec) DeepCopyInto added in v0.33.0

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

type ElasticsearchVerticalScalingSpec

type ElasticsearchVerticalScalingSpec struct {
	// Resource spec for combined nodes
	Node *PodResources `json:"node,omitempty"`
	// Resource spec for exporter sidecar
	Exporter     *ContainerResources `json:"exporter,omitempty"`
	Master       *PodResources       `json:"master,omitempty"`
	Ingest       *PodResources       `json:"ingest,omitempty"`
	Data         *PodResources       `json:"data,omitempty"`
	DataContent  *PodResources       `json:"dataContent,omitempty"`
	DataHot      *PodResources       `json:"dataHot,omitempty"`
	DataWarm     *PodResources       `json:"dataWarm,omitempty"`
	DataCold     *PodResources       `json:"dataCold,omitempty"`
	DataFrozen   *PodResources       `json:"dataFrozen,omitempty"`
	ML           *PodResources       `json:"ml,omitempty"`
	Transform    *PodResources       `json:"transform,omitempty"`
	Coordinating *PodResources       `json:"coordinating,omitempty"`
}

ElasticsearchVerticalScalingSpec is the spec for Elasticsearch vertical scaling

func (*ElasticsearchVerticalScalingSpec) DeepCopy

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

func (*ElasticsearchVerticalScalingSpec) DeepCopyInto

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

type ElasticsearchVolumeExpansionSpec

type ElasticsearchVolumeExpansionSpec struct {
	Mode VolumeExpansionMode `json:"mode"`
	// volume specification for combined nodes
	Node *resource.Quantity `json:"node,omitempty"`
	// volume specification for master nodes
	Master *resource.Quantity `json:"master,omitempty"`
	// volume specification for ingest nodes
	Ingest *resource.Quantity `json:"ingest,omitempty"`
	// volume specification for data nodes
	Data         *resource.Quantity `json:"data,omitempty"`
	DataContent  *resource.Quantity `json:"dataContent,omitempty"`
	DataHot      *resource.Quantity `json:"dataHot,omitempty"`
	DataWarm     *resource.Quantity `json:"dataWarm,omitempty"`
	DataCold     *resource.Quantity `json:"dataCold,omitempty"`
	DataFrozen   *resource.Quantity `json:"dataFrozen,omitempty"`
	ML           *resource.Quantity `json:"ml,omitempty"`
	Transform    *resource.Quantity `json:"transform,omitempty"`
	Coordinating *resource.Quantity `json:"coordinating,omitempty"`
}

ElasticsearchVolumeExpansionSpec is the spec for Elasticsearch volume expansion

func (*ElasticsearchVolumeExpansionSpec) DeepCopy

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

func (*ElasticsearchVolumeExpansionSpec) DeepCopyInto

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

type EtcdCustomConfiguration

type EtcdCustomConfiguration struct {
	ConfigMap *core.LocalObjectReference `json:"configMap,omitempty"`
	Data      map[string]string          `json:"data,omitempty"`
	Remove    bool                       `json:"remove,omitempty"`
}

func (*EtcdCustomConfiguration) DeepCopy

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

func (*EtcdCustomConfiguration) DeepCopyInto

func (in *EtcdCustomConfiguration) DeepCopyInto(out *EtcdCustomConfiguration)

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

type EtcdCustomConfigurationSpec

type EtcdCustomConfigurationSpec struct{}

func (*EtcdCustomConfigurationSpec) DeepCopy

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

func (*EtcdCustomConfigurationSpec) DeepCopyInto

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

type EtcdHorizontalScalingSpec

type EtcdHorizontalScalingSpec struct{}

HorizontalScaling is the spec for Etcd horizontal scaling

func (*EtcdHorizontalScalingSpec) DeepCopy

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

func (*EtcdHorizontalScalingSpec) DeepCopyInto

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

type EtcdOpsRequest

type EtcdOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              EtcdOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus   `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=etcdopsrequests,singular=etcdopsrequest,shortName=etcdops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (EtcdOpsRequest) CustomResourceDefinition

func (_ EtcdOpsRequest) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*EtcdOpsRequest) DeepCopy

func (in *EtcdOpsRequest) DeepCopy() *EtcdOpsRequest

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

func (*EtcdOpsRequest) DeepCopyInto

func (in *EtcdOpsRequest) DeepCopyInto(out *EtcdOpsRequest)

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

func (*EtcdOpsRequest) DeepCopyObject

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

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

func (*EtcdOpsRequest) GetDBRefName added in v0.28.1

func (e *EtcdOpsRequest) GetDBRefName() string

func (*EtcdOpsRequest) GetObjectMeta added in v0.28.1

func (e *EtcdOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*EtcdOpsRequest) GetRequestType added in v0.28.1

func (e *EtcdOpsRequest) GetRequestType() any

func (*EtcdOpsRequest) GetStatus added in v0.28.1

func (e *EtcdOpsRequest) GetStatus() OpsRequestStatus

func (EtcdOpsRequest) ResourceFQN added in v0.16.0

func (e EtcdOpsRequest) ResourceFQN() string

func (EtcdOpsRequest) ResourceKind

func (e EtcdOpsRequest) ResourceKind() string

func (EtcdOpsRequest) ResourcePlural

func (e EtcdOpsRequest) ResourcePlural() string

func (EtcdOpsRequest) ResourceShortCode

func (e EtcdOpsRequest) ResourceShortCode() string

func (EtcdOpsRequest) ResourceSingular

func (e EtcdOpsRequest) ResourceSingular() string

func (*EtcdOpsRequest) SetStatus added in v0.28.1

func (e *EtcdOpsRequest) SetStatus(s OpsRequestStatus)

func (EtcdOpsRequest) ValidateSpecs

func (e EtcdOpsRequest) ValidateSpecs() error

type EtcdOpsRequestList

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

EtcdOpsRequestList is a list of EtcdOpsRequests

func (*EtcdOpsRequestList) DeepCopy

func (in *EtcdOpsRequestList) DeepCopy() *EtcdOpsRequestList

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

func (*EtcdOpsRequestList) DeepCopyInto

func (in *EtcdOpsRequestList) DeepCopyInto(out *EtcdOpsRequestList)

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

func (*EtcdOpsRequestList) DeepCopyObject

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

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

type EtcdOpsRequestSpec

type EtcdOpsRequestSpec struct {
	// Specifies the Etcd reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc.
	Type EtcdOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading Etcd
	UpdateVersion *EtcdUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *EtcdHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *EtcdVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *EtcdVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for custom configuration of Etcd
	Configuration *EtcdCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *TLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

EtcdOpsRequestSpec is the spec for EtcdOpsRequest

func (*EtcdOpsRequestSpec) DeepCopy

func (in *EtcdOpsRequestSpec) DeepCopy() *EtcdOpsRequestSpec

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

func (*EtcdOpsRequestSpec) DeepCopyInto

func (in *EtcdOpsRequestSpec) DeepCopyInto(out *EtcdOpsRequestSpec)

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

type EtcdOpsRequestType added in v0.29.0

type EtcdOpsRequestType string

+kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth)

const (
	// EtcdOpsRequestTypeUpdateVersion is a EtcdOpsRequestType of type UpdateVersion.
	EtcdOpsRequestTypeUpdateVersion EtcdOpsRequestType = "UpdateVersion"
	// EtcdOpsRequestTypeHorizontalScaling is a EtcdOpsRequestType of type HorizontalScaling.
	EtcdOpsRequestTypeHorizontalScaling EtcdOpsRequestType = "HorizontalScaling"
	// EtcdOpsRequestTypeVerticalScaling is a EtcdOpsRequestType of type VerticalScaling.
	EtcdOpsRequestTypeVerticalScaling EtcdOpsRequestType = "VerticalScaling"
	// EtcdOpsRequestTypeVolumeExpansion is a EtcdOpsRequestType of type VolumeExpansion.
	EtcdOpsRequestTypeVolumeExpansion EtcdOpsRequestType = "VolumeExpansion"
	// EtcdOpsRequestTypeRestart is a EtcdOpsRequestType of type Restart.
	EtcdOpsRequestTypeRestart EtcdOpsRequestType = "Restart"
	// EtcdOpsRequestTypeReconfigure is a EtcdOpsRequestType of type Reconfigure.
	EtcdOpsRequestTypeReconfigure EtcdOpsRequestType = "Reconfigure"
	// EtcdOpsRequestTypeReconfigureTLS is a EtcdOpsRequestType of type ReconfigureTLS.
	EtcdOpsRequestTypeReconfigureTLS EtcdOpsRequestType = "ReconfigureTLS"
	// EtcdOpsRequestTypeRotateAuth is a EtcdOpsRequestType of type RotateAuth.
	EtcdOpsRequestTypeRotateAuth EtcdOpsRequestType = "RotateAuth"
)

func EtcdOpsRequestTypeValues added in v0.33.0

func EtcdOpsRequestTypeValues() []EtcdOpsRequestType

EtcdOpsRequestTypeValues returns a list of the values for EtcdOpsRequestType

func MustParseEtcdOpsRequestType added in v0.33.0

func MustParseEtcdOpsRequestType(name string) EtcdOpsRequestType

MustParseEtcdOpsRequestType converts a string to a EtcdOpsRequestType, and panics if is not valid.

func ParseEtcdOpsRequestType added in v0.33.0

func ParseEtcdOpsRequestType(name string) (EtcdOpsRequestType, error)

ParseEtcdOpsRequestType attempts to convert a string to a EtcdOpsRequestType.

func (EtcdOpsRequestType) IsValid added in v0.33.0

func (x EtcdOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (EtcdOpsRequestType) String added in v0.33.0

func (x EtcdOpsRequestType) String() string

String implements the Stringer interface.

type EtcdReplicaReadinessCriteria

type EtcdReplicaReadinessCriteria struct{}

EtcdReplicaReadinessCriteria is the criteria for checking readiness of a Etcd pod after updating, horizontal scaling etc.

func (*EtcdReplicaReadinessCriteria) DeepCopy

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

func (*EtcdReplicaReadinessCriteria) DeepCopyInto

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

type EtcdUpdateVersionSpec added in v0.33.0

type EtcdUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion     string                        `json:"targetVersion,omitempty"`
	ReadinessCriteria *EtcdReplicaReadinessCriteria `json:"readinessCriteria,omitempty"`
}

func (*EtcdUpdateVersionSpec) DeepCopy added in v0.33.0

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

func (*EtcdUpdateVersionSpec) DeepCopyInto added in v0.33.0

func (in *EtcdUpdateVersionSpec) DeepCopyInto(out *EtcdUpdateVersionSpec)

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

type EtcdVerticalScalingSpec

type EtcdVerticalScalingSpec struct {
	ReadinessCriteria *EtcdReplicaReadinessCriteria `json:"readinessCriteria,omitempty"`
}

EtcdVerticalScalingSpec is the spec for Etcd vertical scaling

func (*EtcdVerticalScalingSpec) DeepCopy

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

func (*EtcdVerticalScalingSpec) DeepCopyInto

func (in *EtcdVerticalScalingSpec) DeepCopyInto(out *EtcdVerticalScalingSpec)

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

type EtcdVolumeExpansionSpec

type EtcdVolumeExpansionSpec struct{}

EtcdVolumeExpansionSpec is the spec for Etcd volume expansion

func (*EtcdVolumeExpansionSpec) DeepCopy

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

func (*EtcdVolumeExpansionSpec) DeepCopyInto

func (in *EtcdVolumeExpansionSpec) DeepCopyInto(out *EtcdVolumeExpansionSpec)

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

type FerretDBHorizontalScalingSpec added in v0.47.0

type FerretDBHorizontalScalingSpec struct {
	// Number of node
	Node *int32 `json:"node,omitempty"`
}

FerretDBHorizontalScalingSpec contains the horizontal scaling information of a FerretDB cluster

func (*FerretDBHorizontalScalingSpec) DeepCopy added in v0.47.0

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

func (*FerretDBHorizontalScalingSpec) DeepCopyInto added in v0.47.0

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

type FerretDBOpsRequest added in v0.47.0

type FerretDBOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              FerretDBOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus       `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=ferretdbopsrequests,singular=ferretdbopsrequest,shortName=frops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*FerretDBOpsRequest) CustomResourceDefinition added in v0.47.0

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

func (*FerretDBOpsRequest) DeepCopy added in v0.47.0

func (in *FerretDBOpsRequest) DeepCopy() *FerretDBOpsRequest

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

func (*FerretDBOpsRequest) DeepCopyInto added in v0.47.0

func (in *FerretDBOpsRequest) DeepCopyInto(out *FerretDBOpsRequest)

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

func (*FerretDBOpsRequest) DeepCopyObject added in v0.47.0

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

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

func (*FerretDBOpsRequest) GetDBRefName added in v0.47.0

func (r *FerretDBOpsRequest) GetDBRefName() string

func (*FerretDBOpsRequest) GetObjectMeta added in v0.47.0

func (r *FerretDBOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*FerretDBOpsRequest) GetRequestType added in v0.47.0

func (r *FerretDBOpsRequest) GetRequestType() any

func (*FerretDBOpsRequest) GetStatus added in v0.47.0

func (r *FerretDBOpsRequest) GetStatus() OpsRequestStatus

func (*FerretDBOpsRequest) ResourceFQN added in v0.47.0

func (r *FerretDBOpsRequest) ResourceFQN() string

func (*FerretDBOpsRequest) ResourceKind added in v0.47.0

func (r *FerretDBOpsRequest) ResourceKind() string

func (*FerretDBOpsRequest) ResourcePlural added in v0.47.0

func (r *FerretDBOpsRequest) ResourcePlural() string

func (*FerretDBOpsRequest) ResourceShortCode added in v0.47.0

func (r *FerretDBOpsRequest) ResourceShortCode() string

func (*FerretDBOpsRequest) ResourceSingular added in v0.47.0

func (r *FerretDBOpsRequest) ResourceSingular() string

func (*FerretDBOpsRequest) SetStatus added in v0.47.0

func (r *FerretDBOpsRequest) SetStatus(s OpsRequestStatus)

type FerretDBOpsRequestList added in v0.47.0

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

FerretDBOpsRequestList is a list of FerretDBOpsRequests

func (*FerretDBOpsRequestList) DeepCopy added in v0.47.0

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

func (*FerretDBOpsRequestList) DeepCopyInto added in v0.47.0

func (in *FerretDBOpsRequestList) DeepCopyInto(out *FerretDBOpsRequestList)

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

func (*FerretDBOpsRequestList) DeepCopyObject added in v0.47.0

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

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

type FerretDBOpsRequestSpec added in v0.47.0

type FerretDBOpsRequestSpec struct {
	// Specifies the FerretDB reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc.
	Type FerretDBOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading ferretdb
	UpdateVersion *FerretDBUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *FerretDBHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *FerretDBVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *FerretDBTLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

FerretDBOpsRequestSpec is the spec for FerretDBOpsRequest

func (*FerretDBOpsRequestSpec) DeepCopy added in v0.47.0

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

func (*FerretDBOpsRequestSpec) DeepCopyInto added in v0.47.0

func (in *FerretDBOpsRequestSpec) DeepCopyInto(out *FerretDBOpsRequestSpec)

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

type FerretDBOpsRequestType added in v0.47.0

type FerretDBOpsRequestType string

+kubebuilder:validation:Enum=UpdateVersion;VerticalScaling;Restart;HorizontalScaling;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, Restart, VerticalScaling, HorizontalScaling, ReconfigureTLS, RotateAuth)

const (
	// FerretDBOpsRequestTypeUpdateVersion is a FerretDBOpsRequestType of type UpdateVersion.
	FerretDBOpsRequestTypeUpdateVersion FerretDBOpsRequestType = "UpdateVersion"
	// FerretDBOpsRequestTypeRestart is a FerretDBOpsRequestType of type Restart.
	FerretDBOpsRequestTypeRestart FerretDBOpsRequestType = "Restart"
	// FerretDBOpsRequestTypeVerticalScaling is a FerretDBOpsRequestType of type VerticalScaling.
	FerretDBOpsRequestTypeVerticalScaling FerretDBOpsRequestType = "VerticalScaling"
	// FerretDBOpsRequestTypeHorizontalScaling is a FerretDBOpsRequestType of type HorizontalScaling.
	FerretDBOpsRequestTypeHorizontalScaling FerretDBOpsRequestType = "HorizontalScaling"
	// FerretDBOpsRequestTypeReconfigureTLS is a FerretDBOpsRequestType of type ReconfigureTLS.
	FerretDBOpsRequestTypeReconfigureTLS FerretDBOpsRequestType = "ReconfigureTLS"
	// FerretDBOpsRequestTypeRotateAuth is a FerretDBOpsRequestType of type RotateAuth.
	FerretDBOpsRequestTypeRotateAuth FerretDBOpsRequestType = "RotateAuth"
)

func FerretDBOpsRequestTypeValues added in v0.47.0

func FerretDBOpsRequestTypeValues() []FerretDBOpsRequestType

FerretDBOpsRequestTypeValues returns a list of the values for FerretDBOpsRequestType

func MustParseFerretDBOpsRequestType added in v0.47.0

func MustParseFerretDBOpsRequestType(name string) FerretDBOpsRequestType

MustParseFerretDBOpsRequestType converts a string to a FerretDBOpsRequestType, and panics if is not valid.

func ParseFerretDBOpsRequestType added in v0.47.0

func ParseFerretDBOpsRequestType(name string) (FerretDBOpsRequestType, error)

ParseFerretDBOpsRequestType attempts to convert a string to a FerretDBOpsRequestType.

func (FerretDBOpsRequestType) IsValid added in v0.47.0

func (x FerretDBOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (FerretDBOpsRequestType) String added in v0.47.0

func (x FerretDBOpsRequestType) String() string

String implements the Stringer interface.

type FerretDBTLSSpec added in v0.47.0

type FerretDBTLSSpec struct {
	TLSSpec `json:",inline,omitempty"`

	// SSLMode for both standalone and clusters. [disable;allow;prefer;require;verify-ca;verify-full]
	// +optional
	SSLMode v1alpha2.SSLMode `json:"sslMode,omitempty"`

	// ClientAuthMode for both standalone and clusters. (default will be md5. [md5;scram;cert])
	// +optional
	ClientAuthMode v1alpha2.ClusterAuthMode `json:"clientAuthMode,omitempty"`
}

func (*FerretDBTLSSpec) DeepCopy added in v0.47.0

func (in *FerretDBTLSSpec) DeepCopy() *FerretDBTLSSpec

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

func (*FerretDBTLSSpec) DeepCopyInto added in v0.47.0

func (in *FerretDBTLSSpec) DeepCopyInto(out *FerretDBTLSSpec)

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

type FerretDBUpdateVersionSpec added in v0.47.0

type FerretDBUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion string `json:"targetVersion,omitempty"`
}

FerretDBUpdateVersionSpec contains the update version information of a ferretdb cluster

func (*FerretDBUpdateVersionSpec) DeepCopy added in v0.47.0

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

func (*FerretDBUpdateVersionSpec) DeepCopyInto added in v0.47.0

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

type FerretDBVerticalScalingSpec added in v0.47.0

type FerretDBVerticalScalingSpec struct {
	// Resource spec for nodes
	Node *PodResources `json:"node,omitempty"`
}

FerretDBVerticalScalingSpec contains the vertical scaling information of a FerretDB cluster

func (*FerretDBVerticalScalingSpec) DeepCopy added in v0.47.0

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

func (*FerretDBVerticalScalingSpec) DeepCopyInto added in v0.47.0

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

type HiddenNode added in v0.29.0

type HiddenNode struct {
	Replicas int32 `json:"replicas,omitempty"`
}

func (*HiddenNode) DeepCopy added in v0.29.0

func (in *HiddenNode) DeepCopy() *HiddenNode

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

func (*HiddenNode) DeepCopyInto added in v0.29.0

func (in *HiddenNode) DeepCopyInto(out *HiddenNode)

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

type KafkaCustomConfigurationSpec added in v0.36.0

type KafkaCustomConfigurationSpec struct {
	// ConfigSecret is an optional field to provide custom configuration file for database.
	// +optional
	ConfigSecret *core.LocalObjectReference `json:"configSecret,omitempty"`
	// ApplyConfig is an optional field to provide Kafka configuration.
	// Provided configuration will be applied to config files stored in ConfigSecret.
	// If the ConfigSecret is missing, the operator will create a new k8s secret by the
	// following naming convention: {db-name}-user-config .
	// Expected input format:
	//	applyConfig:
	//		file-name.properties: |
	//			key=value
	//		server.properties: |
	//			log.retention.ms=10000
	// +optional
	ApplyConfig map[string]string `json:"applyConfig,omitempty"`
	// If set to "true", the user provided configuration will be removed.
	// The Kafka cluster will start will default configuration that is generated by the operator.
	// +optional
	RemoveCustomConfig bool `json:"removeCustomConfig,omitempty"`
}

KafkaCustomConfigurationSpec is the spec for Reconfiguring the Kafka Settings

func (*KafkaCustomConfigurationSpec) DeepCopy added in v0.36.0

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

func (*KafkaCustomConfigurationSpec) DeepCopyInto added in v0.36.0

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

type KafkaHorizontalScalingSpec added in v0.36.0

type KafkaHorizontalScalingSpec struct {
	// Number of combined (i.e. broker, controller) node
	Node *int32 `json:"node,omitempty"`
	// Node topology specification
	Topology *KafkaHorizontalScalingTopologySpec `json:"topology,omitempty"`
}

KafkaHorizontalScalingSpec contains the horizontal scaling information of a Kafka cluster

func (*KafkaHorizontalScalingSpec) DeepCopy added in v0.36.0

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

func (*KafkaHorizontalScalingSpec) DeepCopyInto added in v0.36.0

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

type KafkaHorizontalScalingTopologySpec added in v0.36.0

type KafkaHorizontalScalingTopologySpec struct {
	// Number of broker nodes
	Broker *int32 `json:"broker,omitempty"`
	// Number of controller nodes
	Controller *int32 `json:"controller,omitempty"`
}

KafkaHorizontalScalingTopologySpec contains the horizontal scaling information in cluster topology mode

func (*KafkaHorizontalScalingTopologySpec) DeepCopy added in v0.36.0

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

func (*KafkaHorizontalScalingTopologySpec) DeepCopyInto added in v0.36.0

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

type KafkaOpsRequest added in v0.36.0

type KafkaOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              KafkaOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus    `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=kafkaopsrequests,singular=kafkaopsrequest,shortName=kfops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*KafkaOpsRequest) CustomResourceDefinition added in v0.36.0

func (_ *KafkaOpsRequest) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*KafkaOpsRequest) DeepCopy added in v0.36.0

func (in *KafkaOpsRequest) DeepCopy() *KafkaOpsRequest

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

func (*KafkaOpsRequest) DeepCopyInto added in v0.36.0

func (in *KafkaOpsRequest) DeepCopyInto(out *KafkaOpsRequest)

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

func (*KafkaOpsRequest) DeepCopyObject added in v0.36.0

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

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

func (*KafkaOpsRequest) GetDBRefName added in v0.36.0

func (k *KafkaOpsRequest) GetDBRefName() string

func (*KafkaOpsRequest) GetObjectMeta added in v0.36.0

func (k *KafkaOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*KafkaOpsRequest) GetRequestType added in v0.36.0

func (k *KafkaOpsRequest) GetRequestType() any

func (*KafkaOpsRequest) GetStatus added in v0.36.0

func (k *KafkaOpsRequest) GetStatus() OpsRequestStatus

func (*KafkaOpsRequest) ResourceFQN added in v0.36.0

func (k *KafkaOpsRequest) ResourceFQN() string

func (*KafkaOpsRequest) ResourceKind added in v0.36.0

func (k *KafkaOpsRequest) ResourceKind() string

func (*KafkaOpsRequest) ResourcePlural added in v0.36.0

func (k *KafkaOpsRequest) ResourcePlural() string

func (*KafkaOpsRequest) ResourceShortCode added in v0.36.0

func (k *KafkaOpsRequest) ResourceShortCode() string

func (*KafkaOpsRequest) ResourceSingular added in v0.36.0

func (k *KafkaOpsRequest) ResourceSingular() string

func (*KafkaOpsRequest) SetStatus added in v0.36.0

func (k *KafkaOpsRequest) SetStatus(s OpsRequestStatus)

type KafkaOpsRequestList added in v0.36.0

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

KafkaOpsRequestList is a list of KafkaOpsRequests

func (*KafkaOpsRequestList) DeepCopy added in v0.36.0

func (in *KafkaOpsRequestList) DeepCopy() *KafkaOpsRequestList

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

func (*KafkaOpsRequestList) DeepCopyInto added in v0.36.0

func (in *KafkaOpsRequestList) DeepCopyInto(out *KafkaOpsRequestList)

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

func (*KafkaOpsRequestList) DeepCopyObject added in v0.36.0

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

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

type KafkaOpsRequestSpec added in v0.36.0

type KafkaOpsRequestSpec struct {
	// Specifies the Kafka reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc.
	Type KafkaOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading Kafka
	UpdateVersion *KafkaUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *KafkaHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *KafkaVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *KafkaVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for custom configuration of Kafka
	Configuration *KafkaCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *TLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

KafkaOpsRequestSpec is the spec for KafkaOpsRequest

func (*KafkaOpsRequestSpec) DeepCopy added in v0.36.0

func (in *KafkaOpsRequestSpec) DeepCopy() *KafkaOpsRequestSpec

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

func (*KafkaOpsRequestSpec) DeepCopyInto added in v0.36.0

func (in *KafkaOpsRequestSpec) DeepCopyInto(out *KafkaOpsRequestSpec)

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

type KafkaOpsRequestType added in v0.36.0

type KafkaOpsRequestType string

+kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth)

const (
	// KafkaOpsRequestTypeUpdateVersion is a KafkaOpsRequestType of type UpdateVersion.
	KafkaOpsRequestTypeUpdateVersion KafkaOpsRequestType = "UpdateVersion"
	// KafkaOpsRequestTypeHorizontalScaling is a KafkaOpsRequestType of type HorizontalScaling.
	KafkaOpsRequestTypeHorizontalScaling KafkaOpsRequestType = "HorizontalScaling"
	// KafkaOpsRequestTypeVerticalScaling is a KafkaOpsRequestType of type VerticalScaling.
	KafkaOpsRequestTypeVerticalScaling KafkaOpsRequestType = "VerticalScaling"
	// KafkaOpsRequestTypeVolumeExpansion is a KafkaOpsRequestType of type VolumeExpansion.
	KafkaOpsRequestTypeVolumeExpansion KafkaOpsRequestType = "VolumeExpansion"
	// KafkaOpsRequestTypeRestart is a KafkaOpsRequestType of type Restart.
	KafkaOpsRequestTypeRestart KafkaOpsRequestType = "Restart"
	// KafkaOpsRequestTypeReconfigure is a KafkaOpsRequestType of type Reconfigure.
	KafkaOpsRequestTypeReconfigure KafkaOpsRequestType = "Reconfigure"
	// KafkaOpsRequestTypeReconfigureTLS is a KafkaOpsRequestType of type ReconfigureTLS.
	KafkaOpsRequestTypeReconfigureTLS KafkaOpsRequestType = "ReconfigureTLS"
	// KafkaOpsRequestTypeRotateAuth is a KafkaOpsRequestType of type RotateAuth.
	KafkaOpsRequestTypeRotateAuth KafkaOpsRequestType = "RotateAuth"
)

func KafkaOpsRequestTypeValues added in v0.36.0

func KafkaOpsRequestTypeValues() []KafkaOpsRequestType

KafkaOpsRequestTypeValues returns a list of the values for KafkaOpsRequestType

func MustParseKafkaOpsRequestType added in v0.36.0

func MustParseKafkaOpsRequestType(name string) KafkaOpsRequestType

MustParseKafkaOpsRequestType converts a string to a KafkaOpsRequestType, and panics if is not valid.

func ParseKafkaOpsRequestType added in v0.36.0

func ParseKafkaOpsRequestType(name string) (KafkaOpsRequestType, error)

ParseKafkaOpsRequestType attempts to convert a string to a KafkaOpsRequestType.

func (KafkaOpsRequestType) IsValid added in v0.36.0

func (x KafkaOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (KafkaOpsRequestType) String added in v0.36.0

func (x KafkaOpsRequestType) String() string

String implements the Stringer interface.

type KafkaReplicaReadinessCriteria added in v0.36.0

type KafkaReplicaReadinessCriteria struct{}

KafkaReplicaReadinessCriteria is the criteria for checking readiness of a Kafka pod after updating, horizontal scaling etc.

func (*KafkaReplicaReadinessCriteria) DeepCopy added in v0.36.0

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

func (*KafkaReplicaReadinessCriteria) DeepCopyInto added in v0.36.0

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

type KafkaUpdateVersionSpec added in v0.36.0

type KafkaUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion string `json:"targetVersion,omitempty"`
}

KafkaUpdateVersionSpec contains the update version information of a kafka cluster

func (*KafkaUpdateVersionSpec) DeepCopy added in v0.36.0

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

func (*KafkaUpdateVersionSpec) DeepCopyInto added in v0.36.0

func (in *KafkaUpdateVersionSpec) DeepCopyInto(out *KafkaUpdateVersionSpec)

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

type KafkaVerticalScalingSpec added in v0.36.0

type KafkaVerticalScalingSpec struct {
	// Resource spec for combined nodes
	Node *PodResources `json:"node,omitempty"`
	// Resource spec for broker
	Broker *PodResources `json:"broker,omitempty"`
	// Resource spec for controller
	Controller *PodResources `json:"controller,omitempty"`
}

KafkaVerticalScalingSpec contains the vertical scaling information of a Kafka cluster

func (*KafkaVerticalScalingSpec) DeepCopy added in v0.36.0

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

func (*KafkaVerticalScalingSpec) DeepCopyInto added in v0.36.0

func (in *KafkaVerticalScalingSpec) DeepCopyInto(out *KafkaVerticalScalingSpec)

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

type KafkaVolumeExpansionSpec added in v0.36.0

type KafkaVolumeExpansionSpec struct {
	Mode VolumeExpansionMode `json:"mode"`
	// volume specification for combined nodes
	Node *resource.Quantity `json:"node,omitempty"`
	// volume specification for broker
	Broker *resource.Quantity `json:"broker,omitempty"`
	// volume specification for controller
	Controller *resource.Quantity `json:"controller,omitempty"`
}

KafkaVolumeExpansionSpec is the spec for Kafka volume expansion

func (*KafkaVolumeExpansionSpec) DeepCopy added in v0.36.0

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

func (*KafkaVolumeExpansionSpec) DeepCopyInto added in v0.36.0

func (in *KafkaVolumeExpansionSpec) DeepCopyInto(out *KafkaVolumeExpansionSpec)

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

type MSSQLServerCustomConfigurationSpec added in v0.48.0

type MSSQLServerCustomConfigurationSpec struct {
	ConfigSecret       *core.LocalObjectReference `json:"configSecret,omitempty"`
	ApplyConfig        map[string]string          `json:"applyConfig,omitempty"`
	RemoveCustomConfig bool                       `json:"removeCustomConfig,omitempty"`
}

MSSQLServerCustomConfigurationSpec is the spec for Reconfiguring the MSSQLServer

func (*MSSQLServerCustomConfigurationSpec) DeepCopy added in v0.48.0

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

func (*MSSQLServerCustomConfigurationSpec) DeepCopyInto added in v0.48.0

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

type MSSQLServerHorizontalScalingSpec added in v0.48.0

type MSSQLServerHorizontalScalingSpec struct {
	// Number of Replicas of MSSQLServer Availability Group
	Replicas *int32 `json:"replicas,omitempty"`
}

MSSQLServerHorizontalScalingSpec contains the horizontal scaling information of a MSSQLServer cluster

func (*MSSQLServerHorizontalScalingSpec) DeepCopy added in v0.48.0

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

func (*MSSQLServerHorizontalScalingSpec) DeepCopyInto added in v0.48.0

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

type MSSQLServerOpsRequest added in v0.47.0

type MSSQLServerOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MSSQLServerOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus          `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=mssqlserveropsrequests,singular=mssqlserveropsrequest,shortName=msops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*MSSQLServerOpsRequest) CustomResourceDefinition added in v0.47.0

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

func (*MSSQLServerOpsRequest) DeepCopy added in v0.47.0

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

func (*MSSQLServerOpsRequest) DeepCopyInto added in v0.47.0

func (in *MSSQLServerOpsRequest) DeepCopyInto(out *MSSQLServerOpsRequest)

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

func (*MSSQLServerOpsRequest) DeepCopyObject added in v0.47.0

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

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

func (*MSSQLServerOpsRequest) GetDBRefName added in v0.47.0

func (r *MSSQLServerOpsRequest) GetDBRefName() string

func (*MSSQLServerOpsRequest) GetObjectMeta added in v0.47.0

func (r *MSSQLServerOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*MSSQLServerOpsRequest) GetRequestType added in v0.47.0

func (r *MSSQLServerOpsRequest) GetRequestType() any

func (*MSSQLServerOpsRequest) GetStatus added in v0.47.0

func (r *MSSQLServerOpsRequest) GetStatus() OpsRequestStatus

func (*MSSQLServerOpsRequest) ResourceFQN added in v0.47.0

func (r *MSSQLServerOpsRequest) ResourceFQN() string

func (*MSSQLServerOpsRequest) ResourceKind added in v0.47.0

func (r *MSSQLServerOpsRequest) ResourceKind() string

func (*MSSQLServerOpsRequest) ResourcePlural added in v0.47.0

func (r *MSSQLServerOpsRequest) ResourcePlural() string

func (*MSSQLServerOpsRequest) ResourceShortCode added in v0.47.0

func (r *MSSQLServerOpsRequest) ResourceShortCode() string

func (*MSSQLServerOpsRequest) ResourceSingular added in v0.47.0

func (r *MSSQLServerOpsRequest) ResourceSingular() string

func (*MSSQLServerOpsRequest) SetStatus added in v0.47.0

func (r *MSSQLServerOpsRequest) SetStatus(s OpsRequestStatus)

type MSSQLServerOpsRequestList added in v0.47.0

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

MSSQLServerOpsRequestList is a list of MSSQLServerOpsRequests

func (*MSSQLServerOpsRequestList) DeepCopy added in v0.47.0

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

func (*MSSQLServerOpsRequestList) DeepCopyInto added in v0.47.0

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

func (*MSSQLServerOpsRequestList) DeepCopyObject added in v0.47.0

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

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

type MSSQLServerOpsRequestSpec added in v0.47.0

type MSSQLServerOpsRequestSpec struct {
	// Specifies the MSSQLServer reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc.
	Type MSSQLServerOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading MSSQL
	UpdateVersion *MSSQLServerUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *MSSQLServerHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *MSSQLServerVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *MSSQLServerVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for custom configuration of MSSQLServer
	Configuration *MSSQLServerCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *MSSQLServerTLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

MSSQLServerOpsRequestSpec is the spec for MSSQLServerOpsRequest

func (*MSSQLServerOpsRequestSpec) DeepCopy added in v0.47.0

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

func (*MSSQLServerOpsRequestSpec) DeepCopyInto added in v0.47.0

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

type MSSQLServerOpsRequestType added in v0.47.0

type MSSQLServerOpsRequestType string

+kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth)

const (
	// MSSQLServerOpsRequestTypeUpdateVersion is a MSSQLServerOpsRequestType of type UpdateVersion.
	MSSQLServerOpsRequestTypeUpdateVersion MSSQLServerOpsRequestType = "UpdateVersion"
	// MSSQLServerOpsRequestTypeHorizontalScaling is a MSSQLServerOpsRequestType of type HorizontalScaling.
	MSSQLServerOpsRequestTypeHorizontalScaling MSSQLServerOpsRequestType = "HorizontalScaling"
	// MSSQLServerOpsRequestTypeVerticalScaling is a MSSQLServerOpsRequestType of type VerticalScaling.
	MSSQLServerOpsRequestTypeVerticalScaling MSSQLServerOpsRequestType = "VerticalScaling"
	// MSSQLServerOpsRequestTypeVolumeExpansion is a MSSQLServerOpsRequestType of type VolumeExpansion.
	MSSQLServerOpsRequestTypeVolumeExpansion MSSQLServerOpsRequestType = "VolumeExpansion"
	// MSSQLServerOpsRequestTypeRestart is a MSSQLServerOpsRequestType of type Restart.
	MSSQLServerOpsRequestTypeRestart MSSQLServerOpsRequestType = "Restart"
	// MSSQLServerOpsRequestTypeReconfigure is a MSSQLServerOpsRequestType of type Reconfigure.
	MSSQLServerOpsRequestTypeReconfigure MSSQLServerOpsRequestType = "Reconfigure"
	// MSSQLServerOpsRequestTypeReconfigureTLS is a MSSQLServerOpsRequestType of type ReconfigureTLS.
	MSSQLServerOpsRequestTypeReconfigureTLS MSSQLServerOpsRequestType = "ReconfigureTLS"
	// MSSQLServerOpsRequestTypeRotateAuth is a MSSQLServerOpsRequestType of type RotateAuth.
	MSSQLServerOpsRequestTypeRotateAuth MSSQLServerOpsRequestType = "RotateAuth"
)

func MSSQLServerOpsRequestTypeValues added in v0.47.0

func MSSQLServerOpsRequestTypeValues() []MSSQLServerOpsRequestType

MSSQLServerOpsRequestTypeValues returns a list of the values for MSSQLServerOpsRequestType

func MustParseMSSQLServerOpsRequestType added in v0.47.0

func MustParseMSSQLServerOpsRequestType(name string) MSSQLServerOpsRequestType

MustParseMSSQLServerOpsRequestType converts a string to a MSSQLServerOpsRequestType, and panics if is not valid.

func ParseMSSQLServerOpsRequestType added in v0.47.0

func ParseMSSQLServerOpsRequestType(name string) (MSSQLServerOpsRequestType, error)

ParseMSSQLServerOpsRequestType attempts to convert a string to a MSSQLServerOpsRequestType.

func (MSSQLServerOpsRequestType) IsValid added in v0.47.0

func (x MSSQLServerOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (MSSQLServerOpsRequestType) String added in v0.47.0

func (x MSSQLServerOpsRequestType) String() string

String implements the Stringer interface.

type MSSQLServerReplicaReadinessCriteria added in v0.48.0

type MSSQLServerReplicaReadinessCriteria struct{}

MSSQLServerReplicaReadinessCriteria is the criteria for checking readiness of a MSSQLServer pod after updating, horizontal scaling etc.

func (*MSSQLServerReplicaReadinessCriteria) DeepCopy added in v0.48.0

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

func (*MSSQLServerReplicaReadinessCriteria) DeepCopyInto added in v0.48.0

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

type MSSQLServerTLSSpec added in v0.49.0

type MSSQLServerTLSSpec struct {
	// SQLServerTLSSpec contains updated tls configurations for client and server.
	// +optional
	dbapi.MSSQLServerTLSConfig `json:",inline,omitempty"`

	// RotateCertificates tells operator to initiate certificate rotation
	// +optional
	RotateCertificates bool `json:"rotateCertificates,omitempty"`

	// Remove tells operator to remove TLS configuration
	// +optional
	Remove bool `json:"remove,omitempty"`
}

func (*MSSQLServerTLSSpec) DeepCopy added in v0.49.0

func (in *MSSQLServerTLSSpec) DeepCopy() *MSSQLServerTLSSpec

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

func (*MSSQLServerTLSSpec) DeepCopyInto added in v0.49.0

func (in *MSSQLServerTLSSpec) DeepCopyInto(out *MSSQLServerTLSSpec)

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

type MSSQLServerUpdateVersionSpec added in v0.48.0

type MSSQLServerUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion string `json:"targetVersion,omitempty"`
}

MSSQLServerUpdateVersionSpec contains the update version information of a MSSQLServer cluster

func (*MSSQLServerUpdateVersionSpec) DeepCopy added in v0.48.0

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

func (*MSSQLServerUpdateVersionSpec) DeepCopyInto added in v0.48.0

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

type MSSQLServerVerticalScalingSpec added in v0.48.0

type MSSQLServerVerticalScalingSpec struct {
	MSSQLServer *PodResources       `json:"mssqlserver,omitempty"`
	Exporter    *ContainerResources `json:"exporter,omitempty"`
	Coordinator *ContainerResources `json:"coordinator,omitempty"`
}

MSSQLServerVerticalScalingSpec contains the vertical scaling information of a MSSQLServer cluster

func (*MSSQLServerVerticalScalingSpec) DeepCopy added in v0.48.0

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

func (*MSSQLServerVerticalScalingSpec) DeepCopyInto added in v0.48.0

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

type MSSQLServerVolumeExpansionSpec added in v0.48.0

type MSSQLServerVolumeExpansionSpec struct {
	// volume specification for MSSQLServer
	MSSQLServer *resource.Quantity  `json:"mssqlserver,omitempty"`
	Mode        VolumeExpansionMode `json:"mode"`
}

MSSQLServerVolumeExpansionSpec is the spec for MSSQLServer volume expansion

func (*MSSQLServerVolumeExpansionSpec) DeepCopy added in v0.48.0

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

func (*MSSQLServerVolumeExpansionSpec) DeepCopyInto added in v0.48.0

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

type MariaDBCustomConfiguration

type MariaDBCustomConfiguration struct {
	ConfigMap *core.LocalObjectReference `json:"configMap,omitempty"`
	Data      map[string]string          `json:"data,omitempty"`
	Remove    bool                       `json:"remove,omitempty"`
}

func (*MariaDBCustomConfiguration) DeepCopy

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

func (*MariaDBCustomConfiguration) DeepCopyInto

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

type MariaDBCustomConfigurationSpec

type MariaDBCustomConfigurationSpec struct {
	// ConfigSecret is an optional field to provide custom configuration file for database.
	// +optional
	ConfigSecret *core.LocalObjectReference `json:"configSecret,omitempty"`
	// If set to "true", the user provided configuration will be removed.
	// MariaDB will start will default configuration that is generated by the operator.
	// +optional
	RemoveCustomConfig bool `json:"removeCustomConfig,omitempty"`
	// ApplyConfig is an optional field to provide MariaDB configuration.
	// Provided configuration will be applied to config files stored in ConfigSecret.
	// If the ConfigSecret is missing, the operator will create a new k8s secret by the
	// following naming convention: {db-name}-user-config .
	// Expected input format:
	//	applyConfig:
	//		file-name.cnf: |
	//			[mysqld]
	//			key1: value1
	//			key2: value2
	// +optional
	ApplyConfig map[string]string `json:"applyConfig,omitempty"`
}

func (*MariaDBCustomConfigurationSpec) DeepCopy

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

func (*MariaDBCustomConfigurationSpec) DeepCopyInto

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

type MariaDBHorizontalScalingSpec

type MariaDBHorizontalScalingSpec struct {
	// Number of nodes/members of the group
	Member *int32 `json:"member,omitempty"`
	// specifies the weight of the current member/PodResources
	MemberWeight int32 `json:"memberWeight,omitempty"`
}

func (*MariaDBHorizontalScalingSpec) DeepCopy

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

func (*MariaDBHorizontalScalingSpec) DeepCopyInto

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

type MariaDBOpsRequest

type MariaDBOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MariaDBOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus      `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=mariadbopsrequests,singular=mariadbopsrequest,shortName=mariaops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (MariaDBOpsRequest) CustomResourceDefinition

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

func (*MariaDBOpsRequest) DeepCopy

func (in *MariaDBOpsRequest) DeepCopy() *MariaDBOpsRequest

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

func (*MariaDBOpsRequest) DeepCopyInto

func (in *MariaDBOpsRequest) DeepCopyInto(out *MariaDBOpsRequest)

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

func (*MariaDBOpsRequest) DeepCopyObject

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

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

func (*MariaDBOpsRequest) GetDBRefName added in v0.28.1

func (m *MariaDBOpsRequest) GetDBRefName() string

func (MariaDBOpsRequest) GetKey

func (m MariaDBOpsRequest) GetKey() string

func (*MariaDBOpsRequest) GetObjectMeta added in v0.28.1

func (m *MariaDBOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*MariaDBOpsRequest) GetRequestType added in v0.28.1

func (m *MariaDBOpsRequest) GetRequestType() any

func (*MariaDBOpsRequest) GetStatus added in v0.28.1

func (m *MariaDBOpsRequest) GetStatus() OpsRequestStatus

func (MariaDBOpsRequest) OffshootLabels

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

func (MariaDBOpsRequest) OffshootName

func (m MariaDBOpsRequest) OffshootName() string

func (MariaDBOpsRequest) OffshootSelectors

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

func (MariaDBOpsRequest) ResourceFQN added in v0.16.0

func (m MariaDBOpsRequest) ResourceFQN() string

func (MariaDBOpsRequest) ResourceKind

func (m MariaDBOpsRequest) ResourceKind() string

func (MariaDBOpsRequest) ResourcePlural

func (m MariaDBOpsRequest) ResourcePlural() string

func (MariaDBOpsRequest) ResourceShortCode

func (m MariaDBOpsRequest) ResourceShortCode() string

func (MariaDBOpsRequest) ResourceSingular

func (m MariaDBOpsRequest) ResourceSingular() string

func (*MariaDBOpsRequest) SetStatus added in v0.28.1

func (m *MariaDBOpsRequest) SetStatus(s OpsRequestStatus)

func (MariaDBOpsRequest) ValidateSpecs

func (m MariaDBOpsRequest) ValidateSpecs() error

type MariaDBOpsRequestList

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

MariaDBOpsRequestList is a list of MariaDBOpsRequests

func (*MariaDBOpsRequestList) DeepCopy

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

func (*MariaDBOpsRequestList) DeepCopyInto

func (in *MariaDBOpsRequestList) DeepCopyInto(out *MariaDBOpsRequestList)

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

func (*MariaDBOpsRequestList) DeepCopyObject

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

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

type MariaDBOpsRequestSpec

type MariaDBOpsRequestSpec struct {
	// Specifies the MariaDB reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc.
	Type MariaDBOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading MariaDB
	UpdateVersion *MariaDBUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *MariaDBHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *MariaDBVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *MariaDBVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for custom configuration of MariaDB
	Configuration *MariaDBCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *MariaDBTLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

MariaDBOpsRequestSpec is the spec for MariaDBOpsRequest

func (*MariaDBOpsRequestSpec) DeepCopy

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

func (*MariaDBOpsRequestSpec) DeepCopyInto

func (in *MariaDBOpsRequestSpec) DeepCopyInto(out *MariaDBOpsRequestSpec)

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

type MariaDBOpsRequestType added in v0.29.0

type MariaDBOpsRequestType string

+kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth)

const (
	// MariaDBOpsRequestTypeUpdateVersion is a MariaDBOpsRequestType of type UpdateVersion.
	MariaDBOpsRequestTypeUpdateVersion MariaDBOpsRequestType = "UpdateVersion"
	// MariaDBOpsRequestTypeHorizontalScaling is a MariaDBOpsRequestType of type HorizontalScaling.
	MariaDBOpsRequestTypeHorizontalScaling MariaDBOpsRequestType = "HorizontalScaling"
	// MariaDBOpsRequestTypeVerticalScaling is a MariaDBOpsRequestType of type VerticalScaling.
	MariaDBOpsRequestTypeVerticalScaling MariaDBOpsRequestType = "VerticalScaling"
	// MariaDBOpsRequestTypeVolumeExpansion is a MariaDBOpsRequestType of type VolumeExpansion.
	MariaDBOpsRequestTypeVolumeExpansion MariaDBOpsRequestType = "VolumeExpansion"
	// MariaDBOpsRequestTypeRestart is a MariaDBOpsRequestType of type Restart.
	MariaDBOpsRequestTypeRestart MariaDBOpsRequestType = "Restart"
	// MariaDBOpsRequestTypeReconfigure is a MariaDBOpsRequestType of type Reconfigure.
	MariaDBOpsRequestTypeReconfigure MariaDBOpsRequestType = "Reconfigure"
	// MariaDBOpsRequestTypeReconfigureTLS is a MariaDBOpsRequestType of type ReconfigureTLS.
	MariaDBOpsRequestTypeReconfigureTLS MariaDBOpsRequestType = "ReconfigureTLS"
	// MariaDBOpsRequestTypeRotateAuth is a MariaDBOpsRequestType of type RotateAuth.
	MariaDBOpsRequestTypeRotateAuth MariaDBOpsRequestType = "RotateAuth"
)

func MariaDBOpsRequestTypeValues added in v0.33.0

func MariaDBOpsRequestTypeValues() []MariaDBOpsRequestType

MariaDBOpsRequestTypeValues returns a list of the values for MariaDBOpsRequestType

func MustParseMariaDBOpsRequestType added in v0.33.0

func MustParseMariaDBOpsRequestType(name string) MariaDBOpsRequestType

MustParseMariaDBOpsRequestType converts a string to a MariaDBOpsRequestType, and panics if is not valid.

func ParseMariaDBOpsRequestType added in v0.33.0

func ParseMariaDBOpsRequestType(name string) (MariaDBOpsRequestType, error)

ParseMariaDBOpsRequestType attempts to convert a string to a MariaDBOpsRequestType.

func (MariaDBOpsRequestType) IsValid added in v0.33.0

func (x MariaDBOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (MariaDBOpsRequestType) String added in v0.33.0

func (x MariaDBOpsRequestType) String() string

String implements the Stringer interface.

type MariaDBReplicaReadinessCriteria

type MariaDBReplicaReadinessCriteria struct{}

MariaDBReplicaReadinessCriteria is the criteria for checking readiness of an MariaDB database

func (*MariaDBReplicaReadinessCriteria) DeepCopy

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

func (*MariaDBReplicaReadinessCriteria) DeepCopyInto

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

type MariaDBTLSSpec added in v0.19.0

type MariaDBTLSSpec struct {
	TLSSpec `json:",inline,omitempty"`

	// Indicates that the database server need to be encrypted connections(ssl)
	// +optional
	RequireSSL *bool `json:"requireSSL,omitempty"`
}

func (*MariaDBTLSSpec) DeepCopy added in v0.19.0

func (in *MariaDBTLSSpec) DeepCopy() *MariaDBTLSSpec

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

func (*MariaDBTLSSpec) DeepCopyInto added in v0.19.0

func (in *MariaDBTLSSpec) DeepCopyInto(out *MariaDBTLSSpec)

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

type MariaDBUpdateVersionSpec added in v0.33.0

type MariaDBUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion string `json:"targetVersion,omitempty"`
}

func (*MariaDBUpdateVersionSpec) DeepCopy added in v0.33.0

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

func (*MariaDBUpdateVersionSpec) DeepCopyInto added in v0.33.0

func (in *MariaDBUpdateVersionSpec) DeepCopyInto(out *MariaDBUpdateVersionSpec)

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

type MariaDBVerticalScalingSpec

type MariaDBVerticalScalingSpec struct {
	MariaDB     *PodResources       `json:"mariadb,omitempty"`
	Exporter    *ContainerResources `json:"exporter,omitempty"`
	Coordinator *ContainerResources `json:"coordinator,omitempty"`
}

func (*MariaDBVerticalScalingSpec) DeepCopy

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

func (*MariaDBVerticalScalingSpec) DeepCopyInto

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

type MariaDBVolumeExpansionSpec

type MariaDBVolumeExpansionSpec struct {
	MariaDB *resource.Quantity  `json:"mariadb,omitempty"`
	Mode    VolumeExpansionMode `json:"mode"`
}

MariaDBVolumeExpansionSpec is the spec for MariaDB volume expansion

func (*MariaDBVolumeExpansionSpec) DeepCopy

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

func (*MariaDBVolumeExpansionSpec) DeepCopyInto

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

type MemcachedCustomConfiguration

type MemcachedCustomConfiguration struct {
	ConfigMap *core.LocalObjectReference `json:"configMap,omitempty"`
	Data      map[string]string          `json:"data,omitempty"`
	Remove    bool                       `json:"remove,omitempty"`
}

func (*MemcachedCustomConfiguration) DeepCopy

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

func (*MemcachedCustomConfiguration) DeepCopyInto

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

type MemcachedCustomConfigurationSpec

type MemcachedCustomConfigurationSpec struct {
	ConfigSecret       *core.LocalObjectReference `json:"configSecret,omitempty"`
	ApplyConfig        map[string]string          `json:"applyConfig,omitempty"`
	RemoveCustomConfig bool                       `json:"removeCustomConfig,omitempty"`
}

func (*MemcachedCustomConfigurationSpec) DeepCopy

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

func (*MemcachedCustomConfigurationSpec) DeepCopyInto

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

type MemcachedHorizontalScalingSpec

type MemcachedHorizontalScalingSpec struct {
	// specifies the number of replica
	Replicas *int32 `json:"replicas,omitempty"`
}

HorizontalScaling is the spec for Memcached horizontal scaling

func (*MemcachedHorizontalScalingSpec) DeepCopy

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

func (*MemcachedHorizontalScalingSpec) DeepCopyInto

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

type MemcachedOpsRequest

type MemcachedOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MemcachedOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus        `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=memcachedopsrequests,singular=memcachedopsrequest,shortName=mcops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (MemcachedOpsRequest) CustomResourceDefinition

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

func (*MemcachedOpsRequest) DeepCopy

func (in *MemcachedOpsRequest) DeepCopy() *MemcachedOpsRequest

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

func (*MemcachedOpsRequest) DeepCopyInto

func (in *MemcachedOpsRequest) DeepCopyInto(out *MemcachedOpsRequest)

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

func (*MemcachedOpsRequest) DeepCopyObject

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

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

func (*MemcachedOpsRequest) GetDBRefName added in v0.28.1

func (m *MemcachedOpsRequest) GetDBRefName() string

func (*MemcachedOpsRequest) GetObjectMeta added in v0.28.1

func (m *MemcachedOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*MemcachedOpsRequest) GetRequestType added in v0.28.1

func (m *MemcachedOpsRequest) GetRequestType() any

func (*MemcachedOpsRequest) GetStatus added in v0.28.1

func (m *MemcachedOpsRequest) GetStatus() OpsRequestStatus

func (MemcachedOpsRequest) ResourceFQN added in v0.16.0

func (m MemcachedOpsRequest) ResourceFQN() string

func (MemcachedOpsRequest) ResourceKind

func (m MemcachedOpsRequest) ResourceKind() string

func (MemcachedOpsRequest) ResourcePlural

func (m MemcachedOpsRequest) ResourcePlural() string

func (MemcachedOpsRequest) ResourceShortCode

func (m MemcachedOpsRequest) ResourceShortCode() string

func (MemcachedOpsRequest) ResourceSingular

func (m MemcachedOpsRequest) ResourceSingular() string

func (*MemcachedOpsRequest) SetStatus added in v0.28.1

func (m *MemcachedOpsRequest) SetStatus(s OpsRequestStatus)

func (MemcachedOpsRequest) ValidateSpecs

func (m MemcachedOpsRequest) ValidateSpecs() error

type MemcachedOpsRequestList

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

MemcachedOpsRequestList is a list of MemcachedOpsRequests

func (*MemcachedOpsRequestList) DeepCopy

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

func (*MemcachedOpsRequestList) DeepCopyInto

func (in *MemcachedOpsRequestList) DeepCopyInto(out *MemcachedOpsRequestList)

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

func (*MemcachedOpsRequestList) DeepCopyObject

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

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

type MemcachedOpsRequestSpec

type MemcachedOpsRequestSpec struct {
	// Specifies the Memcached reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc.
	Type MemcachedOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading Memcached
	UpdateVersion *MemcachedUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *MemcachedHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *MemcachedVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *MemcachedVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for custom configuration of Memcached
	Configuration *MemcachedCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *TLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

MemcachedOpsRequestSpec is the spec for MemcachedOpsRequest

func (*MemcachedOpsRequestSpec) DeepCopy

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

func (*MemcachedOpsRequestSpec) DeepCopyInto

func (in *MemcachedOpsRequestSpec) DeepCopyInto(out *MemcachedOpsRequestSpec)

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

type MemcachedOpsRequestType added in v0.29.0

type MemcachedOpsRequestType string

+kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth)

const (
	// MemcachedOpsRequestTypeUpdateVersion is a MemcachedOpsRequestType of type UpdateVersion.
	MemcachedOpsRequestTypeUpdateVersion MemcachedOpsRequestType = "UpdateVersion"
	// MemcachedOpsRequestTypeHorizontalScaling is a MemcachedOpsRequestType of type HorizontalScaling.
	MemcachedOpsRequestTypeHorizontalScaling MemcachedOpsRequestType = "HorizontalScaling"
	// MemcachedOpsRequestTypeVerticalScaling is a MemcachedOpsRequestType of type VerticalScaling.
	MemcachedOpsRequestTypeVerticalScaling MemcachedOpsRequestType = "VerticalScaling"
	// MemcachedOpsRequestTypeVolumeExpansion is a MemcachedOpsRequestType of type VolumeExpansion.
	MemcachedOpsRequestTypeVolumeExpansion MemcachedOpsRequestType = "VolumeExpansion"
	// MemcachedOpsRequestTypeRestart is a MemcachedOpsRequestType of type Restart.
	MemcachedOpsRequestTypeRestart MemcachedOpsRequestType = "Restart"
	// MemcachedOpsRequestTypeReconfigure is a MemcachedOpsRequestType of type Reconfigure.
	MemcachedOpsRequestTypeReconfigure MemcachedOpsRequestType = "Reconfigure"
	// MemcachedOpsRequestTypeReconfigureTLS is a MemcachedOpsRequestType of type ReconfigureTLS.
	MemcachedOpsRequestTypeReconfigureTLS MemcachedOpsRequestType = "ReconfigureTLS"
	// MemcachedOpsRequestTypeRotateAuth is a MemcachedOpsRequestType of type RotateAuth.
	MemcachedOpsRequestTypeRotateAuth MemcachedOpsRequestType = "RotateAuth"
)

func MemcachedOpsRequestTypeValues added in v0.33.0

func MemcachedOpsRequestTypeValues() []MemcachedOpsRequestType

MemcachedOpsRequestTypeValues returns a list of the values for MemcachedOpsRequestType

func MustParseMemcachedOpsRequestType added in v0.33.0

func MustParseMemcachedOpsRequestType(name string) MemcachedOpsRequestType

MustParseMemcachedOpsRequestType converts a string to a MemcachedOpsRequestType, and panics if is not valid.

func ParseMemcachedOpsRequestType added in v0.33.0

func ParseMemcachedOpsRequestType(name string) (MemcachedOpsRequestType, error)

ParseMemcachedOpsRequestType attempts to convert a string to a MemcachedOpsRequestType.

func (MemcachedOpsRequestType) IsValid added in v0.33.0

func (x MemcachedOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (MemcachedOpsRequestType) String added in v0.33.0

func (x MemcachedOpsRequestType) String() string

String implements the Stringer interface.

type MemcachedReplicaReadinessCriteria

type MemcachedReplicaReadinessCriteria struct{}

MemcachedReplicaReadinessCriteria is the criteria for checking readiness of a Memcached pod after updating, horizontal scaling etc.

func (*MemcachedReplicaReadinessCriteria) DeepCopy

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

func (*MemcachedReplicaReadinessCriteria) DeepCopyInto

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

type MemcachedUpdateVersionSpec added in v0.33.0

type MemcachedUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion     string                             `json:"targetVersion,omitempty"`
	ReadinessCriteria *MemcachedReplicaReadinessCriteria `json:"readinessCriteria,omitempty"`
}

func (*MemcachedUpdateVersionSpec) DeepCopy added in v0.33.0

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

func (*MemcachedUpdateVersionSpec) DeepCopyInto added in v0.33.0

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

type MemcachedVerticalScalingSpec

type MemcachedVerticalScalingSpec struct {
	Memcached         *PodResources                      `json:"memcached,omitempty"`
	Exporter          *ContainerResources                `json:"exporter,omitempty"`
	ReadinessCriteria *MemcachedReplicaReadinessCriteria `json:"readinessCriteria,omitempty"`
}

MemcachedVerticalScalingSpec is the spec for Memcached vertical scaling

func (*MemcachedVerticalScalingSpec) DeepCopy

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

func (*MemcachedVerticalScalingSpec) DeepCopyInto

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

type MemcachedVolumeExpansionSpec

type MemcachedVolumeExpansionSpec struct{}

MemcachedVolumeExpansionSpec is the spec for Memcached volume expansion

func (*MemcachedVolumeExpansionSpec) DeepCopy

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

func (*MemcachedVolumeExpansionSpec) DeepCopyInto

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

type MongoDBCustomConfiguration

type MongoDBCustomConfiguration struct {
	ConfigSecret       *core.LocalObjectReference `json:"configSecret,omitempty"`
	ApplyConfig        map[string]string          `json:"applyConfig,omitempty"`
	RemoveCustomConfig bool                       `json:"removeCustomConfig,omitempty"`
}

func (*MongoDBCustomConfiguration) DeepCopy

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

func (*MongoDBCustomConfiguration) DeepCopyInto

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

type MongoDBCustomConfigurationSpec

type MongoDBCustomConfigurationSpec struct {
	Standalone   *MongoDBCustomConfiguration `json:"standalone,omitempty"`
	ReplicaSet   *MongoDBCustomConfiguration `json:"replicaSet,omitempty"`
	Mongos       *MongoDBCustomConfiguration `json:"mongos,omitempty"`
	ConfigServer *MongoDBCustomConfiguration `json:"configServer,omitempty"`
	Shard        *MongoDBCustomConfiguration `json:"shard,omitempty"`
	Arbiter      *MongoDBCustomConfiguration `json:"arbiter,omitempty"`
	Hidden       *MongoDBCustomConfiguration `json:"hidden,omitempty"`
}

func (*MongoDBCustomConfigurationSpec) DeepCopy

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

func (*MongoDBCustomConfigurationSpec) DeepCopyInto

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

type MongoDBHorizontalScalingSpec

type MongoDBHorizontalScalingSpec struct {
	Shard        *MongoDBShardNode `json:"shard,omitempty"`
	ConfigServer *ConfigNode       `json:"configServer,omitempty"`
	Mongos       *MongosNode       `json:"mongos,omitempty"`
	Hidden       *HiddenNode       `json:"hidden,omitempty"`
	Replicas     *int32            `json:"replicas,omitempty"`
}

HorizontalScaling is the spec for mongodb horizontal scaling

func (*MongoDBHorizontalScalingSpec) DeepCopy

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

func (*MongoDBHorizontalScalingSpec) DeepCopyInto

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

type MongoDBOpsRequest

type MongoDBOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MongoDBOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus      `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=mongodbopsrequests,singular=mongodbopsrequest,shortName=mgops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (MongoDBOpsRequest) CustomResourceDefinition

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

func (*MongoDBOpsRequest) DeepCopy

func (in *MongoDBOpsRequest) DeepCopy() *MongoDBOpsRequest

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

func (*MongoDBOpsRequest) DeepCopyInto

func (in *MongoDBOpsRequest) DeepCopyInto(out *MongoDBOpsRequest)

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

func (*MongoDBOpsRequest) DeepCopyObject

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

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

func (*MongoDBOpsRequest) GetDBRefName added in v0.28.1

func (m *MongoDBOpsRequest) GetDBRefName() string

func (*MongoDBOpsRequest) GetObjectMeta added in v0.28.1

func (m *MongoDBOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*MongoDBOpsRequest) GetRequestType added in v0.28.1

func (m *MongoDBOpsRequest) GetRequestType() any

func (*MongoDBOpsRequest) GetStatus added in v0.28.1

func (m *MongoDBOpsRequest) GetStatus() OpsRequestStatus

func (MongoDBOpsRequest) ResourceFQN added in v0.16.0

func (m MongoDBOpsRequest) ResourceFQN() string

func (MongoDBOpsRequest) ResourceKind

func (m MongoDBOpsRequest) ResourceKind() string

func (MongoDBOpsRequest) ResourcePlural

func (m MongoDBOpsRequest) ResourcePlural() string

func (MongoDBOpsRequest) ResourceShortCode

func (m MongoDBOpsRequest) ResourceShortCode() string

func (MongoDBOpsRequest) ResourceSingular

func (m MongoDBOpsRequest) ResourceSingular() string

func (*MongoDBOpsRequest) SetStatus added in v0.28.1

func (m *MongoDBOpsRequest) SetStatus(s OpsRequestStatus)

func (MongoDBOpsRequest) ValidateSpecs

func (m MongoDBOpsRequest) ValidateSpecs() error

type MongoDBOpsRequestList

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

MongoDBOpsRequestList is a list of MongoDBOpsRequests

func (*MongoDBOpsRequestList) DeepCopy

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

func (*MongoDBOpsRequestList) DeepCopyInto

func (in *MongoDBOpsRequestList) DeepCopyInto(out *MongoDBOpsRequestList)

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

func (*MongoDBOpsRequestList) DeepCopyObject

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

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

type MongoDBOpsRequestSpec

type MongoDBOpsRequestSpec struct {
	// Specifies the MongoDB reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc.
	Type MongoDBOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading MongoDB
	UpdateVersion *MongoDBUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *MongoDBHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *MongoDBVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *MongoDBVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for custom configuration of MongoDB
	Configuration *MongoDBCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *TLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Specifies information necessary for reprovisioning database
	Reprovision *Reprovision `json:"reprovision,omitempty"`
	// Specifies information necessary for setting up Archiver for database
	Archiver *ArchiverOptions `json:"archiver,omitempty"`

	// Specifies the Readiness Criteria
	ReadinessCriteria *MongoDBReplicaReadinessCriteria `json:"readinessCriteria,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

MongoDBOpsRequestSpec is the spec for MongoDBOpsRequest

func (*MongoDBOpsRequestSpec) DeepCopy

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

func (*MongoDBOpsRequestSpec) DeepCopyInto

func (in *MongoDBOpsRequestSpec) DeepCopyInto(out *MongoDBOpsRequestSpec)

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

type MongoDBOpsRequestType added in v0.29.0

type MongoDBOpsRequestType string

+kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;Reprovision;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, Reprovision, RotateAuth)

const (
	// MongoDBOpsRequestTypeUpdateVersion is a MongoDBOpsRequestType of type UpdateVersion.
	MongoDBOpsRequestTypeUpdateVersion MongoDBOpsRequestType = "UpdateVersion"
	// MongoDBOpsRequestTypeHorizontalScaling is a MongoDBOpsRequestType of type HorizontalScaling.
	MongoDBOpsRequestTypeHorizontalScaling MongoDBOpsRequestType = "HorizontalScaling"
	// MongoDBOpsRequestTypeVerticalScaling is a MongoDBOpsRequestType of type VerticalScaling.
	MongoDBOpsRequestTypeVerticalScaling MongoDBOpsRequestType = "VerticalScaling"
	// MongoDBOpsRequestTypeVolumeExpansion is a MongoDBOpsRequestType of type VolumeExpansion.
	MongoDBOpsRequestTypeVolumeExpansion MongoDBOpsRequestType = "VolumeExpansion"
	// MongoDBOpsRequestTypeRestart is a MongoDBOpsRequestType of type Restart.
	MongoDBOpsRequestTypeRestart MongoDBOpsRequestType = "Restart"
	// MongoDBOpsRequestTypeReconfigure is a MongoDBOpsRequestType of type Reconfigure.
	MongoDBOpsRequestTypeReconfigure MongoDBOpsRequestType = "Reconfigure"
	// MongoDBOpsRequestTypeReconfigureTLS is a MongoDBOpsRequestType of type ReconfigureTLS.
	MongoDBOpsRequestTypeReconfigureTLS MongoDBOpsRequestType = "ReconfigureTLS"
	// MongoDBOpsRequestTypeReprovision is a MongoDBOpsRequestType of type Reprovision.
	MongoDBOpsRequestTypeReprovision MongoDBOpsRequestType = "Reprovision"
	// MongoDBOpsRequestTypeRotateAuth is a MongoDBOpsRequestType of type RotateAuth.
	MongoDBOpsRequestTypeRotateAuth MongoDBOpsRequestType = "RotateAuth"
)

func MongoDBOpsRequestTypeValues added in v0.33.0

func MongoDBOpsRequestTypeValues() []MongoDBOpsRequestType

MongoDBOpsRequestTypeValues returns a list of the values for MongoDBOpsRequestType

func MustParseMongoDBOpsRequestType added in v0.33.0

func MustParseMongoDBOpsRequestType(name string) MongoDBOpsRequestType

MustParseMongoDBOpsRequestType converts a string to a MongoDBOpsRequestType, and panics if is not valid.

func ParseMongoDBOpsRequestType added in v0.33.0

func ParseMongoDBOpsRequestType(name string) (MongoDBOpsRequestType, error)

ParseMongoDBOpsRequestType attempts to convert a string to a MongoDBOpsRequestType.

func (MongoDBOpsRequestType) IsValid added in v0.33.0

func (x MongoDBOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (MongoDBOpsRequestType) String added in v0.33.0

func (x MongoDBOpsRequestType) String() string

String implements the Stringer interface.

type MongoDBReplicaReadinessCriteria

type MongoDBReplicaReadinessCriteria struct {
	// +kubebuilder:validation:Minimum:=0
	OplogMaxLagSeconds int32 `json:"oplogMaxLagSeconds,omitempty"`
	// +kubebuilder:validation:Minimum:=0
	// +kubebuilder:validation:Maximum:=100
	ObjectsCountDiffPercentage int32 `json:"objectsCountDiffPercentage,omitempty"`
}

MongoDBReplicaReadinessCriteria is the criteria for checking readiness of a MongoDB pod after restarting the pod

func (*MongoDBReplicaReadinessCriteria) DeepCopy

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

func (*MongoDBReplicaReadinessCriteria) DeepCopyInto

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

type MongoDBShardNode

type MongoDBShardNode struct {
	Shards   int32 `json:"shards,omitempty"`
	Replicas int32 `json:"replicas,omitempty"`
}

MongoDBShardNode is the spec for mongodb Shard

func (*MongoDBShardNode) DeepCopy

func (in *MongoDBShardNode) DeepCopy() *MongoDBShardNode

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

func (*MongoDBShardNode) DeepCopyInto

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

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

type MongoDBUpdateVersionSpec added in v0.33.0

type MongoDBUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion string `json:"targetVersion,omitempty"`
}

func (*MongoDBUpdateVersionSpec) DeepCopy added in v0.33.0

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

func (*MongoDBUpdateVersionSpec) DeepCopyInto added in v0.33.0

func (in *MongoDBUpdateVersionSpec) DeepCopyInto(out *MongoDBUpdateVersionSpec)

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

type MongoDBVerticalScalingSpec

type MongoDBVerticalScalingSpec struct {
	Standalone   *PodResources       `json:"standalone,omitempty"`
	ReplicaSet   *PodResources       `json:"replicaSet,omitempty"`
	Mongos       *PodResources       `json:"mongos,omitempty"`
	ConfigServer *PodResources       `json:"configServer,omitempty"`
	Shard        *PodResources       `json:"shard,omitempty"`
	Arbiter      *PodResources       `json:"arbiter,omitempty"`
	Hidden       *PodResources       `json:"hidden,omitempty"`
	Exporter     *ContainerResources `json:"exporter,omitempty"`
	Coordinator  *ContainerResources `json:"coordinator,omitempty"`
}

MongoDBVerticalScalingSpec is the spec for mongodb vertical scaling

func (*MongoDBVerticalScalingSpec) DeepCopy

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

func (*MongoDBVerticalScalingSpec) DeepCopyInto

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

type MongoDBVolumeExpansionSpec

type MongoDBVolumeExpansionSpec struct {
	Mode         VolumeExpansionMode `json:"mode"`
	Standalone   *resource.Quantity  `json:"standalone,omitempty"`
	ReplicaSet   *resource.Quantity  `json:"replicaSet,omitempty"`
	ConfigServer *resource.Quantity  `json:"configServer,omitempty"`
	Shard        *resource.Quantity  `json:"shard,omitempty"`
	Hidden       *resource.Quantity  `json:"hidden,omitempty"`
}

MongoDBVolumeExpansionSpec is the spec for mongodb volume expansion

func (*MongoDBVolumeExpansionSpec) DeepCopy

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

func (*MongoDBVolumeExpansionSpec) DeepCopyInto

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

type MongosNode

type MongosNode struct {
	Replicas int32 `json:"replicas,omitempty"`
}

MongosNode is the spec for mongodb Mongos

func (*MongosNode) DeepCopy

func (in *MongosNode) DeepCopy() *MongosNode

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

func (*MongosNode) DeepCopyInto

func (in *MongosNode) DeepCopyInto(out *MongosNode)

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

type MySQLCustomConfigurationSpec

type MySQLCustomConfigurationSpec struct {
	ConfigSecret       *core.LocalObjectReference `json:"configSecret,omitempty"`
	ApplyConfig        map[string]string          `json:"applyConfig,omitempty"`
	RemoveCustomConfig bool                       `json:"removeCustomConfig,omitempty"`
}

func (*MySQLCustomConfigurationSpec) DeepCopy

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

func (*MySQLCustomConfigurationSpec) DeepCopyInto

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

type MySQLHorizontalScalingSpec

type MySQLHorizontalScalingSpec struct {
	// Number of nodes/members of the group
	Member *int32 `json:"member,omitempty"`
}

func (*MySQLHorizontalScalingSpec) DeepCopy

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

func (*MySQLHorizontalScalingSpec) DeepCopyInto

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

type MySQLOpsRequest

type MySQLOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MySQLOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus    `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=mysqlopsrequests,singular=mysqlopsrequest,shortName=myops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (MySQLOpsRequest) CustomResourceDefinition

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

func (*MySQLOpsRequest) DeepCopy

func (in *MySQLOpsRequest) DeepCopy() *MySQLOpsRequest

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

func (*MySQLOpsRequest) DeepCopyInto

func (in *MySQLOpsRequest) DeepCopyInto(out *MySQLOpsRequest)

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

func (*MySQLOpsRequest) DeepCopyObject

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

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

func (*MySQLOpsRequest) GetDBRefName added in v0.28.1

func (m *MySQLOpsRequest) GetDBRefName() string

func (MySQLOpsRequest) GetKey

func (m MySQLOpsRequest) GetKey() string

func (*MySQLOpsRequest) GetObjectMeta added in v0.28.1

func (m *MySQLOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*MySQLOpsRequest) GetRequestType added in v0.28.1

func (m *MySQLOpsRequest) GetRequestType() any

func (*MySQLOpsRequest) GetStatus added in v0.28.1

func (m *MySQLOpsRequest) GetStatus() OpsRequestStatus

func (MySQLOpsRequest) OffshootLabels

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

func (MySQLOpsRequest) OffshootName

func (m MySQLOpsRequest) OffshootName() string

func (MySQLOpsRequest) OffshootSelectors

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

func (MySQLOpsRequest) ResourceFQN added in v0.16.0

func (m MySQLOpsRequest) ResourceFQN() string

func (MySQLOpsRequest) ResourceKind

func (m MySQLOpsRequest) ResourceKind() string

func (MySQLOpsRequest) ResourcePlural

func (m MySQLOpsRequest) ResourcePlural() string

func (MySQLOpsRequest) ResourceShortCode

func (m MySQLOpsRequest) ResourceShortCode() string

func (MySQLOpsRequest) ResourceSingular

func (m MySQLOpsRequest) ResourceSingular() string

func (*MySQLOpsRequest) SetStatus added in v0.28.1

func (m *MySQLOpsRequest) SetStatus(s OpsRequestStatus)

func (MySQLOpsRequest) ValidateSpecs

func (m MySQLOpsRequest) ValidateSpecs() error

type MySQLOpsRequestList

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

MySQLOpsRequestList is a list of MySQLOpsRequests

func (*MySQLOpsRequestList) DeepCopy

func (in *MySQLOpsRequestList) DeepCopy() *MySQLOpsRequestList

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

func (*MySQLOpsRequestList) DeepCopyInto

func (in *MySQLOpsRequestList) DeepCopyInto(out *MySQLOpsRequestList)

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

func (*MySQLOpsRequestList) DeepCopyObject

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

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

type MySQLOpsRequestSpec

type MySQLOpsRequestSpec struct {
	// Specifies the MySQL reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc.
	Type MySQLOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading MySQL
	UpdateVersion *MySQLUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *MySQLHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *MySQLVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *MySQLVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for custom configuration of MySQL
	Configuration *MySQLCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *MySQLTLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

MySQLOpsRequestSpec is the spec for MySQLOpsRequest

func (*MySQLOpsRequestSpec) DeepCopy

func (in *MySQLOpsRequestSpec) DeepCopy() *MySQLOpsRequestSpec

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

func (*MySQLOpsRequestSpec) DeepCopyInto

func (in *MySQLOpsRequestSpec) DeepCopyInto(out *MySQLOpsRequestSpec)

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

type MySQLOpsRequestType added in v0.29.0

type MySQLOpsRequestType string

+kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth)

const (
	// MySQLOpsRequestTypeUpdateVersion is a MySQLOpsRequestType of type UpdateVersion.
	MySQLOpsRequestTypeUpdateVersion MySQLOpsRequestType = "UpdateVersion"
	// MySQLOpsRequestTypeHorizontalScaling is a MySQLOpsRequestType of type HorizontalScaling.
	MySQLOpsRequestTypeHorizontalScaling MySQLOpsRequestType = "HorizontalScaling"
	// MySQLOpsRequestTypeVerticalScaling is a MySQLOpsRequestType of type VerticalScaling.
	MySQLOpsRequestTypeVerticalScaling MySQLOpsRequestType = "VerticalScaling"
	// MySQLOpsRequestTypeVolumeExpansion is a MySQLOpsRequestType of type VolumeExpansion.
	MySQLOpsRequestTypeVolumeExpansion MySQLOpsRequestType = "VolumeExpansion"
	// MySQLOpsRequestTypeRestart is a MySQLOpsRequestType of type Restart.
	MySQLOpsRequestTypeRestart MySQLOpsRequestType = "Restart"
	// MySQLOpsRequestTypeReconfigure is a MySQLOpsRequestType of type Reconfigure.
	MySQLOpsRequestTypeReconfigure MySQLOpsRequestType = "Reconfigure"
	// MySQLOpsRequestTypeReconfigureTLS is a MySQLOpsRequestType of type ReconfigureTLS.
	MySQLOpsRequestTypeReconfigureTLS MySQLOpsRequestType = "ReconfigureTLS"
	// MySQLOpsRequestTypeRotateAuth is a MySQLOpsRequestType of type RotateAuth.
	MySQLOpsRequestTypeRotateAuth MySQLOpsRequestType = "RotateAuth"
)

func MustParseMySQLOpsRequestType added in v0.33.0

func MustParseMySQLOpsRequestType(name string) MySQLOpsRequestType

MustParseMySQLOpsRequestType converts a string to a MySQLOpsRequestType, and panics if is not valid.

func MySQLOpsRequestTypeValues added in v0.33.0

func MySQLOpsRequestTypeValues() []MySQLOpsRequestType

MySQLOpsRequestTypeValues returns a list of the values for MySQLOpsRequestType

func ParseMySQLOpsRequestType added in v0.33.0

func ParseMySQLOpsRequestType(name string) (MySQLOpsRequestType, error)

ParseMySQLOpsRequestType attempts to convert a string to a MySQLOpsRequestType.

func (MySQLOpsRequestType) IsValid added in v0.33.0

func (x MySQLOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (MySQLOpsRequestType) String added in v0.33.0

func (x MySQLOpsRequestType) String() string

String implements the Stringer interface.

type MySQLQueryRules added in v0.28.0

type MySQLQueryRules struct {
	// +kubebuilder:pruning:PreserveUnknownFields
	Rules       []*runtime.RawExtension `json:"rules"`
	RequestType OperationType           `json:"reqType"`
}

func (*MySQLQueryRules) DeepCopy added in v0.28.0

func (in *MySQLQueryRules) DeepCopy() *MySQLQueryRules

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

func (*MySQLQueryRules) DeepCopyInto added in v0.28.0

func (in *MySQLQueryRules) DeepCopyInto(out *MySQLQueryRules)

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

type MySQLReplicaReadinessCriteria

type MySQLReplicaReadinessCriteria struct{}

MySQLReplicaReadinessCriteria is the criteria for checking readiness of a MySQL pod after updating, horizontal scaling etc.

func (*MySQLReplicaReadinessCriteria) DeepCopy

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

func (*MySQLReplicaReadinessCriteria) DeepCopyInto

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

type MySQLTLSSpec added in v0.15.2

type MySQLTLSSpec struct {
	TLSSpec `json:",inline,omitempty"`

	// Indicates that the database server need to be encrypted connections(ssl)
	// +optional
	RequireSSL *bool `json:"requireSSL,omitempty"`
}

func (*MySQLTLSSpec) DeepCopy added in v0.15.2

func (in *MySQLTLSSpec) DeepCopy() *MySQLTLSSpec

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

func (*MySQLTLSSpec) DeepCopyInto added in v0.15.2

func (in *MySQLTLSSpec) DeepCopyInto(out *MySQLTLSSpec)

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

type MySQLUpdateVersionSpec added in v0.33.0

type MySQLUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion     string                         `json:"targetVersion,omitempty"`
	ReadinessCriteria *MySQLReplicaReadinessCriteria `json:"readinessCriteria,omitempty"`
}

func (*MySQLUpdateVersionSpec) DeepCopy added in v0.33.0

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

func (*MySQLUpdateVersionSpec) DeepCopyInto added in v0.33.0

func (in *MySQLUpdateVersionSpec) DeepCopyInto(out *MySQLUpdateVersionSpec)

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

type MySQLUsers added in v0.28.0

type MySQLUsers struct {
	Users       []v1alpha2.MySQLUser `json:"users"`
	RequestType OperationType        `json:"reqType"`
}

func (*MySQLUsers) DeepCopy added in v0.28.0

func (in *MySQLUsers) DeepCopy() *MySQLUsers

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

func (*MySQLUsers) DeepCopyInto added in v0.28.0

func (in *MySQLUsers) DeepCopyInto(out *MySQLUsers)

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

type MySQLVerticalScalingSpec

type MySQLVerticalScalingSpec struct {
	MySQL       *PodResources       `json:"mysql,omitempty"`
	Exporter    *ContainerResources `json:"exporter,omitempty"`
	Coordinator *ContainerResources `json:"coordinator,omitempty"`
}

func (*MySQLVerticalScalingSpec) DeepCopy

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

func (*MySQLVerticalScalingSpec) DeepCopyInto

func (in *MySQLVerticalScalingSpec) DeepCopyInto(out *MySQLVerticalScalingSpec)

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

type MySQLVolumeExpansionSpec

type MySQLVolumeExpansionSpec struct {
	MySQL *resource.Quantity  `json:"mysql,omitempty"`
	Mode  VolumeExpansionMode `json:"mode"`
}

MySQLVolumeExpansionSpec is the spec for MySQL volume expansion

func (*MySQLVolumeExpansionSpec) DeepCopy

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

func (*MySQLVolumeExpansionSpec) DeepCopyInto

func (in *MySQLVolumeExpansionSpec) DeepCopyInto(out *MySQLVolumeExpansionSpec)

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

type OperationType added in v0.28.0

type OperationType string
const (
	ProxySQLConfigurationAdd    OperationType = "add"
	ProxySQLConfigurationDelete OperationType = "delete"
	ProxySQLConfigurationUpdate OperationType = "update"
)

type OpsRequestPhase

type OpsRequestPhase string

+kubebuilder:validation:Enum=Pending;Progressing;Successful;WaitingForApproval;Failed;Approved;Denied;Skipped

const (
	// used for ops requests that are currently in queue
	OpsRequestPhasePending OpsRequestPhase = "Pending"
	// used for ops requests that are currently Progressing
	OpsRequestPhaseProgressing OpsRequestPhase = "Progressing"
	// used for ops requests that are executed successfully
	OpsRequestPhaseSuccessful OpsRequestPhase = "Successful"
	// used for ops requests that are failed
	OpsRequestPhaseFailed OpsRequestPhase = "Failed"
	// used for ops requests that are skipped
	OpsRequestPhaseSkipped OpsRequestPhase = "Skipped"

	// used for ops requests that are waiting for approval
	OpsRequestPhaseWaitingForApproval OpsRequestPhase = "WaitingForApproval"
	// used for ops requests that are approved
	OpsRequestApproved OpsRequestPhase = "Approved"
	// used for ops requests that are denied
	OpsRequestDenied OpsRequestPhase = "Denied"
)

type OpsRequestStatus added in v0.28.1

type OpsRequestStatus struct {
	// Specifies the current phase of the ops request
	// +optional
	Phase OpsRequestPhase `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 request, such as approval or denial.
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
	// PausedBackups represents the list of backups that have been paused.
	// +optional
	PausedBackups []kmapi.TypedObjectReference `json:"pausedBackups,omitempty"`
}

func (*OpsRequestStatus) DeepCopy added in v0.28.1

func (in *OpsRequestStatus) DeepCopy() *OpsRequestStatus

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

func (*OpsRequestStatus) DeepCopyInto added in v0.28.1

func (in *OpsRequestStatus) DeepCopyInto(out *OpsRequestStatus)

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

type PerconaXtraDBCustomConfigurationSpec

type PerconaXtraDBCustomConfigurationSpec struct {
	// ConfigSecret is an optional field to provide custom configuration file for database.
	// +optional
	ConfigSecret *core.LocalObjectReference `json:"configSecret,omitempty"`
	// If set to "true", the user provided configuration will be removed.
	// PerconaXtraDB will start will default configuration that is generated by the operator.
	// +optional
	RemoveCustomConfig bool `json:"removeCustomConfig,omitempty"`
	// ApplyConfig is an optional field to provide PerconaXtraDB configuration.
	// Provided configuration will be applied to config files stored in ConfigSecret.
	// If the ConfigSecret is missing, the operator will create a new k8s secret by the
	// following naming convention: {db-name}-user-config .
	// Expected input format:
	//	applyConfig:
	//		file-name.cnf: |
	//			[mysqld]
	//			key1: value1
	//			key2: value2
	// +optional
	ApplyConfig map[string]string `json:"applyConfig,omitempty"`
}

func (*PerconaXtraDBCustomConfigurationSpec) DeepCopy

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

func (*PerconaXtraDBCustomConfigurationSpec) DeepCopyInto

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

type PerconaXtraDBHorizontalScalingSpec

type PerconaXtraDBHorizontalScalingSpec struct {
	// Number of nodes/members of the group
	Member *int32 `json:"member,omitempty"`
	// specifies the weight of the current member/PodResources
	MemberWeight int32 `json:"memberWeight,omitempty"`
}

func (*PerconaXtraDBHorizontalScalingSpec) DeepCopy

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

func (*PerconaXtraDBHorizontalScalingSpec) DeepCopyInto

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

type PerconaXtraDBOpsRequest

type PerconaXtraDBOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PerconaXtraDBOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus            `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=perconaxtradbopsrequests,singular=perconaxtradbopsrequest,shortName=pxcops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (PerconaXtraDBOpsRequest) CustomResourceDefinition

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

func (*PerconaXtraDBOpsRequest) DeepCopy

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

func (*PerconaXtraDBOpsRequest) DeepCopyInto

func (in *PerconaXtraDBOpsRequest) DeepCopyInto(out *PerconaXtraDBOpsRequest)

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

func (*PerconaXtraDBOpsRequest) DeepCopyObject

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

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

func (*PerconaXtraDBOpsRequest) GetDBRefName added in v0.28.1

func (p *PerconaXtraDBOpsRequest) GetDBRefName() string

func (*PerconaXtraDBOpsRequest) GetObjectMeta added in v0.28.1

func (p *PerconaXtraDBOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*PerconaXtraDBOpsRequest) GetRequestType added in v0.28.1

func (p *PerconaXtraDBOpsRequest) GetRequestType() any

func (*PerconaXtraDBOpsRequest) GetStatus added in v0.28.1

func (PerconaXtraDBOpsRequest) ResourceFQN added in v0.16.0

func (p PerconaXtraDBOpsRequest) ResourceFQN() string

func (PerconaXtraDBOpsRequest) ResourceKind

func (p PerconaXtraDBOpsRequest) ResourceKind() string

func (PerconaXtraDBOpsRequest) ResourcePlural

func (p PerconaXtraDBOpsRequest) ResourcePlural() string

func (PerconaXtraDBOpsRequest) ResourceShortCode

func (p PerconaXtraDBOpsRequest) ResourceShortCode() string

func (PerconaXtraDBOpsRequest) ResourceSingular

func (p PerconaXtraDBOpsRequest) ResourceSingular() string

func (*PerconaXtraDBOpsRequest) SetStatus added in v0.28.1

func (p *PerconaXtraDBOpsRequest) SetStatus(s OpsRequestStatus)

func (PerconaXtraDBOpsRequest) ValidateSpecs

func (p PerconaXtraDBOpsRequest) ValidateSpecs() error

type PerconaXtraDBOpsRequestList

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

PerconaXtraDBOpsRequestList is a list of PerconaXtraDBOpsRequests

func (*PerconaXtraDBOpsRequestList) DeepCopy

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

func (*PerconaXtraDBOpsRequestList) DeepCopyInto

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

func (*PerconaXtraDBOpsRequestList) DeepCopyObject

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

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

type PerconaXtraDBOpsRequestSpec

type PerconaXtraDBOpsRequestSpec struct {
	// Specifies the PerconaXtraDB reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc.
	Type PerconaXtraDBOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading PerconaXtraDB
	UpdateVersion *PerconaXtraDBUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *PerconaXtraDBHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *PerconaXtraDBVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *PerconaXtraDBVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for custom configuration of PerconaXtraDB
	Configuration *PerconaXtraDBCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *PerconaXtraDBTLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

PerconaXtraDBOpsRequestSpec is the spec for PerconaXtraDBOpsRequest

func (*PerconaXtraDBOpsRequestSpec) DeepCopy

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

func (*PerconaXtraDBOpsRequestSpec) DeepCopyInto

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

type PerconaXtraDBOpsRequestType added in v0.29.0

type PerconaXtraDBOpsRequestType string

+kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth)

const (
	// PerconaXtraDBOpsRequestTypeUpdateVersion is a PerconaXtraDBOpsRequestType of type UpdateVersion.
	PerconaXtraDBOpsRequestTypeUpdateVersion PerconaXtraDBOpsRequestType = "UpdateVersion"
	// PerconaXtraDBOpsRequestTypeHorizontalScaling is a PerconaXtraDBOpsRequestType of type HorizontalScaling.
	PerconaXtraDBOpsRequestTypeHorizontalScaling PerconaXtraDBOpsRequestType = "HorizontalScaling"
	// PerconaXtraDBOpsRequestTypeVerticalScaling is a PerconaXtraDBOpsRequestType of type VerticalScaling.
	PerconaXtraDBOpsRequestTypeVerticalScaling PerconaXtraDBOpsRequestType = "VerticalScaling"
	// PerconaXtraDBOpsRequestTypeVolumeExpansion is a PerconaXtraDBOpsRequestType of type VolumeExpansion.
	PerconaXtraDBOpsRequestTypeVolumeExpansion PerconaXtraDBOpsRequestType = "VolumeExpansion"
	// PerconaXtraDBOpsRequestTypeRestart is a PerconaXtraDBOpsRequestType of type Restart.
	PerconaXtraDBOpsRequestTypeRestart PerconaXtraDBOpsRequestType = "Restart"
	// PerconaXtraDBOpsRequestTypeReconfigure is a PerconaXtraDBOpsRequestType of type Reconfigure.
	PerconaXtraDBOpsRequestTypeReconfigure PerconaXtraDBOpsRequestType = "Reconfigure"
	// PerconaXtraDBOpsRequestTypeReconfigureTLS is a PerconaXtraDBOpsRequestType of type ReconfigureTLS.
	PerconaXtraDBOpsRequestTypeReconfigureTLS PerconaXtraDBOpsRequestType = "ReconfigureTLS"
	// PerconaXtraDBOpsRequestTypeRotateAuth is a PerconaXtraDBOpsRequestType of type RotateAuth.
	PerconaXtraDBOpsRequestTypeRotateAuth PerconaXtraDBOpsRequestType = "RotateAuth"
)

func MustParsePerconaXtraDBOpsRequestType added in v0.33.0

func MustParsePerconaXtraDBOpsRequestType(name string) PerconaXtraDBOpsRequestType

MustParsePerconaXtraDBOpsRequestType converts a string to a PerconaXtraDBOpsRequestType, and panics if is not valid.

func ParsePerconaXtraDBOpsRequestType added in v0.33.0

func ParsePerconaXtraDBOpsRequestType(name string) (PerconaXtraDBOpsRequestType, error)

ParsePerconaXtraDBOpsRequestType attempts to convert a string to a PerconaXtraDBOpsRequestType.

func PerconaXtraDBOpsRequestTypeValues added in v0.33.0

func PerconaXtraDBOpsRequestTypeValues() []PerconaXtraDBOpsRequestType

PerconaXtraDBOpsRequestTypeValues returns a list of the values for PerconaXtraDBOpsRequestType

func (PerconaXtraDBOpsRequestType) IsValid added in v0.33.0

func (x PerconaXtraDBOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (PerconaXtraDBOpsRequestType) String added in v0.33.0

String implements the Stringer interface.

type PerconaXtraDBReplicaReadinessCriteria

type PerconaXtraDBReplicaReadinessCriteria struct{}

PerconaXtraDBReplicaReadinessCriteria is the criteria for checking readiness of an PerconaXtraDB database

func (*PerconaXtraDBReplicaReadinessCriteria) DeepCopy

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

func (*PerconaXtraDBReplicaReadinessCriteria) DeepCopyInto

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

type PerconaXtraDBTLSSpec added in v0.29.0

type PerconaXtraDBTLSSpec struct {
	TLSSpec `json:",inline,omitempty"`

	// Indicates that the database server need to be encrypted connections(ssl)
	// +optional
	RequireSSL *bool `json:"requireSSL,omitempty"`
}

PerconaXtraDBTLSSpec specifies information necessary for configuring TLS

func (*PerconaXtraDBTLSSpec) DeepCopy added in v0.29.0

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

func (*PerconaXtraDBTLSSpec) DeepCopyInto added in v0.29.0

func (in *PerconaXtraDBTLSSpec) DeepCopyInto(out *PerconaXtraDBTLSSpec)

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

type PerconaXtraDBUpdateVersionSpec added in v0.33.0

type PerconaXtraDBUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion string `json:"targetVersion,omitempty"`
}

func (*PerconaXtraDBUpdateVersionSpec) DeepCopy added in v0.33.0

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

func (*PerconaXtraDBUpdateVersionSpec) DeepCopyInto added in v0.33.0

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

type PerconaXtraDBVerticalScalingSpec

type PerconaXtraDBVerticalScalingSpec struct {
	PerconaXtraDB *PodResources       `json:"perconaxtradb,omitempty"`
	Exporter      *ContainerResources `json:"exporter,omitempty"`
	Coordinator   *ContainerResources `json:"coordinator,omitempty"`
}

func (*PerconaXtraDBVerticalScalingSpec) DeepCopy

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

func (*PerconaXtraDBVerticalScalingSpec) DeepCopyInto

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

type PerconaXtraDBVolumeExpansionSpec

type PerconaXtraDBVolumeExpansionSpec struct {
	PerconaXtraDB *resource.Quantity  `json:"perconaxtradb,omitempty"`
	Mode          VolumeExpansionMode `json:"mode"`
}

PerconaXtraDBVolumeExpansionSpec is the spec for PerconaXtraDB volume expansion

func (*PerconaXtraDBVolumeExpansionSpec) DeepCopy

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

func (*PerconaXtraDBVolumeExpansionSpec) DeepCopyInto

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

type PgBouncerCustomConfiguration

type PgBouncerCustomConfiguration struct {
	ConfigSecret       *core.LocalObjectReference `json:"configSecret,omitempty"`
	ApplyConfig        map[string]string          `json:"applyConfig,omitempty"`
	RemoveCustomConfig bool                       `json:"removeCustomConfig,omitempty"`
}

func (*PgBouncerCustomConfiguration) DeepCopy

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

func (*PgBouncerCustomConfiguration) DeepCopyInto

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

type PgBouncerCustomConfigurationSpec

type PgBouncerCustomConfigurationSpec struct {
	PgBouncer *PgBouncerCustomConfiguration `json:"pgbouncer"`
}

func (*PgBouncerCustomConfigurationSpec) DeepCopy

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

func (*PgBouncerCustomConfigurationSpec) DeepCopyInto

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

type PgBouncerHorizontalScalingSpec

type PgBouncerHorizontalScalingSpec struct {
	Replicas *int32 `json:"replicas,omitempty"`
}

HorizontalScaling is the spec for PgBouncer horizontal scaling

func (*PgBouncerHorizontalScalingSpec) DeepCopy

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

func (*PgBouncerHorizontalScalingSpec) DeepCopyInto

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

type PgBouncerOpsRequest

type PgBouncerOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PgBouncerOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus        `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=pgbounceropsrequests,singular=pgbounceropsrequest,shortName=pbops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (PgBouncerOpsRequest) CustomResourceDefinition

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

func (*PgBouncerOpsRequest) DeepCopy

func (in *PgBouncerOpsRequest) DeepCopy() *PgBouncerOpsRequest

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

func (*PgBouncerOpsRequest) DeepCopyInto

func (in *PgBouncerOpsRequest) DeepCopyInto(out *PgBouncerOpsRequest)

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

func (*PgBouncerOpsRequest) DeepCopyObject

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

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

func (*PgBouncerOpsRequest) GetDBRefName added in v0.28.1

func (p *PgBouncerOpsRequest) GetDBRefName() string

func (*PgBouncerOpsRequest) GetObjectMeta added in v0.28.1

func (p *PgBouncerOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*PgBouncerOpsRequest) GetRequestType added in v0.28.1

func (p *PgBouncerOpsRequest) GetRequestType() any

func (*PgBouncerOpsRequest) GetStatus added in v0.28.1

func (p *PgBouncerOpsRequest) GetStatus() OpsRequestStatus

func (PgBouncerOpsRequest) ResourceFQN added in v0.16.0

func (p PgBouncerOpsRequest) ResourceFQN() string

func (PgBouncerOpsRequest) ResourceKind

func (p PgBouncerOpsRequest) ResourceKind() string

func (PgBouncerOpsRequest) ResourcePlural

func (p PgBouncerOpsRequest) ResourcePlural() string

func (PgBouncerOpsRequest) ResourceShortCode

func (p PgBouncerOpsRequest) ResourceShortCode() string

func (PgBouncerOpsRequest) ResourceSingular

func (p PgBouncerOpsRequest) ResourceSingular() string

func (*PgBouncerOpsRequest) SetStatus added in v0.28.1

func (p *PgBouncerOpsRequest) SetStatus(s OpsRequestStatus)

func (PgBouncerOpsRequest) ValidateSpecs

func (p PgBouncerOpsRequest) ValidateSpecs() error

type PgBouncerOpsRequestList

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

PgBouncerOpsRequestList is a list of PgBouncerOpsRequests

func (*PgBouncerOpsRequestList) DeepCopy

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

func (*PgBouncerOpsRequestList) DeepCopyInto

func (in *PgBouncerOpsRequestList) DeepCopyInto(out *PgBouncerOpsRequestList)

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

func (*PgBouncerOpsRequestList) DeepCopyObject

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

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

type PgBouncerOpsRequestSpec

type PgBouncerOpsRequestSpec struct {
	// Specifies the PgBouncer reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc.
	Type PgBouncerOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading PgBouncer
	UpdateVersion *PgBouncerUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *PgBouncerHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *PgBouncerVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for custom configuration of PgBouncer
	Configuration *PgBouncerCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *TLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

PgBouncerOpsRequestSpec is the spec for PgBouncerOpsRequest

func (*PgBouncerOpsRequestSpec) DeepCopy

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

func (*PgBouncerOpsRequestSpec) DeepCopyInto

func (in *PgBouncerOpsRequestSpec) DeepCopyInto(out *PgBouncerOpsRequestSpec)

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

type PgBouncerOpsRequestType added in v0.29.0

type PgBouncerOpsRequestType string

+kubebuilder:validation:Enum=HorizontalScaling;VerticalScaling;UpdateVersion;Reconfigure;RotateAuth;Restart ENUM(HorizontalScaling, VerticalScaling, UpdateVersion, Reconfigure, RotateAuth, Restart)

const (
	// PgBouncerOpsRequestTypeHorizontalScaling is a PgBouncerOpsRequestType of type HorizontalScaling.
	PgBouncerOpsRequestTypeHorizontalScaling PgBouncerOpsRequestType = "HorizontalScaling"
	// PgBouncerOpsRequestTypeVerticalScaling is a PgBouncerOpsRequestType of type VerticalScaling.
	PgBouncerOpsRequestTypeVerticalScaling PgBouncerOpsRequestType = "VerticalScaling"
	// PgBouncerOpsRequestTypeUpdateVersion is a PgBouncerOpsRequestType of type UpdateVersion.
	PgBouncerOpsRequestTypeUpdateVersion PgBouncerOpsRequestType = "UpdateVersion"
	// PgBouncerOpsRequestTypeReconfigure is a PgBouncerOpsRequestType of type Reconfigure.
	PgBouncerOpsRequestTypeReconfigure PgBouncerOpsRequestType = "Reconfigure"
	// PgBouncerOpsRequestTypeRotateAuth is a PgBouncerOpsRequestType of type RotateAuth.
	PgBouncerOpsRequestTypeRotateAuth PgBouncerOpsRequestType = "RotateAuth"
	// PgBouncerOpsRequestTypeRestart is a PgBouncerOpsRequestType of type Restart.
	PgBouncerOpsRequestTypeRestart PgBouncerOpsRequestType = "Restart"
)

func MustParsePgBouncerOpsRequestType added in v0.33.0

func MustParsePgBouncerOpsRequestType(name string) PgBouncerOpsRequestType

MustParsePgBouncerOpsRequestType converts a string to a PgBouncerOpsRequestType, and panics if is not valid.

func ParsePgBouncerOpsRequestType added in v0.33.0

func ParsePgBouncerOpsRequestType(name string) (PgBouncerOpsRequestType, error)

ParsePgBouncerOpsRequestType attempts to convert a string to a PgBouncerOpsRequestType.

func PgBouncerOpsRequestTypeValues added in v0.33.0

func PgBouncerOpsRequestTypeValues() []PgBouncerOpsRequestType

PgBouncerOpsRequestTypeValues returns a list of the values for PgBouncerOpsRequestType

func (PgBouncerOpsRequestType) IsValid added in v0.33.0

func (x PgBouncerOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (PgBouncerOpsRequestType) String added in v0.33.0

func (x PgBouncerOpsRequestType) String() string

String implements the Stringer interface.

type PgBouncerUpdateVersionSpec added in v0.33.0

type PgBouncerUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion string `json:"targetVersion,omitempty"`
}

func (*PgBouncerUpdateVersionSpec) DeepCopy added in v0.33.0

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

func (*PgBouncerUpdateVersionSpec) DeepCopyInto added in v0.33.0

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

type PgBouncerVerticalScalingSpec

type PgBouncerVerticalScalingSpec struct {
	PgBouncer *PodResources       `json:"pgbouncer,omitempty"`
	Exporter  *ContainerResources `json:"exporter,omitempty"`
}

PgBouncerVerticalScalingSpec is the spec for PgBouncer vertical scaling

func (*PgBouncerVerticalScalingSpec) DeepCopy

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

func (*PgBouncerVerticalScalingSpec) DeepCopyInto

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

type PgpoolCustomConfigurationSpec added in v0.46.0

type PgpoolCustomConfigurationSpec struct {
	// ConfigSecret is an optional field to provide custom configuration file for Pgpool.
	// +optional
	ConfigSecret *core.LocalObjectReference `json:"configSecret,omitempty"`
	// ApplyConfig is an optional field to provide Pgpool configuration.
	// Provided configuration will be applied to config files stored in ConfigSecret.
	// If the ConfigSecret is missing, the operator will create a new k8s secret by the
	// following naming convention: {db-name}-config or use the previous init config if it exists.
	// Expected input format:
	// applyConfig:
	//   pgpool.conf: |-
	//     memory_cache_enabled = off
	// +optional
	ApplyConfig map[string]string `json:"applyConfig,omitempty"`
	// If set to "true", the user provided configuration via custom config and init config will be removed.
	// Then Pgpool will start with default configuration that is generated by the operator.
	// +optional
	RemoveCustomConfig bool `json:"removeCustomConfig,omitempty"`
}

PgpoolCustomConfigurationSpec is the spec for Reconfiguring the Pgpool Settings

func (*PgpoolCustomConfigurationSpec) DeepCopy added in v0.46.0

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

func (*PgpoolCustomConfigurationSpec) DeepCopyInto added in v0.46.0

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

type PgpoolHorizontalScalingSpec added in v0.47.0

type PgpoolHorizontalScalingSpec struct {
	// Number of node
	Node *int32 `json:"node,omitempty"`
}

PgpoolHorizontalScalingSpec contains the horizontal scaling information of a Pgpool cluster

func (*PgpoolHorizontalScalingSpec) DeepCopy added in v0.47.0

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

func (*PgpoolHorizontalScalingSpec) DeepCopyInto added in v0.47.0

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

type PgpoolOpsRequest added in v0.46.0

type PgpoolOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PgpoolOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus     `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=pgpoolopsrequests,singular=pgpoolopsrequest,shortName=ppops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*PgpoolOpsRequest) CustomResourceDefinition added in v0.46.0

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

func (*PgpoolOpsRequest) DeepCopy added in v0.46.0

func (in *PgpoolOpsRequest) DeepCopy() *PgpoolOpsRequest

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

func (*PgpoolOpsRequest) DeepCopyInto added in v0.46.0

func (in *PgpoolOpsRequest) DeepCopyInto(out *PgpoolOpsRequest)

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

func (*PgpoolOpsRequest) DeepCopyObject added in v0.46.0

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

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

func (*PgpoolOpsRequest) GetDBRefName added in v0.46.0

func (r *PgpoolOpsRequest) GetDBRefName() string

func (*PgpoolOpsRequest) GetObjectMeta added in v0.46.0

func (r *PgpoolOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*PgpoolOpsRequest) GetRequestType added in v0.46.0

func (r *PgpoolOpsRequest) GetRequestType() any

func (*PgpoolOpsRequest) GetStatus added in v0.46.0

func (r *PgpoolOpsRequest) GetStatus() OpsRequestStatus

func (*PgpoolOpsRequest) ResourceFQN added in v0.46.0

func (r *PgpoolOpsRequest) ResourceFQN() string

func (*PgpoolOpsRequest) ResourceKind added in v0.46.0

func (r *PgpoolOpsRequest) ResourceKind() string

func (*PgpoolOpsRequest) ResourcePlural added in v0.46.0

func (r *PgpoolOpsRequest) ResourcePlural() string

func (*PgpoolOpsRequest) ResourceShortCode added in v0.46.0

func (r *PgpoolOpsRequest) ResourceShortCode() string

func (*PgpoolOpsRequest) ResourceSingular added in v0.46.0

func (r *PgpoolOpsRequest) ResourceSingular() string

func (*PgpoolOpsRequest) SetStatus added in v0.46.0

func (r *PgpoolOpsRequest) SetStatus(s OpsRequestStatus)

type PgpoolOpsRequestList added in v0.46.0

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

PgpoolOpsRequestList is a list of PgpoolOpsRequests

func (*PgpoolOpsRequestList) DeepCopy added in v0.46.0

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

func (*PgpoolOpsRequestList) DeepCopyInto added in v0.46.0

func (in *PgpoolOpsRequestList) DeepCopyInto(out *PgpoolOpsRequestList)

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

func (*PgpoolOpsRequestList) DeepCopyObject added in v0.46.0

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

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

type PgpoolOpsRequestSpec added in v0.46.0

type PgpoolOpsRequestSpec struct {
	// Specifies the Pgpool reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc.
	Type PgpoolOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading pgpool
	UpdateVersion *PgpoolUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *PgpoolHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *PgpoolVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for custom configuration of Pgpool
	Configuration *PgpoolCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *PgpoolTLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

PgpoolOpsRequestSpec is the spec for PgpoolOpsRequest

func (*PgpoolOpsRequestSpec) DeepCopy added in v0.46.0

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

func (*PgpoolOpsRequestSpec) DeepCopyInto added in v0.46.0

func (in *PgpoolOpsRequestSpec) DeepCopyInto(out *PgpoolOpsRequestSpec)

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

type PgpoolOpsRequestType added in v0.46.0

type PgpoolOpsRequestType string

+kubebuilder:validation:Enum=UpdateVersion;VerticalScaling;Reconfigure;Restart;HorizontalScaling;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, Restart, Reconfigure, VerticalScaling, HorizontalScaling, ReconfigureTLS, RotateAuth)

const (
	// PgpoolOpsRequestTypeUpdateVersion is a PgpoolOpsRequestType of type UpdateVersion.
	PgpoolOpsRequestTypeUpdateVersion PgpoolOpsRequestType = "UpdateVersion"
	// PgpoolOpsRequestTypeRestart is a PgpoolOpsRequestType of type Restart.
	PgpoolOpsRequestTypeRestart PgpoolOpsRequestType = "Restart"
	// PgpoolOpsRequestTypeReconfigure is a PgpoolOpsRequestType of type Reconfigure.
	PgpoolOpsRequestTypeReconfigure PgpoolOpsRequestType = "Reconfigure"
	// PgpoolOpsRequestTypeVerticalScaling is a PgpoolOpsRequestType of type VerticalScaling.
	PgpoolOpsRequestTypeVerticalScaling PgpoolOpsRequestType = "VerticalScaling"
	// PgpoolOpsRequestTypeHorizontalScaling is a PgpoolOpsRequestType of type HorizontalScaling.
	PgpoolOpsRequestTypeHorizontalScaling PgpoolOpsRequestType = "HorizontalScaling"
	// PgpoolOpsRequestTypeReconfigureTLS is a PgpoolOpsRequestType of type ReconfigureTLS.
	PgpoolOpsRequestTypeReconfigureTLS PgpoolOpsRequestType = "ReconfigureTLS"
	// PgpoolOpsRequestTypeRotateAuth is a PgpoolOpsRequestType of type RotateAuth.
	PgpoolOpsRequestTypeRotateAuth PgpoolOpsRequestType = "RotateAuth"
)

func MustParsePgpoolOpsRequestType added in v0.46.0

func MustParsePgpoolOpsRequestType(name string) PgpoolOpsRequestType

MustParsePgpoolOpsRequestType converts a string to a PgpoolOpsRequestType, and panics if is not valid.

func ParsePgpoolOpsRequestType added in v0.46.0

func ParsePgpoolOpsRequestType(name string) (PgpoolOpsRequestType, error)

ParsePgpoolOpsRequestType attempts to convert a string to a PgpoolOpsRequestType.

func PgpoolOpsRequestTypeValues added in v0.46.0

func PgpoolOpsRequestTypeValues() []PgpoolOpsRequestType

PgpoolOpsRequestTypeValues returns a list of the values for PgpoolOpsRequestType

func (PgpoolOpsRequestType) IsValid added in v0.46.0

func (x PgpoolOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (PgpoolOpsRequestType) String added in v0.46.0

func (x PgpoolOpsRequestType) String() string

String implements the Stringer interface.

type PgpoolTLSSpec added in v0.47.0

type PgpoolTLSSpec struct {
	TLSSpec `json:",inline,omitempty"`

	// SSLMode for both standalone and clusters. [disable;allow;prefer;require;verify-ca;verify-full]
	// +optional
	SSLMode v1alpha2.PgpoolSSLMode `json:"sslMode,omitempty"`

	// ClientAuthMode for both standalone and clusters. (default will be md5. [md5;scram;cert])
	// +optional
	ClientAuthMode v1alpha2.PgpoolClientAuthMode `json:"clientAuthMode,omitempty"`
}

func (*PgpoolTLSSpec) DeepCopy added in v0.47.0

func (in *PgpoolTLSSpec) DeepCopy() *PgpoolTLSSpec

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

func (*PgpoolTLSSpec) DeepCopyInto added in v0.47.0

func (in *PgpoolTLSSpec) DeepCopyInto(out *PgpoolTLSSpec)

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

type PgpoolUpdateVersionSpec added in v0.47.0

type PgpoolUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion string `json:"targetVersion,omitempty"`
}

PgpoolUpdateVersionSpec contains the update version information of a pgpool cluster

func (*PgpoolUpdateVersionSpec) DeepCopy added in v0.47.0

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

func (*PgpoolUpdateVersionSpec) DeepCopyInto added in v0.47.0

func (in *PgpoolUpdateVersionSpec) DeepCopyInto(out *PgpoolUpdateVersionSpec)

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

type PgpoolVerticalScalingSpec added in v0.46.0

type PgpoolVerticalScalingSpec struct {
	// Resource spec for nodes
	Node *PodResources `json:"node,omitempty"`
}

PgpoolVerticalScalingSpec contains the vertical scaling information of a Pgpool cluster

func (*PgpoolVerticalScalingSpec) DeepCopy added in v0.46.0

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

func (*PgpoolVerticalScalingSpec) DeepCopyInto added in v0.46.0

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

type PodResources added in v0.39.0

type PodResources struct {
	// +optional
	NodeSelectionPolicy nodemeta.NodeSelectionPolicy `json:"nodeSelectionPolicy,omitempty"`
	Topology            *Topology                    `json:"topology,omitempty"`
	// Compute Resources required by the sidecar container.
	// +optional
	Resources core.ResourceRequirements `json:"resources,omitempty"`
}

PodResources is the spec for vertical scaling of pods

func (*PodResources) DeepCopy added in v0.39.0

func (in *PodResources) DeepCopy() *PodResources

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

func (*PodResources) DeepCopyInto added in v0.39.0

func (in *PodResources) DeepCopyInto(out *PodResources)

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

type PostgresCustomConfiguration

type PostgresCustomConfiguration struct {
	ConfigMap *core.LocalObjectReference `json:"configMap,omitempty"`
	Data      map[string]string          `json:"data,omitempty"`
	Remove    bool                       `json:"remove,omitempty"`
}

func (*PostgresCustomConfiguration) DeepCopy

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

func (*PostgresCustomConfiguration) DeepCopyInto

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

type PostgresCustomConfigurationSpec

type PostgresCustomConfigurationSpec struct {
	ConfigSecret       *core.LocalObjectReference `json:"configSecret,omitempty"`
	ApplyConfig        map[string]string          `json:"applyConfig,omitempty"`
	RemoveCustomConfig bool                       `json:"removeCustomConfig,omitempty"`
}

func (*PostgresCustomConfigurationSpec) DeepCopy

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

func (*PostgresCustomConfigurationSpec) DeepCopyInto

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

type PostgresHorizontalScalingSpec

type PostgresHorizontalScalingSpec struct {
	Replicas *int32 `json:"replicas,omitempty"`
	// Standby mode
	// +kubebuilder:default="Warm"
	StandbyMode *PostgresStandbyMode `json:"standbyMode,omitempty"`

	// Streaming mode
	// +kubebuilder:default="Asynchronous"
	StreamingMode *PostgresStreamingMode `json:"streamingMode,omitempty"`
}

HorizontalScaling is the spec for Postgres horizontal scaling

func (*PostgresHorizontalScalingSpec) DeepCopy

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

func (*PostgresHorizontalScalingSpec) DeepCopyInto

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

type PostgresOpsRequest

type PostgresOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PostgresOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus       `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=postgresopsrequests,singular=postgresopsrequest,shortName=pgops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (PostgresOpsRequest) CustomResourceDefinition

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

func (*PostgresOpsRequest) DeepCopy

func (in *PostgresOpsRequest) DeepCopy() *PostgresOpsRequest

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

func (*PostgresOpsRequest) DeepCopyInto

func (in *PostgresOpsRequest) DeepCopyInto(out *PostgresOpsRequest)

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

func (*PostgresOpsRequest) DeepCopyObject

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

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

func (*PostgresOpsRequest) GetDBRefName added in v0.28.1

func (p *PostgresOpsRequest) GetDBRefName() string

func (*PostgresOpsRequest) GetObjectMeta added in v0.28.1

func (p *PostgresOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*PostgresOpsRequest) GetRequestType added in v0.28.1

func (p *PostgresOpsRequest) GetRequestType() any

func (*PostgresOpsRequest) GetStatus added in v0.28.1

func (p *PostgresOpsRequest) GetStatus() OpsRequestStatus

func (PostgresOpsRequest) ResourceFQN added in v0.16.0

func (p PostgresOpsRequest) ResourceFQN() string

func (PostgresOpsRequest) ResourceKind

func (p PostgresOpsRequest) ResourceKind() string

func (PostgresOpsRequest) ResourcePlural

func (p PostgresOpsRequest) ResourcePlural() string

func (PostgresOpsRequest) ResourceShortCode

func (p PostgresOpsRequest) ResourceShortCode() string

func (PostgresOpsRequest) ResourceSingular

func (p PostgresOpsRequest) ResourceSingular() string

func (*PostgresOpsRequest) SetStatus added in v0.28.1

func (p *PostgresOpsRequest) SetStatus(s OpsRequestStatus)

func (PostgresOpsRequest) ValidateSpecs

func (p PostgresOpsRequest) ValidateSpecs() error

type PostgresOpsRequestList

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

PostgresOpsRequestList is a list of PostgresOpsRequests

func (*PostgresOpsRequestList) DeepCopy

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

func (*PostgresOpsRequestList) DeepCopyInto

func (in *PostgresOpsRequestList) DeepCopyInto(out *PostgresOpsRequestList)

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

func (*PostgresOpsRequestList) DeepCopyObject

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

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

type PostgresOpsRequestSpec

type PostgresOpsRequestSpec struct {
	// Specifies the Postgres reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc.
	Type PostgresOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading Postgres
	UpdateVersion *PostgresUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *PostgresHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *PostgresVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *PostgresVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for custom configuration of Postgres
	Configuration *PostgresCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *PostgresTLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

PostgresOpsRequestSpec is the spec for PostgresOpsRequest

func (*PostgresOpsRequestSpec) DeepCopy

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

func (*PostgresOpsRequestSpec) DeepCopyInto

func (in *PostgresOpsRequestSpec) DeepCopyInto(out *PostgresOpsRequestSpec)

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

type PostgresOpsRequestType added in v0.29.0

type PostgresOpsRequestType string

+kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth)

const (
	// PostgresOpsRequestTypeUpdateVersion is a PostgresOpsRequestType of type UpdateVersion.
	PostgresOpsRequestTypeUpdateVersion PostgresOpsRequestType = "UpdateVersion"
	// PostgresOpsRequestTypeHorizontalScaling is a PostgresOpsRequestType of type HorizontalScaling.
	PostgresOpsRequestTypeHorizontalScaling PostgresOpsRequestType = "HorizontalScaling"
	// PostgresOpsRequestTypeVerticalScaling is a PostgresOpsRequestType of type VerticalScaling.
	PostgresOpsRequestTypeVerticalScaling PostgresOpsRequestType = "VerticalScaling"
	// PostgresOpsRequestTypeVolumeExpansion is a PostgresOpsRequestType of type VolumeExpansion.
	PostgresOpsRequestTypeVolumeExpansion PostgresOpsRequestType = "VolumeExpansion"
	// PostgresOpsRequestTypeRestart is a PostgresOpsRequestType of type Restart.
	PostgresOpsRequestTypeRestart PostgresOpsRequestType = "Restart"
	// PostgresOpsRequestTypeReconfigure is a PostgresOpsRequestType of type Reconfigure.
	PostgresOpsRequestTypeReconfigure PostgresOpsRequestType = "Reconfigure"
	// PostgresOpsRequestTypeReconfigureTLS is a PostgresOpsRequestType of type ReconfigureTLS.
	PostgresOpsRequestTypeReconfigureTLS PostgresOpsRequestType = "ReconfigureTLS"
	// PostgresOpsRequestTypeRotateAuth is a PostgresOpsRequestType of type RotateAuth.
	PostgresOpsRequestTypeRotateAuth PostgresOpsRequestType = "RotateAuth"
)

func MustParsePostgresOpsRequestType added in v0.33.0

func MustParsePostgresOpsRequestType(name string) PostgresOpsRequestType

MustParsePostgresOpsRequestType converts a string to a PostgresOpsRequestType, and panics if is not valid.

func ParsePostgresOpsRequestType added in v0.33.0

func ParsePostgresOpsRequestType(name string) (PostgresOpsRequestType, error)

ParsePostgresOpsRequestType attempts to convert a string to a PostgresOpsRequestType.

func PostgresOpsRequestTypeValues added in v0.33.0

func PostgresOpsRequestTypeValues() []PostgresOpsRequestType

PostgresOpsRequestTypeValues returns a list of the values for PostgresOpsRequestType

func (PostgresOpsRequestType) IsValid added in v0.33.0

func (x PostgresOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (PostgresOpsRequestType) String added in v0.33.0

func (x PostgresOpsRequestType) String() string

String implements the Stringer interface.

type PostgresStandbyMode added in v0.32.0

type PostgresStandbyMode string

+kubebuilder:validation:Enum=Hot;Warm

const (
	HotPostgresStandbyMode  PostgresStandbyMode = "Hot"
	WarmPostgresStandbyMode PostgresStandbyMode = "Warm"
)

type PostgresStreamingMode added in v0.32.0

type PostgresStreamingMode string

+kubebuilder:validation:Enum=Synchronous;Asynchronous

const (
	SynchronousPostgresStreamingMode  PostgresStreamingMode = "Synchronous"
	AsynchronousPostgresStreamingMode PostgresStreamingMode = "Asynchronous"
)

type PostgresTLSSpec added in v0.19.0

type PostgresTLSSpec struct {
	TLSSpec `json:",inline,omitempty"`

	// SSLMode for both standalone and clusters. [disable;allow;prefer;require;verify-ca;verify-full]
	// +optional
	SSLMode dbapi.PostgresSSLMode `json:"sslMode,omitempty"`

	// ClientAuthMode for sidecar or sharding. (default will be md5. [md5;scram;cert])
	// +optional
	ClientAuthMode dbapi.PostgresClientAuthMode `json:"clientAuthMode,omitempty"`
}

func (*PostgresTLSSpec) DeepCopy added in v0.19.0

func (in *PostgresTLSSpec) DeepCopy() *PostgresTLSSpec

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

func (*PostgresTLSSpec) DeepCopyInto added in v0.19.0

func (in *PostgresTLSSpec) DeepCopyInto(out *PostgresTLSSpec)

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

type PostgresUpdateVersionSpec added in v0.33.0

type PostgresUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion string `json:"targetVersion,omitempty"`
}

func (*PostgresUpdateVersionSpec) DeepCopy added in v0.33.0

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

func (*PostgresUpdateVersionSpec) DeepCopyInto added in v0.33.0

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

type PostgresVerticalScalingSpec

type PostgresVerticalScalingSpec struct {
	Postgres    *PodResources       `json:"postgres,omitempty"`
	Exporter    *ContainerResources `json:"exporter,omitempty"`
	Coordinator *ContainerResources `json:"coordinator,omitempty"`
	Arbiter     *PodResources       `json:"arbiter,omitempty"`
}

PostgresVerticalScalingSpec is the spec for Postgres vertical scaling

func (*PostgresVerticalScalingSpec) DeepCopy

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

func (*PostgresVerticalScalingSpec) DeepCopyInto

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

type PostgresVolumeExpansionSpec

type PostgresVolumeExpansionSpec struct {
	// volume specification for Postgres
	Postgres *resource.Quantity  `json:"postgres,omitempty"`
	Arbiter  *resource.Quantity  `json:"arbiter,omitempty"`
	Mode     VolumeExpansionMode `json:"mode"`
}

PostgresVolumeExpansionSpec is the spec for Postgres volume expansion

func (*PostgresVolumeExpansionSpec) DeepCopy

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

func (*PostgresVolumeExpansionSpec) DeepCopyInto

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

type ProxySQLCustomConfiguration

type ProxySQLCustomConfiguration struct {
	ConfigMap *core.LocalObjectReference `json:"configMap,omitempty"`
	Data      map[string]string          `json:"data,omitempty"`
	Remove    bool                       `json:"remove,omitempty"`
}

func (*ProxySQLCustomConfiguration) DeepCopy

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

func (*ProxySQLCustomConfiguration) DeepCopyInto

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

type ProxySQLCustomConfigurationSpec

type ProxySQLCustomConfigurationSpec struct {
	//+optional
	MySQLUsers *MySQLUsers `json:"mysqlUsers,omitempty"`

	//+optional
	MySQLQueryRules *MySQLQueryRules `json:"mysqlQueryRules,omitempty"`

	// +optional
	// +kubebuilder:pruning:PreserveUnknownFields
	AdminVariables *runtime.RawExtension `json:"adminVariables,omitempty"`

	// +optional
	// +kubebuilder:pruning:PreserveUnknownFields
	MySQLVariables *runtime.RawExtension `json:"mysqlVariables,omitempty"`
}

func (*ProxySQLCustomConfigurationSpec) DeepCopy

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

func (*ProxySQLCustomConfigurationSpec) DeepCopyInto

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

type ProxySQLHorizontalScalingSpec

type ProxySQLHorizontalScalingSpec struct {
	// Number of nodes/members of the group
	Member *int32 `json:"member,omitempty"`
}

HorizontalScaling is the spec for ProxySQL horizontal scaling

func (*ProxySQLHorizontalScalingSpec) DeepCopy

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

func (*ProxySQLHorizontalScalingSpec) DeepCopyInto

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

type ProxySQLOpsRequest

type ProxySQLOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ProxySQLOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus       `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=proxysqlopsrequests,singular=proxysqlopsrequest,shortName=prxops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (ProxySQLOpsRequest) CustomResourceDefinition

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

func (*ProxySQLOpsRequest) DeepCopy

func (in *ProxySQLOpsRequest) DeepCopy() *ProxySQLOpsRequest

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

func (*ProxySQLOpsRequest) DeepCopyInto

func (in *ProxySQLOpsRequest) DeepCopyInto(out *ProxySQLOpsRequest)

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

func (*ProxySQLOpsRequest) DeepCopyObject

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

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

func (*ProxySQLOpsRequest) GetDBRefName added in v0.28.1

func (p *ProxySQLOpsRequest) GetDBRefName() string

func (*ProxySQLOpsRequest) GetObjectMeta added in v0.28.1

func (p *ProxySQLOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*ProxySQLOpsRequest) GetRequestType added in v0.28.1

func (p *ProxySQLOpsRequest) GetRequestType() any

func (*ProxySQLOpsRequest) GetStatus added in v0.28.1

func (p *ProxySQLOpsRequest) GetStatus() OpsRequestStatus

func (ProxySQLOpsRequest) ResourceFQN added in v0.16.0

func (p ProxySQLOpsRequest) ResourceFQN() string

func (ProxySQLOpsRequest) ResourceKind

func (p ProxySQLOpsRequest) ResourceKind() string

func (ProxySQLOpsRequest) ResourcePlural

func (p ProxySQLOpsRequest) ResourcePlural() string

func (ProxySQLOpsRequest) ResourceShortCode

func (p ProxySQLOpsRequest) ResourceShortCode() string

func (ProxySQLOpsRequest) ResourceSingular

func (p ProxySQLOpsRequest) ResourceSingular() string

func (*ProxySQLOpsRequest) SetStatus added in v0.28.1

func (p *ProxySQLOpsRequest) SetStatus(s OpsRequestStatus)

type ProxySQLOpsRequestList

type ProxySQLOpsRequestList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	//+optional
	// Items is a list of ProxySQLOpsRequest CRD objects
	Items []ProxySQLOpsRequest `json:"items,omitempty"`
}

ProxySQLOpsRequestList is a list of ProxySQLOpsRequests

func (*ProxySQLOpsRequestList) DeepCopy

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

func (*ProxySQLOpsRequestList) DeepCopyInto

func (in *ProxySQLOpsRequestList) DeepCopyInto(out *ProxySQLOpsRequestList)

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

func (*ProxySQLOpsRequestList) DeepCopyObject

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

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

type ProxySQLOpsRequestSpec

type ProxySQLOpsRequestSpec struct {
	// Specifies the ProxySQL reference
	ProxyRef core.LocalObjectReference `json:"proxyRef"`
	// Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc.
	Type ProxySQLOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading ProxySQL
	UpdateVersion *ProxySQLUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *ProxySQLHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *ProxySQLVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for custom configuration of ProxySQL
	Configuration *ProxySQLCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *TLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

ProxySQLOpsRequestSpec is the spec for ProxySQLOpsRequest

func (*ProxySQLOpsRequestSpec) DeepCopy

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

func (*ProxySQLOpsRequestSpec) DeepCopyInto

func (in *ProxySQLOpsRequestSpec) DeepCopyInto(out *ProxySQLOpsRequestSpec)

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

type ProxySQLOpsRequestType added in v0.29.0

type ProxySQLOpsRequestType string

+kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;Restart;Reconfigure;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, Restart, Reconfigure, ReconfigureTLS, RotateAuth)

const (
	// ProxySQLOpsRequestTypeUpdateVersion is a ProxySQLOpsRequestType of type UpdateVersion.
	ProxySQLOpsRequestTypeUpdateVersion ProxySQLOpsRequestType = "UpdateVersion"
	// ProxySQLOpsRequestTypeHorizontalScaling is a ProxySQLOpsRequestType of type HorizontalScaling.
	ProxySQLOpsRequestTypeHorizontalScaling ProxySQLOpsRequestType = "HorizontalScaling"
	// ProxySQLOpsRequestTypeVerticalScaling is a ProxySQLOpsRequestType of type VerticalScaling.
	ProxySQLOpsRequestTypeVerticalScaling ProxySQLOpsRequestType = "VerticalScaling"
	// ProxySQLOpsRequestTypeRestart is a ProxySQLOpsRequestType of type Restart.
	ProxySQLOpsRequestTypeRestart ProxySQLOpsRequestType = "Restart"
	// ProxySQLOpsRequestTypeReconfigure is a ProxySQLOpsRequestType of type Reconfigure.
	ProxySQLOpsRequestTypeReconfigure ProxySQLOpsRequestType = "Reconfigure"
	// ProxySQLOpsRequestTypeReconfigureTLS is a ProxySQLOpsRequestType of type ReconfigureTLS.
	ProxySQLOpsRequestTypeReconfigureTLS ProxySQLOpsRequestType = "ReconfigureTLS"
	// ProxySQLOpsRequestTypeRotateAuth is a ProxySQLOpsRequestType of type RotateAuth.
	ProxySQLOpsRequestTypeRotateAuth ProxySQLOpsRequestType = "RotateAuth"
)

func MustParseProxySQLOpsRequestType added in v0.33.0

func MustParseProxySQLOpsRequestType(name string) ProxySQLOpsRequestType

MustParseProxySQLOpsRequestType converts a string to a ProxySQLOpsRequestType, and panics if is not valid.

func ParseProxySQLOpsRequestType added in v0.33.0

func ParseProxySQLOpsRequestType(name string) (ProxySQLOpsRequestType, error)

ParseProxySQLOpsRequestType attempts to convert a string to a ProxySQLOpsRequestType.

func ProxySQLOpsRequestTypeValues added in v0.33.0

func ProxySQLOpsRequestTypeValues() []ProxySQLOpsRequestType

ProxySQLOpsRequestTypeValues returns a list of the values for ProxySQLOpsRequestType

func (ProxySQLOpsRequestType) IsValid added in v0.33.0

func (x ProxySQLOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (ProxySQLOpsRequestType) String added in v0.33.0

func (x ProxySQLOpsRequestType) String() string

String implements the Stringer interface.

type ProxySQLReplicaReadinessCriteria

type ProxySQLReplicaReadinessCriteria struct{}

ProxySQLReplicaReadinessCriteria is the criteria for checking readiness of a ProxySQL pod after updating, horizontal scaling etc.

func (*ProxySQLReplicaReadinessCriteria) DeepCopy

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

func (*ProxySQLReplicaReadinessCriteria) DeepCopyInto

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

type ProxySQLUpdateVersionSpec added in v0.33.0

type ProxySQLUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion     string                            `json:"targetVersion,omitempty"`
	ReadinessCriteria *ProxySQLReplicaReadinessCriteria `json:"readinessCriteria,omitempty"`
}

func (*ProxySQLUpdateVersionSpec) DeepCopy added in v0.33.0

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

func (*ProxySQLUpdateVersionSpec) DeepCopyInto added in v0.33.0

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

type ProxySQLVerticalScalingSpec

type ProxySQLVerticalScalingSpec struct {
	ProxySQL *PodResources `json:"proxysql,omitempty"`
}

ProxySQLVerticalScalingSpec is the spec for ProxySQL vertical scaling

func (*ProxySQLVerticalScalingSpec) DeepCopy

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

func (*ProxySQLVerticalScalingSpec) DeepCopyInto

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

type RabbitMQCustomConfigurationSpec added in v0.46.0

type RabbitMQCustomConfigurationSpec struct {
	// ConfigSecret is an optional field to provide custom configuration file for database.
	// +optional
	ConfigSecret *core.LocalObjectReference `json:"configSecret,omitempty"`
	// ApplyConfig is an optional field to provide rabbitmq configuration.
	// Provided configuration will be applied to config files stored in ConfigSecret.
	// If the ConfigSecret is missing, the operator will create a new k8s secret by the
	// following naming convention: {db-name}-user-config .
	// Expected input format:
	//	applyConfig:
	//		rabbitmq.conf: |
	//			key=value
	// +optional
	ApplyConfig map[string]string `json:"applyConfig,omitempty"`
	// If set to "true", the user provided configuration will be removed.
	// The rabbitmq cluster will start will default configuration that is generated by the operator.
	// +optional
	RemoveCustomConfig bool `json:"removeCustomConfig,omitempty"`
}

RabbitMQCustomConfigurationSpec is the spec for Reconfiguring the rabbitmq Settings

func (*RabbitMQCustomConfigurationSpec) DeepCopy added in v0.46.0

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

func (*RabbitMQCustomConfigurationSpec) DeepCopyInto added in v0.46.0

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

type RabbitMQHorizontalScalingSpec added in v0.46.0

type RabbitMQHorizontalScalingSpec struct {
	// Number of node
	Node *int32 `json:"node,omitempty"`
}

RabbitMQHorizontalScalingSpec contains the horizontal scaling information of a RabbitMQ cluster

func (*RabbitMQHorizontalScalingSpec) DeepCopy added in v0.46.0

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

func (*RabbitMQHorizontalScalingSpec) DeepCopyInto added in v0.46.0

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

type RabbitMQOpsRequest added in v0.45.0

type RabbitMQOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              RabbitMQOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus       `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=rabbitmqopsrequests,singular=rabbitmqopsrequest,shortName=rmops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*RabbitMQOpsRequest) CustomResourceDefinition added in v0.45.0

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

func (*RabbitMQOpsRequest) DeepCopy added in v0.45.0

func (in *RabbitMQOpsRequest) DeepCopy() *RabbitMQOpsRequest

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

func (*RabbitMQOpsRequest) DeepCopyInto added in v0.45.0

func (in *RabbitMQOpsRequest) DeepCopyInto(out *RabbitMQOpsRequest)

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

func (*RabbitMQOpsRequest) DeepCopyObject added in v0.45.0

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

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

func (*RabbitMQOpsRequest) GetDBRefName added in v0.45.0

func (r *RabbitMQOpsRequest) GetDBRefName() string

func (*RabbitMQOpsRequest) GetObjectMeta added in v0.45.0

func (r *RabbitMQOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*RabbitMQOpsRequest) GetRequestType added in v0.45.0

func (r *RabbitMQOpsRequest) GetRequestType() any

func (*RabbitMQOpsRequest) GetStatus added in v0.45.0

func (r *RabbitMQOpsRequest) GetStatus() OpsRequestStatus

func (*RabbitMQOpsRequest) ResourceFQN added in v0.45.0

func (r *RabbitMQOpsRequest) ResourceFQN() string

func (*RabbitMQOpsRequest) ResourceKind added in v0.45.0

func (r *RabbitMQOpsRequest) ResourceKind() string

func (*RabbitMQOpsRequest) ResourcePlural added in v0.45.0

func (r *RabbitMQOpsRequest) ResourcePlural() string

func (*RabbitMQOpsRequest) ResourceShortCode added in v0.45.0

func (r *RabbitMQOpsRequest) ResourceShortCode() string

func (*RabbitMQOpsRequest) ResourceSingular added in v0.45.0

func (r *RabbitMQOpsRequest) ResourceSingular() string

func (*RabbitMQOpsRequest) SetStatus added in v0.45.0

func (r *RabbitMQOpsRequest) SetStatus(s OpsRequestStatus)

type RabbitMQOpsRequestList added in v0.45.0

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

RabbitMQOpsRequestList is a list of RabbitMQOpsRequests

func (*RabbitMQOpsRequestList) DeepCopy added in v0.45.0

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

func (*RabbitMQOpsRequestList) DeepCopyInto added in v0.45.0

func (in *RabbitMQOpsRequestList) DeepCopyInto(out *RabbitMQOpsRequestList)

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

func (*RabbitMQOpsRequestList) DeepCopyObject added in v0.45.0

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

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

type RabbitMQOpsRequestSpec added in v0.45.0

type RabbitMQOpsRequestSpec struct {
	// Specifies the RabbitMQ reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc.
	Type RabbitMQOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading rabbitmq
	UpdateVersion *RabbitMQUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *RabbitMQHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *RabbitMQVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *RabbitMQVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for custom configuration of rabbitmq
	Configuration *RabbitMQCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *TLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

RabbitMQOpsRequestSpec is the spec for RabbitMQOpsRequest

func (*RabbitMQOpsRequestSpec) DeepCopy added in v0.45.0

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

func (*RabbitMQOpsRequestSpec) DeepCopyInto added in v0.45.0

func (in *RabbitMQOpsRequestSpec) DeepCopyInto(out *RabbitMQOpsRequestSpec)

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

type RabbitMQOpsRequestType added in v0.45.0

type RabbitMQOpsRequestType string

+kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth)

const (
	// RabbitMQOpsRequestTypeUpdateVersion is a RabbitMQOpsRequestType of type UpdateVersion.
	RabbitMQOpsRequestTypeUpdateVersion RabbitMQOpsRequestType = "UpdateVersion"
	// RabbitMQOpsRequestTypeHorizontalScaling is a RabbitMQOpsRequestType of type HorizontalScaling.
	RabbitMQOpsRequestTypeHorizontalScaling RabbitMQOpsRequestType = "HorizontalScaling"
	// RabbitMQOpsRequestTypeVerticalScaling is a RabbitMQOpsRequestType of type VerticalScaling.
	RabbitMQOpsRequestTypeVerticalScaling RabbitMQOpsRequestType = "VerticalScaling"
	// RabbitMQOpsRequestTypeVolumeExpansion is a RabbitMQOpsRequestType of type VolumeExpansion.
	RabbitMQOpsRequestTypeVolumeExpansion RabbitMQOpsRequestType = "VolumeExpansion"
	// RabbitMQOpsRequestTypeRestart is a RabbitMQOpsRequestType of type Restart.
	RabbitMQOpsRequestTypeRestart RabbitMQOpsRequestType = "Restart"
	// RabbitMQOpsRequestTypeReconfigure is a RabbitMQOpsRequestType of type Reconfigure.
	RabbitMQOpsRequestTypeReconfigure RabbitMQOpsRequestType = "Reconfigure"
	// RabbitMQOpsRequestTypeReconfigureTLS is a RabbitMQOpsRequestType of type ReconfigureTLS.
	RabbitMQOpsRequestTypeReconfigureTLS RabbitMQOpsRequestType = "ReconfigureTLS"
	// RabbitMQOpsRequestTypeRotateAuth is a RabbitMQOpsRequestType of type RotateAuth.
	RabbitMQOpsRequestTypeRotateAuth RabbitMQOpsRequestType = "RotateAuth"
)

func MustParseRabbitMQOpsRequestType added in v0.45.0

func MustParseRabbitMQOpsRequestType(name string) RabbitMQOpsRequestType

MustParseRabbitMQOpsRequestType converts a string to a RabbitMQOpsRequestType, and panics if is not valid.

func ParseRabbitMQOpsRequestType added in v0.45.0

func ParseRabbitMQOpsRequestType(name string) (RabbitMQOpsRequestType, error)

ParseRabbitMQOpsRequestType attempts to convert a string to a RabbitMQOpsRequestType.

func RabbitMQOpsRequestTypeValues added in v0.45.0

func RabbitMQOpsRequestTypeValues() []RabbitMQOpsRequestType

RabbitMQOpsRequestTypeValues returns a list of the values for RabbitMQOpsRequestType

func (RabbitMQOpsRequestType) IsValid added in v0.45.0

func (x RabbitMQOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (RabbitMQOpsRequestType) String added in v0.45.0

func (x RabbitMQOpsRequestType) String() string

String implements the Stringer interface.

type RabbitMQReplicaReadinessCriteria added in v0.45.0

type RabbitMQReplicaReadinessCriteria struct{}

RabbitMQReplicaReadinessCriteria is the criteria for checking readiness of a RabbitMQ pod after updating, horizontal scaling etc.

func (*RabbitMQReplicaReadinessCriteria) DeepCopy added in v0.45.0

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

func (*RabbitMQReplicaReadinessCriteria) DeepCopyInto added in v0.45.0

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

type RabbitMQUpdateVersionSpec added in v0.46.0

type RabbitMQUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion string `json:"targetVersion,omitempty"`
}

RabbitMQUpdateVersionSpec contains the update version information of a rabbitmq cluster

func (*RabbitMQUpdateVersionSpec) DeepCopy added in v0.46.0

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

func (*RabbitMQUpdateVersionSpec) DeepCopyInto added in v0.46.0

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

type RabbitMQVerticalScalingSpec added in v0.45.0

type RabbitMQVerticalScalingSpec struct {
	// Resource spec for nodes
	Node *PodResources `json:"node,omitempty"`
}

RabbitMQVerticalScalingSpec contains the vertical scaling information of a RabbitMQ cluster

func (*RabbitMQVerticalScalingSpec) DeepCopy added in v0.45.0

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

func (*RabbitMQVerticalScalingSpec) DeepCopyInto added in v0.45.0

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

type RabbitMQVolumeExpansionSpec added in v0.45.0

type RabbitMQVolumeExpansionSpec struct {
	Mode VolumeExpansionMode `json:"mode"`
	// volume specification for nodes
	Node *resource.Quantity `json:"node,omitempty"`
}

RabbitMQVolumeExpansionSpec is the spec for RabbitMQ volume expansion

func (*RabbitMQVolumeExpansionSpec) DeepCopy added in v0.45.0

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

func (*RabbitMQVolumeExpansionSpec) DeepCopyInto added in v0.45.0

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

type RedisCustomConfigurationSpec

type RedisCustomConfigurationSpec struct {
	ConfigSecret       *core.LocalObjectReference `json:"configSecret,omitempty"`
	ApplyConfig        map[string]string          `json:"applyConfig,omitempty"`
	RemoveCustomConfig bool                       `json:"removeCustomConfig,omitempty"`
}

func (*RedisCustomConfigurationSpec) DeepCopy

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

func (*RedisCustomConfigurationSpec) DeepCopyInto

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

type RedisHorizontalScalingSpec

type RedisHorizontalScalingSpec struct {
	// Number of shards in the cluster
	Shards *int32 `json:"shards,omitempty"`
	// specifies the number of replica of the shards
	Replicas *int32 `json:"replicas,omitempty"`
}

func (*RedisHorizontalScalingSpec) DeepCopy

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

func (*RedisHorizontalScalingSpec) DeepCopyInto

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

type RedisOpsRequest

type RedisOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              RedisOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus    `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=redisopsrequests,singular=redisopsrequest,shortName=rdops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (RedisOpsRequest) CustomResourceDefinition

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

func (*RedisOpsRequest) DeepCopy

func (in *RedisOpsRequest) DeepCopy() *RedisOpsRequest

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

func (*RedisOpsRequest) DeepCopyInto

func (in *RedisOpsRequest) DeepCopyInto(out *RedisOpsRequest)

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

func (*RedisOpsRequest) DeepCopyObject

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

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

func (*RedisOpsRequest) GetDBRefName added in v0.28.1

func (r *RedisOpsRequest) GetDBRefName() string

func (*RedisOpsRequest) GetObjectMeta added in v0.28.1

func (r *RedisOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*RedisOpsRequest) GetRequestType added in v0.28.1

func (r *RedisOpsRequest) GetRequestType() any

func (*RedisOpsRequest) GetStatus added in v0.28.1

func (r *RedisOpsRequest) GetStatus() OpsRequestStatus

func (RedisOpsRequest) ResourceFQN added in v0.16.0

func (r RedisOpsRequest) ResourceFQN() string

func (RedisOpsRequest) ResourceKind

func (r RedisOpsRequest) ResourceKind() string

func (RedisOpsRequest) ResourcePlural

func (r RedisOpsRequest) ResourcePlural() string

func (RedisOpsRequest) ResourceShortCode

func (r RedisOpsRequest) ResourceShortCode() string

func (RedisOpsRequest) ResourceSingular

func (r RedisOpsRequest) ResourceSingular() string

func (*RedisOpsRequest) SetStatus added in v0.28.1

func (r *RedisOpsRequest) SetStatus(s OpsRequestStatus)

func (RedisOpsRequest) ValidateSpecs

func (r RedisOpsRequest) ValidateSpecs() error

type RedisOpsRequestList

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

RedisOpsRequestList is a list of RedisOpsRequests

func (*RedisOpsRequestList) DeepCopy

func (in *RedisOpsRequestList) DeepCopy() *RedisOpsRequestList

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

func (*RedisOpsRequestList) DeepCopyInto

func (in *RedisOpsRequestList) DeepCopyInto(out *RedisOpsRequestList)

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

func (*RedisOpsRequestList) DeepCopyObject

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

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

type RedisOpsRequestSpec

type RedisOpsRequestSpec struct {
	// Specifies the Redis reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc.
	Type RedisOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading Redis
	UpdateVersion *RedisUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *RedisHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *RedisVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *RedisVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for custom configuration of Redis
	Configuration *RedisCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *RedisTLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Specifies information necessary for replacing sentinel instances
	Sentinel *RedisSentinelSpec `json:"sentinel,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

RedisOpsRequestSpec is the spec for RedisOpsRequest

func (*RedisOpsRequestSpec) DeepCopy

func (in *RedisOpsRequestSpec) DeepCopy() *RedisOpsRequestSpec

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

func (*RedisOpsRequestSpec) DeepCopyInto

func (in *RedisOpsRequestSpec) DeepCopyInto(out *RedisOpsRequestSpec)

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

type RedisOpsRequestType added in v0.29.0

type RedisOpsRequestType string

+kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;ReplaceSentinel;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, ReplaceSentinel, RotateAuth)

const (
	// RedisOpsRequestTypeUpdateVersion is a RedisOpsRequestType of type UpdateVersion.
	RedisOpsRequestTypeUpdateVersion RedisOpsRequestType = "UpdateVersion"
	// RedisOpsRequestTypeHorizontalScaling is a RedisOpsRequestType of type HorizontalScaling.
	RedisOpsRequestTypeHorizontalScaling RedisOpsRequestType = "HorizontalScaling"
	// RedisOpsRequestTypeVerticalScaling is a RedisOpsRequestType of type VerticalScaling.
	RedisOpsRequestTypeVerticalScaling RedisOpsRequestType = "VerticalScaling"
	// RedisOpsRequestTypeVolumeExpansion is a RedisOpsRequestType of type VolumeExpansion.
	RedisOpsRequestTypeVolumeExpansion RedisOpsRequestType = "VolumeExpansion"
	// RedisOpsRequestTypeRestart is a RedisOpsRequestType of type Restart.
	RedisOpsRequestTypeRestart RedisOpsRequestType = "Restart"
	// RedisOpsRequestTypeReconfigure is a RedisOpsRequestType of type Reconfigure.
	RedisOpsRequestTypeReconfigure RedisOpsRequestType = "Reconfigure"
	// RedisOpsRequestTypeReconfigureTLS is a RedisOpsRequestType of type ReconfigureTLS.
	RedisOpsRequestTypeReconfigureTLS RedisOpsRequestType = "ReconfigureTLS"
	// RedisOpsRequestTypeReplaceSentinel is a RedisOpsRequestType of type ReplaceSentinel.
	RedisOpsRequestTypeReplaceSentinel RedisOpsRequestType = "ReplaceSentinel"
	// RedisOpsRequestTypeRotateAuth is a RedisOpsRequestType of type RotateAuth.
	RedisOpsRequestTypeRotateAuth RedisOpsRequestType = "RotateAuth"
)

func MustParseRedisOpsRequestType added in v0.33.0

func MustParseRedisOpsRequestType(name string) RedisOpsRequestType

MustParseRedisOpsRequestType converts a string to a RedisOpsRequestType, and panics if is not valid.

func ParseRedisOpsRequestType added in v0.33.0

func ParseRedisOpsRequestType(name string) (RedisOpsRequestType, error)

ParseRedisOpsRequestType attempts to convert a string to a RedisOpsRequestType.

func RedisOpsRequestTypeValues added in v0.33.0

func RedisOpsRequestTypeValues() []RedisOpsRequestType

RedisOpsRequestTypeValues returns a list of the values for RedisOpsRequestType

func (RedisOpsRequestType) IsValid added in v0.33.0

func (x RedisOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (RedisOpsRequestType) String added in v0.33.0

func (x RedisOpsRequestType) String() string

String implements the Stringer interface.

type RedisReplicaReadinessCriteria

type RedisReplicaReadinessCriteria struct{}

RedisReplicaReadinessCriteria is the criteria for checking readiness of a Redis pod after updating, horizontal scaling etc.

func (*RedisReplicaReadinessCriteria) DeepCopy

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

func (*RedisReplicaReadinessCriteria) DeepCopyInto

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

type RedisSentinelCustomConfigurationSpec added in v0.29.0

type RedisSentinelCustomConfigurationSpec struct {
	ConfigSecret       *core.LocalObjectReference `json:"configSecret,omitempty"`
	ApplyConfig        map[string]string          `json:"applyConfig,omitempty"`
	RemoveCustomConfig bool                       `json:"removeCustomConfig,omitempty"`
}

func (*RedisSentinelCustomConfigurationSpec) DeepCopy added in v0.29.0

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

func (*RedisSentinelCustomConfigurationSpec) DeepCopyInto added in v0.29.0

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

type RedisSentinelHorizontalScalingSpec added in v0.29.0

type RedisSentinelHorizontalScalingSpec struct {
	// specifies the number of replica for the master
	Replicas *int32 `json:"replicas,omitempty"`
}

func (*RedisSentinelHorizontalScalingSpec) DeepCopy added in v0.29.0

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

func (*RedisSentinelHorizontalScalingSpec) DeepCopyInto added in v0.29.0

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

type RedisSentinelOpsRequest added in v0.29.0

type RedisSentinelOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              RedisSentinelOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus            `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=redissentinelopsrequests,singular=redissentinelopsrequest,shortName=rdsops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (RedisSentinelOpsRequest) CustomResourceDefinition added in v0.29.0

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

func (*RedisSentinelOpsRequest) DeepCopy added in v0.29.0

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

func (*RedisSentinelOpsRequest) DeepCopyInto added in v0.29.0

func (in *RedisSentinelOpsRequest) DeepCopyInto(out *RedisSentinelOpsRequest)

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

func (*RedisSentinelOpsRequest) DeepCopyObject added in v0.29.0

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

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

func (*RedisSentinelOpsRequest) GetDBRefName added in v0.29.0

func (r *RedisSentinelOpsRequest) GetDBRefName() string

func (*RedisSentinelOpsRequest) GetObjectMeta added in v0.29.0

func (r *RedisSentinelOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*RedisSentinelOpsRequest) GetRequestType added in v0.29.0

func (r *RedisSentinelOpsRequest) GetRequestType() any

func (*RedisSentinelOpsRequest) GetStatus added in v0.29.0

func (RedisSentinelOpsRequest) ResourceFQN added in v0.29.0

func (r RedisSentinelOpsRequest) ResourceFQN() string

func (RedisSentinelOpsRequest) ResourceKind added in v0.29.0

func (r RedisSentinelOpsRequest) ResourceKind() string

func (RedisSentinelOpsRequest) ResourcePlural added in v0.29.0

func (r RedisSentinelOpsRequest) ResourcePlural() string

func (RedisSentinelOpsRequest) ResourceShortCode added in v0.29.0

func (r RedisSentinelOpsRequest) ResourceShortCode() string

func (RedisSentinelOpsRequest) ResourceSingular added in v0.29.0

func (r RedisSentinelOpsRequest) ResourceSingular() string

func (*RedisSentinelOpsRequest) SetStatus added in v0.29.0

func (r *RedisSentinelOpsRequest) SetStatus(s OpsRequestStatus)

func (RedisSentinelOpsRequest) ValidateSpecs added in v0.29.0

func (r RedisSentinelOpsRequest) ValidateSpecs() error

type RedisSentinelOpsRequestList added in v0.29.0

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

RedisSentinelOpsRequestList is a list of RedisSentinelOpsRequests

func (*RedisSentinelOpsRequestList) DeepCopy added in v0.29.0

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

func (*RedisSentinelOpsRequestList) DeepCopyInto added in v0.29.0

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

func (*RedisSentinelOpsRequestList) DeepCopyObject added in v0.29.0

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

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

type RedisSentinelOpsRequestSpec added in v0.29.0

type RedisSentinelOpsRequestSpec struct {
	// Specifies the RedisSentinel reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc.
	Type RedisSentinelOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading RedisSentinel
	UpdateVersion *RedisSentinelUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *RedisSentinelHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *RedisSentinelVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for custom configuration of RedisSentinel
	Configuration *RedisSentinelCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *TLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

RedisSentinelOpsRequestSpec is the spec for RedisSentinelOpsRequest

func (*RedisSentinelOpsRequestSpec) DeepCopy added in v0.29.0

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

func (*RedisSentinelOpsRequestSpec) DeepCopyInto added in v0.29.0

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

type RedisSentinelOpsRequestType added in v0.29.0

type RedisSentinelOpsRequestType string

+kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;Restart;Reconfigure;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, Restart, Reconfigure, ReconfigureTLS, RotateAuth)

const (
	// RedisSentinelOpsRequestTypeUpdateVersion is a RedisSentinelOpsRequestType of type UpdateVersion.
	RedisSentinelOpsRequestTypeUpdateVersion RedisSentinelOpsRequestType = "UpdateVersion"
	// RedisSentinelOpsRequestTypeHorizontalScaling is a RedisSentinelOpsRequestType of type HorizontalScaling.
	RedisSentinelOpsRequestTypeHorizontalScaling RedisSentinelOpsRequestType = "HorizontalScaling"
	// RedisSentinelOpsRequestTypeVerticalScaling is a RedisSentinelOpsRequestType of type VerticalScaling.
	RedisSentinelOpsRequestTypeVerticalScaling RedisSentinelOpsRequestType = "VerticalScaling"
	// RedisSentinelOpsRequestTypeRestart is a RedisSentinelOpsRequestType of type Restart.
	RedisSentinelOpsRequestTypeRestart RedisSentinelOpsRequestType = "Restart"
	// RedisSentinelOpsRequestTypeReconfigure is a RedisSentinelOpsRequestType of type Reconfigure.
	RedisSentinelOpsRequestTypeReconfigure RedisSentinelOpsRequestType = "Reconfigure"
	// RedisSentinelOpsRequestTypeReconfigureTLS is a RedisSentinelOpsRequestType of type ReconfigureTLS.
	RedisSentinelOpsRequestTypeReconfigureTLS RedisSentinelOpsRequestType = "ReconfigureTLS"
	// RedisSentinelOpsRequestTypeRotateAuth is a RedisSentinelOpsRequestType of type RotateAuth.
	RedisSentinelOpsRequestTypeRotateAuth RedisSentinelOpsRequestType = "RotateAuth"
)

func MustParseRedisSentinelOpsRequestType added in v0.33.0

func MustParseRedisSentinelOpsRequestType(name string) RedisSentinelOpsRequestType

MustParseRedisSentinelOpsRequestType converts a string to a RedisSentinelOpsRequestType, and panics if is not valid.

func ParseRedisSentinelOpsRequestType added in v0.33.0

func ParseRedisSentinelOpsRequestType(name string) (RedisSentinelOpsRequestType, error)

ParseRedisSentinelOpsRequestType attempts to convert a string to a RedisSentinelOpsRequestType.

func RedisSentinelOpsRequestTypeValues added in v0.33.0

func RedisSentinelOpsRequestTypeValues() []RedisSentinelOpsRequestType

RedisSentinelOpsRequestTypeValues returns a list of the values for RedisSentinelOpsRequestType

func (RedisSentinelOpsRequestType) IsValid added in v0.33.0

func (x RedisSentinelOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (RedisSentinelOpsRequestType) String added in v0.33.0

String implements the Stringer interface.

type RedisSentinelRef added in v0.29.0

type RedisSentinelRef struct {
	// Name of the refereed sentinel
	Name string `json:"name,omitempty"`

	// Namespace where refereed sentinel has been deployed
	Namespace string `json:"namespace,omitempty"`
}

func (*RedisSentinelRef) DeepCopy added in v0.29.0

func (in *RedisSentinelRef) DeepCopy() *RedisSentinelRef

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

func (*RedisSentinelRef) DeepCopyInto added in v0.29.0

func (in *RedisSentinelRef) DeepCopyInto(out *RedisSentinelRef)

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

type RedisSentinelReplicaReadinessCriteria added in v0.29.0

type RedisSentinelReplicaReadinessCriteria struct{}

RedisSentinelReplicaReadinessCriteria is the criteria for checking readiness of a RedisSentinel pod after updating, horizontal scaling etc.

func (*RedisSentinelReplicaReadinessCriteria) DeepCopy added in v0.29.0

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

func (*RedisSentinelReplicaReadinessCriteria) DeepCopyInto added in v0.29.0

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

type RedisSentinelSpec added in v0.29.0

type RedisSentinelSpec struct {
	// Sentinel Ref for new Sentinel which will replace the old sentinel
	Ref *RedisSentinelRef `json:"ref"`
	// +optional
	RemoveUnusedSentinel bool `json:"removeUnusedSentinel,omitempty"`
}

func (*RedisSentinelSpec) DeepCopy added in v0.29.0

func (in *RedisSentinelSpec) DeepCopy() *RedisSentinelSpec

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

func (*RedisSentinelSpec) DeepCopyInto added in v0.29.0

func (in *RedisSentinelSpec) DeepCopyInto(out *RedisSentinelSpec)

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

type RedisSentinelUpdateVersionSpec added in v0.33.0

type RedisSentinelUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion     string                                 `json:"targetVersion,omitempty"`
	ReadinessCriteria *RedisSentinelReplicaReadinessCriteria `json:"readinessCriteria,omitempty"`
}

func (*RedisSentinelUpdateVersionSpec) DeepCopy added in v0.33.0

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

func (*RedisSentinelUpdateVersionSpec) DeepCopyInto added in v0.33.0

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

type RedisSentinelVerticalScalingSpec added in v0.29.0

type RedisSentinelVerticalScalingSpec struct {
	RedisSentinel *PodResources       `json:"redissentinel,omitempty"`
	Exporter      *ContainerResources `json:"exporter,omitempty"`
	Coordinator   *ContainerResources `json:"coordinator,omitempty"`
}

RedisSentinelVerticalScalingSpec is the spec for RedisSentinel vertical scaling

func (*RedisSentinelVerticalScalingSpec) DeepCopy added in v0.29.0

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

func (*RedisSentinelVerticalScalingSpec) DeepCopyInto added in v0.29.0

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

type RedisSentinelVolumeExpansionSpec added in v0.29.0

type RedisSentinelVolumeExpansionSpec struct {
	Mode          VolumeExpansionMode `json:"mode"`
	RedisSentinel *resource.Quantity  `json:"redissentinel,omitempty"`
}

RedisSentinelVolumeExpansionSpec is the spec for RedisSentinel volume expansion

func (*RedisSentinelVolumeExpansionSpec) DeepCopy added in v0.29.0

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

func (*RedisSentinelVolumeExpansionSpec) DeepCopyInto added in v0.29.0

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

type RedisTLSSpec added in v0.29.0

type RedisTLSSpec struct {
	*TLSSpec `json:",inline"`
	// This field is only needed in Redis Sentinel Mode when we add or remove TLS. In Redis Sentinel Mode, both redis instances and
	// sentinel instances either have TLS or don't have TLS. So when want to add TLS to Redis in Sentinel Mode, current sentinel instances don't
	// have TLS enabled, so we need to give a new Sentinel Reference which has TLS enabled and which will monitor the Redis instances when we
	// add TLS to it
	// +optional
	Sentinel *RedisSentinelSpec `json:"sentinel,omitempty"`
}

func (*RedisTLSSpec) DeepCopy added in v0.29.0

func (in *RedisTLSSpec) DeepCopy() *RedisTLSSpec

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

func (*RedisTLSSpec) DeepCopyInto added in v0.29.0

func (in *RedisTLSSpec) DeepCopyInto(out *RedisTLSSpec)

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

type RedisUpdateVersionSpec added in v0.33.0

type RedisUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion     string                         `json:"targetVersion,omitempty"`
	ReadinessCriteria *RedisReplicaReadinessCriteria `json:"readinessCriteria,omitempty"`
}

func (*RedisUpdateVersionSpec) DeepCopy added in v0.33.0

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

func (*RedisUpdateVersionSpec) DeepCopyInto added in v0.33.0

func (in *RedisUpdateVersionSpec) DeepCopyInto(out *RedisUpdateVersionSpec)

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

type RedisVerticalScalingSpec

type RedisVerticalScalingSpec struct {
	Redis       *PodResources       `json:"redis,omitempty"`
	Exporter    *ContainerResources `json:"exporter,omitempty"`
	Coordinator *ContainerResources `json:"coordinator,omitempty"`
}

RedisVerticalScalingSpec is the spec for Redis vertical scaling

func (*RedisVerticalScalingSpec) DeepCopy

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

func (*RedisVerticalScalingSpec) DeepCopyInto

func (in *RedisVerticalScalingSpec) DeepCopyInto(out *RedisVerticalScalingSpec)

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

type RedisVolumeExpansionSpec

type RedisVolumeExpansionSpec struct {
	Mode  VolumeExpansionMode `json:"mode"`
	Redis *resource.Quantity  `json:"redis,omitempty"`
}

RedisVolumeExpansionSpec is the spec for Redis volume expansion

func (*RedisVolumeExpansionSpec) DeepCopy

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

func (*RedisVolumeExpansionSpec) DeepCopyInto

func (in *RedisVolumeExpansionSpec) DeepCopyInto(out *RedisVolumeExpansionSpec)

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

type Reprovision added in v0.25.0

type Reprovision struct{}

func (*Reprovision) DeepCopy added in v0.25.0

func (in *Reprovision) DeepCopy() *Reprovision

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

func (*Reprovision) DeepCopyInto added in v0.25.0

func (in *Reprovision) DeepCopyInto(out *Reprovision)

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

type RestartSpec

type RestartSpec struct{}

func (*RestartSpec) DeepCopy

func (in *RestartSpec) DeepCopy() *RestartSpec

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

func (*RestartSpec) DeepCopyInto

func (in *RestartSpec) DeepCopyInto(out *RestartSpec)

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

type SinglestoreCustomConfiguration added in v0.46.0

type SinglestoreCustomConfiguration struct {
	ConfigSecret       *core.LocalObjectReference `json:"configSecret,omitempty"`
	ApplyConfig        map[string]string          `json:"applyConfig,omitempty"`
	RemoveCustomConfig bool                       `json:"removeCustomConfig,omitempty"`
}

func (*SinglestoreCustomConfiguration) DeepCopy added in v0.46.0

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

func (*SinglestoreCustomConfiguration) DeepCopyInto added in v0.46.0

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

type SinglestoreCustomConfigurationSpec added in v0.46.0

type SinglestoreCustomConfigurationSpec struct {
	// Custom Configuration specification for standalone
	Node *SinglestoreCustomConfiguration `json:"node,omitempty"`
	// Custom Configuration specification for Aggregator
	Aggregator *SinglestoreCustomConfiguration `json:"aggregator,omitempty"`
	// Custom Configuration specification for Leaf
	Leaf *SinglestoreCustomConfiguration `json:"leaf,omitempty"`
}

SinglestoreCustomConfigurationSpec is the spec for Singlestore reconfiguration

func (*SinglestoreCustomConfigurationSpec) DeepCopy added in v0.46.0

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

func (*SinglestoreCustomConfigurationSpec) DeepCopyInto added in v0.46.0

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

type SinglestoreHorizontalScalingSpec added in v0.47.0

type SinglestoreHorizontalScalingSpec struct {
	// number of Aggregator node
	Aggregator *int32 `json:"aggregator,omitempty"`
	// number of Leaf node
	Leaf *int32 `json:"leaf,omitempty"`
}

SinglestoreHorizontalScalingSpec contains the horizontal scaling information of a Singlestore cluster

func (*SinglestoreHorizontalScalingSpec) DeepCopy added in v0.47.0

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

func (*SinglestoreHorizontalScalingSpec) DeepCopyInto added in v0.47.0

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

type SinglestoreOpsRequest added in v0.46.0

type SinglestoreOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SinglestoreOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus          `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=singlestoreopsrequests,singular=singlestoreopsrequest,shortName=sdbops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*SinglestoreOpsRequest) CustomResourceDefinition added in v0.46.0

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

func (*SinglestoreOpsRequest) DeepCopy added in v0.46.0

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

func (*SinglestoreOpsRequest) DeepCopyInto added in v0.46.0

func (in *SinglestoreOpsRequest) DeepCopyInto(out *SinglestoreOpsRequest)

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

func (*SinglestoreOpsRequest) DeepCopyObject added in v0.46.0

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

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

func (*SinglestoreOpsRequest) GetDBRefName added in v0.46.0

func (r *SinglestoreOpsRequest) GetDBRefName() string

func (*SinglestoreOpsRequest) GetObjectMeta added in v0.46.0

func (r *SinglestoreOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*SinglestoreOpsRequest) GetRequestType added in v0.46.0

func (r *SinglestoreOpsRequest) GetRequestType() any

func (*SinglestoreOpsRequest) GetStatus added in v0.46.0

func (r *SinglestoreOpsRequest) GetStatus() OpsRequestStatus

func (*SinglestoreOpsRequest) ResourceFQN added in v0.46.0

func (r *SinglestoreOpsRequest) ResourceFQN() string

func (*SinglestoreOpsRequest) ResourceKind added in v0.46.0

func (r *SinglestoreOpsRequest) ResourceKind() string

func (*SinglestoreOpsRequest) ResourcePlural added in v0.46.0

func (r *SinglestoreOpsRequest) ResourcePlural() string

func (*SinglestoreOpsRequest) ResourceShortCode added in v0.46.0

func (r *SinglestoreOpsRequest) ResourceShortCode() string

func (*SinglestoreOpsRequest) ResourceSingular added in v0.46.0

func (r *SinglestoreOpsRequest) ResourceSingular() string

func (*SinglestoreOpsRequest) SetStatus added in v0.46.0

func (r *SinglestoreOpsRequest) SetStatus(s OpsRequestStatus)

type SinglestoreOpsRequestList added in v0.46.0

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

SinglestoreOpsRequestList is a list of SinglestoreOpsRequests

func (*SinglestoreOpsRequestList) DeepCopy added in v0.46.0

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

func (*SinglestoreOpsRequestList) DeepCopyInto added in v0.46.0

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

func (*SinglestoreOpsRequestList) DeepCopyObject added in v0.46.0

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

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

type SinglestoreOpsRequestSpec added in v0.46.0

type SinglestoreOpsRequestSpec struct {
	// Specifies the Singlestore reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc.
	Type SinglestoreOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading SingleStore Version
	UpdateVersion *SinglestoreUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *SinglestoreHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *SinglestoreVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *SinglestoreVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Specifies information necessary for custom configuration of Singlestore
	Configuration *SinglestoreCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *TLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

SinglestoreOpsRequestSpec is the spec for SinglestoreOpsRequest

func (*SinglestoreOpsRequestSpec) DeepCopy added in v0.46.0

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

func (*SinglestoreOpsRequestSpec) DeepCopyInto added in v0.46.0

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

type SinglestoreOpsRequestType added in v0.46.0

type SinglestoreOpsRequestType string

+kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth)

const (
	// SinglestoreOpsRequestTypeUpdateVersion is a SinglestoreOpsRequestType of type UpdateVersion.
	SinglestoreOpsRequestTypeUpdateVersion SinglestoreOpsRequestType = "UpdateVersion"
	// SinglestoreOpsRequestTypeHorizontalScaling is a SinglestoreOpsRequestType of type HorizontalScaling.
	SinglestoreOpsRequestTypeHorizontalScaling SinglestoreOpsRequestType = "HorizontalScaling"
	// SinglestoreOpsRequestTypeVerticalScaling is a SinglestoreOpsRequestType of type VerticalScaling.
	SinglestoreOpsRequestTypeVerticalScaling SinglestoreOpsRequestType = "VerticalScaling"
	// SinglestoreOpsRequestTypeVolumeExpansion is a SinglestoreOpsRequestType of type VolumeExpansion.
	SinglestoreOpsRequestTypeVolumeExpansion SinglestoreOpsRequestType = "VolumeExpansion"
	// SinglestoreOpsRequestTypeRestart is a SinglestoreOpsRequestType of type Restart.
	SinglestoreOpsRequestTypeRestart SinglestoreOpsRequestType = "Restart"
	// SinglestoreOpsRequestTypeReconfigure is a SinglestoreOpsRequestType of type Reconfigure.
	SinglestoreOpsRequestTypeReconfigure SinglestoreOpsRequestType = "Reconfigure"
	// SinglestoreOpsRequestTypeReconfigureTLS is a SinglestoreOpsRequestType of type ReconfigureTLS.
	SinglestoreOpsRequestTypeReconfigureTLS SinglestoreOpsRequestType = "ReconfigureTLS"
	// SinglestoreOpsRequestTypeRotateAuth is a SinglestoreOpsRequestType of type RotateAuth.
	SinglestoreOpsRequestTypeRotateAuth SinglestoreOpsRequestType = "RotateAuth"
)

func MustParseSinglestoreOpsRequestType added in v0.46.0

func MustParseSinglestoreOpsRequestType(name string) SinglestoreOpsRequestType

MustParseSinglestoreOpsRequestType converts a string to a SinglestoreOpsRequestType, and panics if is not valid.

func ParseSinglestoreOpsRequestType added in v0.46.0

func ParseSinglestoreOpsRequestType(name string) (SinglestoreOpsRequestType, error)

ParseSinglestoreOpsRequestType attempts to convert a string to a SinglestoreOpsRequestType.

func SinglestoreOpsRequestTypeValues added in v0.46.0

func SinglestoreOpsRequestTypeValues() []SinglestoreOpsRequestType

SinglestoreOpsRequestTypeValues returns a list of the values for SinglestoreOpsRequestType

func (SinglestoreOpsRequestType) IsValid added in v0.46.0

func (x SinglestoreOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (SinglestoreOpsRequestType) String added in v0.46.0

func (x SinglestoreOpsRequestType) String() string

String implements the Stringer interface.

type SinglestoreUpdateVersionSpec added in v0.47.0

type SinglestoreUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion string `json:"targetVersion,omitempty"`
}

SinglestoreUpdateVersionSpec contains the update version information of a kafka cluster

func (*SinglestoreUpdateVersionSpec) DeepCopy added in v0.47.0

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

func (*SinglestoreUpdateVersionSpec) DeepCopyInto added in v0.47.0

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

type SinglestoreVerticalScalingSpec added in v0.46.0

type SinglestoreVerticalScalingSpec struct {
	// Resource spec for standalone node
	Node *PodResources `json:"node,omitempty"`
	// Resource spec for Aggregator
	Aggregator *PodResources `json:"aggregator,omitempty"`
	// Resource spec for Leaf
	Leaf *PodResources `json:"leaf,omitempty"`
	// Resource spec for Coordinator container
	Coordinator *ContainerResources `json:"coordinator,omitempty"`
}

SinglestoreVerticalScalingSpec contains the vertical scaling information of a Singlestore cluster

func (*SinglestoreVerticalScalingSpec) DeepCopy added in v0.46.0

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

func (*SinglestoreVerticalScalingSpec) DeepCopyInto added in v0.46.0

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

type SinglestoreVolumeExpansionSpec added in v0.46.0

type SinglestoreVolumeExpansionSpec struct {
	Mode VolumeExpansionMode `json:"mode"`
	// Volume specification for standalone
	Node *resource.Quantity `json:"node,omitempty"`
	// Volume specification for Aggregator
	Aggregator *resource.Quantity `json:"aggregator,omitempty"`
	// Volume specification for Leaf
	Leaf *resource.Quantity `json:"leaf,omitempty"`
}

SinglestoreVolumeExpansionSpec is the spec for Singlestore volume expansion

func (*SinglestoreVolumeExpansionSpec) DeepCopy added in v0.46.0

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

func (*SinglestoreVolumeExpansionSpec) DeepCopyInto added in v0.46.0

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

type SolrCustomConfigurationSpec added in v0.47.0

type SolrCustomConfigurationSpec struct {
	// ConfigSecret is an optional field to provide custom configuration file for database.
	// +optional
	ConfigSecret *core.LocalObjectReference `json:"configSecret,omitempty"`
	// ApplyConfig is an optional field to provide solr configuration.
	// Provided configuration will be applied to config files stored in ConfigSecret.
	// If the ConfigSecret is missing, the operator will create a new k8s secret by the
	// following naming convention: {db-name}-user-config .
	// Expected input format:
	//	applyConfig:
	//		solr.xml: |
	//			key=value
	// +optional
	ApplyConfig map[string]string `json:"applyConfig,omitempty"`
	// If set to "true", the user provided configuration will be removed.
	// The solr cluster will start will default configuration that is generated by the operator.
	// +optional
	RemoveCustomConfig bool `json:"removeCustomConfig,omitempty"`
}

SolrCustomConfigurationSpec is the spec for Reconfiguring the solr Settings

func (*SolrCustomConfigurationSpec) DeepCopy added in v0.47.0

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

func (*SolrCustomConfigurationSpec) DeepCopyInto added in v0.47.0

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

type SolrHorizontalScalingSpec added in v0.48.0

type SolrHorizontalScalingSpec struct {
	// Number of combined (i.e. overseer, data, coordinator) node
	Node *int32 `json:"node,omitempty"`
	// Number of master nodes
	Overseer *int32 `json:"overseer,omitempty"`
	// Number of ingest nodes
	Coordinator *int32 `json:"coordinator,omitempty"`
	// Number of data nodes
	Data *int32 `json:"data,omitempty"`
}

func (*SolrHorizontalScalingSpec) DeepCopy added in v0.48.0

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

func (*SolrHorizontalScalingSpec) DeepCopyInto added in v0.48.0

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

type SolrOpsRequest added in v0.47.0

type SolrOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SolrOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus   `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=solropsrequests,singular=solropsrequest,shortName=slops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*SolrOpsRequest) CustomResourceDefinition added in v0.47.0

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

func (*SolrOpsRequest) DeepCopy added in v0.47.0

func (in *SolrOpsRequest) DeepCopy() *SolrOpsRequest

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

func (*SolrOpsRequest) DeepCopyInto added in v0.47.0

func (in *SolrOpsRequest) DeepCopyInto(out *SolrOpsRequest)

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

func (*SolrOpsRequest) DeepCopyObject added in v0.47.0

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

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

func (*SolrOpsRequest) GetDBRefName added in v0.47.0

func (s *SolrOpsRequest) GetDBRefName() string

func (*SolrOpsRequest) GetObjectMeta added in v0.47.0

func (s *SolrOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*SolrOpsRequest) GetRequestType added in v0.47.0

func (s *SolrOpsRequest) GetRequestType() any

func (*SolrOpsRequest) GetStatus added in v0.47.0

func (s *SolrOpsRequest) GetStatus() OpsRequestStatus

func (*SolrOpsRequest) ResourceFQN added in v0.47.0

func (s *SolrOpsRequest) ResourceFQN() string

func (*SolrOpsRequest) ResourceKind added in v0.47.0

func (s *SolrOpsRequest) ResourceKind() string

func (*SolrOpsRequest) ResourcePlural added in v0.47.0

func (s *SolrOpsRequest) ResourcePlural() string

func (*SolrOpsRequest) ResourceShortCode added in v0.47.0

func (s *SolrOpsRequest) ResourceShortCode() string

func (*SolrOpsRequest) ResourceSingular added in v0.47.0

func (s *SolrOpsRequest) ResourceSingular() string

func (*SolrOpsRequest) SetStatus added in v0.47.0

func (s *SolrOpsRequest) SetStatus(st OpsRequestStatus)

type SolrOpsRequestList added in v0.47.0

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

SolrOpsRequestList is a list of DruidOpsRequests

func (*SolrOpsRequestList) DeepCopy added in v0.47.0

func (in *SolrOpsRequestList) DeepCopy() *SolrOpsRequestList

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

func (*SolrOpsRequestList) DeepCopyInto added in v0.47.0

func (in *SolrOpsRequestList) DeepCopyInto(out *SolrOpsRequestList)

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

func (*SolrOpsRequestList) DeepCopyObject added in v0.47.0

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

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

type SolrOpsRequestSpec added in v0.47.0

type SolrOpsRequestSpec struct {
	// Specifies the Druid reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc.
	Type SolrOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading Solr
	UpdateVersion *SolrUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *SolrHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *SolrVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *SolrVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Specifies information necessary for custom configuration of solr
	Configuration *SolrCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *TLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

SolrOpsRequestSpec is the spec for SolrOpsRequest

func (*SolrOpsRequestSpec) DeepCopy added in v0.47.0

func (in *SolrOpsRequestSpec) DeepCopy() *SolrOpsRequestSpec

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

func (*SolrOpsRequestSpec) DeepCopyInto added in v0.47.0

func (in *SolrOpsRequestSpec) DeepCopyInto(out *SolrOpsRequestSpec)

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

type SolrOpsRequestType added in v0.47.0

type SolrOpsRequestType string

+kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Reconfigure;Restart;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Reconfigure, Restart, ReconfigureTLS, RotateAuth)

const (
	// SolrOpsRequestTypeUpdateVersion is a SolrOpsRequestType of type UpdateVersion.
	SolrOpsRequestTypeUpdateVersion SolrOpsRequestType = "UpdateVersion"
	// SolrOpsRequestTypeHorizontalScaling is a SolrOpsRequestType of type HorizontalScaling.
	SolrOpsRequestTypeHorizontalScaling SolrOpsRequestType = "HorizontalScaling"
	// SolrOpsRequestTypeVerticalScaling is a SolrOpsRequestType of type VerticalScaling.
	SolrOpsRequestTypeVerticalScaling SolrOpsRequestType = "VerticalScaling"
	// SolrOpsRequestTypeVolumeExpansion is a SolrOpsRequestType of type VolumeExpansion.
	SolrOpsRequestTypeVolumeExpansion SolrOpsRequestType = "VolumeExpansion"
	// SolrOpsRequestTypeReconfigure is a SolrOpsRequestType of type Reconfigure.
	SolrOpsRequestTypeReconfigure SolrOpsRequestType = "Reconfigure"
	// SolrOpsRequestTypeRestart is a SolrOpsRequestType of type Restart.
	SolrOpsRequestTypeRestart SolrOpsRequestType = "Restart"
	// SolrOpsRequestTypeReconfigureTLS is a SolrOpsRequestType of type ReconfigureTLS.
	SolrOpsRequestTypeReconfigureTLS SolrOpsRequestType = "ReconfigureTLS"
	// SolrOpsRequestTypeRotateAuth is a SolrOpsRequestType of type RotateAuth.
	SolrOpsRequestTypeRotateAuth SolrOpsRequestType = "RotateAuth"
)

func MustParseSolrOpsRequestType added in v0.47.0

func MustParseSolrOpsRequestType(name string) SolrOpsRequestType

MustParseSolrOpsRequestType converts a string to a SolrOpsRequestType, and panics if is not valid.

func ParseSolrOpsRequestType added in v0.47.0

func ParseSolrOpsRequestType(name string) (SolrOpsRequestType, error)

ParseSolrOpsRequestType attempts to convert a string to a SolrOpsRequestType.

func SolrOpsRequestTypeValues added in v0.47.0

func SolrOpsRequestTypeValues() []SolrOpsRequestType

SolrOpsRequestTypeValues returns a list of the values for SolrOpsRequestType

func (SolrOpsRequestType) IsValid added in v0.47.0

func (x SolrOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (SolrOpsRequestType) String added in v0.47.0

func (x SolrOpsRequestType) String() string

String implements the Stringer interface.

type SolrUpdateVersionSpec added in v0.47.0

type SolrUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion string `json:"targetVersion,omitempty"`
}

func (*SolrUpdateVersionSpec) DeepCopy added in v0.47.0

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

func (*SolrUpdateVersionSpec) DeepCopyInto added in v0.47.0

func (in *SolrUpdateVersionSpec) DeepCopyInto(out *SolrUpdateVersionSpec)

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

type SolrVerticalScalingSpec added in v0.47.0

type SolrVerticalScalingSpec struct {
	// Resource spec for combined nodes
	Node *PodResources `json:"node,omitempty"`
	// Resource spec for data nodes
	Data *PodResources `json:"data,omitempty"`
	// Resource spec for overseer nodes
	Overseer *PodResources `json:"overseer,omitempty"`
	// Resource spec for overseer nodes
	Coordinator *PodResources `json:"coordinator,omitempty"`
}

func (*SolrVerticalScalingSpec) DeepCopy added in v0.47.0

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

func (*SolrVerticalScalingSpec) DeepCopyInto added in v0.47.0

func (in *SolrVerticalScalingSpec) DeepCopyInto(out *SolrVerticalScalingSpec)

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

type SolrVolumeExpansionSpec added in v0.47.0

type SolrVolumeExpansionSpec struct {
	Mode VolumeExpansionMode `json:"mode"`
	// volume specification for combined nodes
	Node *resource.Quantity `json:"node,omitempty"`
	// volume specification for data nodes
	Data *resource.Quantity `json:"data,omitempty"`
	// volume specification for overseer nodes
	Overseer *resource.Quantity `json:"overseer,omitempty"`
	// volume specification for overseer nodes
	Coordinator *resource.Quantity `json:"coordinator,omitempty"`
}

func (*SolrVolumeExpansionSpec) DeepCopy added in v0.47.0

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

func (*SolrVolumeExpansionSpec) DeepCopyInto added in v0.47.0

func (in *SolrVolumeExpansionSpec) DeepCopyInto(out *SolrVolumeExpansionSpec)

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

type TLSSpec

type TLSSpec struct {
	// TLSConfig contains updated tls configurations for client and server.
	// +optional
	kmapi.TLSConfig `json:",inline,omitempty"`

	// RotateCertificates tells operator to initiate certificate rotation
	// +optional
	RotateCertificates bool `json:"rotateCertificates,omitempty"`

	// Remove tells operator to remove TLS configuration
	// +optional
	Remove bool `json:"remove,omitempty"`
}

func (*TLSSpec) DeepCopy

func (in *TLSSpec) DeepCopy() *TLSSpec

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

func (*TLSSpec) DeepCopyInto

func (in *TLSSpec) DeepCopyInto(out *TLSSpec)

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

type Topology added in v0.39.0

type Topology struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Topology is the spec for placement of pods onto nodes

func (*Topology) DeepCopy added in v0.39.0

func (in *Topology) DeepCopy() *Topology

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

func (*Topology) DeepCopyInto added in v0.39.0

func (in *Topology) DeepCopyInto(out *Topology)

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

type VolumeExpansionMode added in v0.22.0

type VolumeExpansionMode string

+kubebuilder:validation:Enum=Offline;Online

const (
	// used to define a Online volume expansion mode
	VolumeExpansionModeOnline VolumeExpansionMode = "Online"
	// used to define a Offline volume expansion mode
	VolumeExpansionModeOffline VolumeExpansionMode = "Offline"
)

type ZooKeeperCustomConfigurationSpec added in v0.48.0

type ZooKeeperCustomConfigurationSpec struct {
	// ConfigSecret is an optional field to provide custom configuration file for database.
	// +optional
	ConfigSecret *core.LocalObjectReference `json:"configSecret,omitempty"`
	// ApplyConfig is an optional field to provide zookeeper configuration.
	// Provided configuration will be applied to config files stored in ConfigSecret.
	// If the ConfigSecret is missing, the operator will create a new k8s secret by the
	// following naming convention: {db-name}-user-config .
	// Expected input format:
	//	applyConfig:
	//		zookeeper.conf: |
	//			key=value
	// +optional
	ApplyConfig map[string]string `json:"applyConfig,omitempty"`
	// If set to "true", the user provided configuration will be removed.
	// The zookeeper cluster will start will default configuration that is generated by the operator.
	// +optional
	RemoveCustomConfig bool `json:"removeCustomConfig,omitempty"`
}

ZooKeeperCustomConfigurationSpec is the spec for Reconfiguring the zookeeper Settings

func (*ZooKeeperCustomConfigurationSpec) DeepCopy added in v0.48.0

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

func (*ZooKeeperCustomConfigurationSpec) DeepCopyInto added in v0.48.0

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

type ZooKeeperHorizontalScalingSpec added in v0.48.0

type ZooKeeperHorizontalScalingSpec struct {
	// Number of replicas
	Replicas *int32 `json:"replicas,omitempty"`
}

ZooKeeperHorizontalScalingSpec contains the horizontal scaling information of a ZooKeeper cluster

func (*ZooKeeperHorizontalScalingSpec) DeepCopy added in v0.48.0

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

func (*ZooKeeperHorizontalScalingSpec) DeepCopyInto added in v0.48.0

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

type ZooKeeperOpsRequest added in v0.47.0

type ZooKeeperOpsRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ZooKeeperOpsRequestSpec `json:"spec,omitempty"`
	Status            OpsRequestStatus        `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=zookeeperopsrequests,singular=zookeeperopsrequest,shortName=zkops,categories={ops,kubedb,appscode} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*ZooKeeperOpsRequest) CustomResourceDefinition added in v0.47.0

func (z *ZooKeeperOpsRequest) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*ZooKeeperOpsRequest) DeepCopy added in v0.47.0

func (in *ZooKeeperOpsRequest) DeepCopy() *ZooKeeperOpsRequest

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

func (*ZooKeeperOpsRequest) DeepCopyInto added in v0.47.0

func (in *ZooKeeperOpsRequest) DeepCopyInto(out *ZooKeeperOpsRequest)

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

func (*ZooKeeperOpsRequest) DeepCopyObject added in v0.47.0

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

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

func (*ZooKeeperOpsRequest) GetDBRefName added in v0.47.0

func (z *ZooKeeperOpsRequest) GetDBRefName() string

func (*ZooKeeperOpsRequest) GetObjectMeta added in v0.47.0

func (z *ZooKeeperOpsRequest) GetObjectMeta() metav1.ObjectMeta

func (*ZooKeeperOpsRequest) GetRequestType added in v0.47.0

func (z *ZooKeeperOpsRequest) GetRequestType() any

func (*ZooKeeperOpsRequest) GetStatus added in v0.47.0

func (z *ZooKeeperOpsRequest) GetStatus() OpsRequestStatus

func (*ZooKeeperOpsRequest) ResourceFQN added in v0.47.0

func (z *ZooKeeperOpsRequest) ResourceFQN() string

func (*ZooKeeperOpsRequest) ResourceKind added in v0.47.0

func (z *ZooKeeperOpsRequest) ResourceKind() string

func (*ZooKeeperOpsRequest) ResourcePlural added in v0.47.0

func (z *ZooKeeperOpsRequest) ResourcePlural() string

func (*ZooKeeperOpsRequest) ResourceShortCode added in v0.47.0

func (z *ZooKeeperOpsRequest) ResourceShortCode() string

func (*ZooKeeperOpsRequest) ResourceSingular added in v0.47.0

func (z *ZooKeeperOpsRequest) ResourceSingular() string

func (*ZooKeeperOpsRequest) SetStatus added in v0.47.0

func (z *ZooKeeperOpsRequest) SetStatus(st OpsRequestStatus)

type ZooKeeperOpsRequestList added in v0.47.0

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

ZooKeeperOpsRequestList is a list of ZooKeeperOpsRequests

func (*ZooKeeperOpsRequestList) DeepCopy added in v0.47.0

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

func (*ZooKeeperOpsRequestList) DeepCopyInto added in v0.47.0

func (in *ZooKeeperOpsRequestList) DeepCopyInto(out *ZooKeeperOpsRequestList)

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

func (*ZooKeeperOpsRequestList) DeepCopyObject added in v0.47.0

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

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

type ZooKeeperOpsRequestSpec added in v0.47.0

type ZooKeeperOpsRequestSpec struct {
	// Specifies the ZooKeeper reference
	DatabaseRef core.LocalObjectReference `json:"databaseRef"`
	// Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc.
	Type ZooKeeperOpsRequestType `json:"type"`
	// Specifies information necessary for upgrading zookeeper
	UpdateVersion *ZooKeeperUpdateVersionSpec `json:"updateVersion,omitempty"`
	// Specifies information necessary for horizontal scaling
	HorizontalScaling *ZooKeeperHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
	// Specifies information necessary for vertical scaling
	VerticalScaling *ZooKeeperVerticalScalingSpec `json:"verticalScaling,omitempty"`
	// Specifies information necessary for volume expansion
	VolumeExpansion *ZooKeeperVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
	// Specifies information necessary for custom configuration of zookeeper
	Configuration *ZooKeeperCustomConfigurationSpec `json:"configuration,omitempty"`
	// Specifies information necessary for configuring authSecret of the database
	Authentication *AuthSpec `json:"authentication,omitempty"`
	// Specifies information necessary for configuring TLS
	TLS *TLSSpec `json:"tls,omitempty"`
	// Specifies information necessary for restarting database
	Restart *RestartSpec `json:"restart,omitempty"`
	// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// ApplyOption is to control the execution of OpsRequest depending on the database state.
	// +kubebuilder:default="IfReady"
	Apply ApplyOption `json:"apply,omitempty"`
}

ZooKeeperOpsRequestSpec is the spec for ZooKeeperOpsRequest

func (*ZooKeeperOpsRequestSpec) DeepCopy added in v0.47.0

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

func (*ZooKeeperOpsRequestSpec) DeepCopyInto added in v0.47.0

func (in *ZooKeeperOpsRequestSpec) DeepCopyInto(out *ZooKeeperOpsRequestSpec)

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

type ZooKeeperOpsRequestType added in v0.47.0

type ZooKeeperOpsRequestType string

+kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth)

const (
	// ZooKeeperOpsRequestTypeUpdateVersion is a ZooKeeperOpsRequestType of type UpdateVersion.
	ZooKeeperOpsRequestTypeUpdateVersion ZooKeeperOpsRequestType = "UpdateVersion"
	// ZooKeeperOpsRequestTypeHorizontalScaling is a ZooKeeperOpsRequestType of type HorizontalScaling.
	ZooKeeperOpsRequestTypeHorizontalScaling ZooKeeperOpsRequestType = "HorizontalScaling"
	// ZooKeeperOpsRequestTypeVerticalScaling is a ZooKeeperOpsRequestType of type VerticalScaling.
	ZooKeeperOpsRequestTypeVerticalScaling ZooKeeperOpsRequestType = "VerticalScaling"
	// ZooKeeperOpsRequestTypeVolumeExpansion is a ZooKeeperOpsRequestType of type VolumeExpansion.
	ZooKeeperOpsRequestTypeVolumeExpansion ZooKeeperOpsRequestType = "VolumeExpansion"
	// ZooKeeperOpsRequestTypeRestart is a ZooKeeperOpsRequestType of type Restart.
	ZooKeeperOpsRequestTypeRestart ZooKeeperOpsRequestType = "Restart"
	// ZooKeeperOpsRequestTypeReconfigure is a ZooKeeperOpsRequestType of type Reconfigure.
	ZooKeeperOpsRequestTypeReconfigure ZooKeeperOpsRequestType = "Reconfigure"
	// ZooKeeperOpsRequestTypeReconfigureTLS is a ZooKeeperOpsRequestType of type ReconfigureTLS.
	ZooKeeperOpsRequestTypeReconfigureTLS ZooKeeperOpsRequestType = "ReconfigureTLS"
	// ZooKeeperOpsRequestTypeRotateAuth is a ZooKeeperOpsRequestType of type RotateAuth.
	ZooKeeperOpsRequestTypeRotateAuth ZooKeeperOpsRequestType = "RotateAuth"
)

func MustParseZooKeeperOpsRequestType added in v0.47.0

func MustParseZooKeeperOpsRequestType(name string) ZooKeeperOpsRequestType

MustParseZooKeeperOpsRequestType converts a string to a ZooKeeperOpsRequestType, and panics if is not valid.

func ParseZooKeeperOpsRequestType added in v0.47.0

func ParseZooKeeperOpsRequestType(name string) (ZooKeeperOpsRequestType, error)

ParseZooKeeperOpsRequestType attempts to convert a string to a ZooKeeperOpsRequestType.

func ZooKeeperOpsRequestTypeValues added in v0.47.0

func ZooKeeperOpsRequestTypeValues() []ZooKeeperOpsRequestType

ZooKeeperOpsRequestTypeValues returns a list of the values for ZooKeeperOpsRequestType

func (ZooKeeperOpsRequestType) IsValid added in v0.47.0

func (x ZooKeeperOpsRequestType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (ZooKeeperOpsRequestType) String added in v0.47.0

func (x ZooKeeperOpsRequestType) String() string

String implements the Stringer interface.

type ZooKeeperReplicaReadinessCriteria added in v0.48.0

type ZooKeeperReplicaReadinessCriteria struct{}

ZooKeeperReplicaReadinessCriteria is the criteria for checking readiness of a ZooKeeper pod after updating, horizontal scaling etc.

func (*ZooKeeperReplicaReadinessCriteria) DeepCopy added in v0.48.0

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

func (*ZooKeeperReplicaReadinessCriteria) DeepCopyInto added in v0.48.0

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

type ZooKeeperUpdateVersionSpec added in v0.48.0

type ZooKeeperUpdateVersionSpec struct {
	// Specifies the target version name from catalog
	TargetVersion string `json:"targetVersion,omitempty"`
}

ZooKeeperpdateVersionSpec contains the update version information of a zookeeper cluster

func (*ZooKeeperUpdateVersionSpec) DeepCopy added in v0.48.0

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

func (*ZooKeeperUpdateVersionSpec) DeepCopyInto added in v0.48.0

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

type ZooKeeperVerticalScalingSpec added in v0.48.0

type ZooKeeperVerticalScalingSpec struct {
	// Resource spec for nodes
	Node *PodResources `json:"node,omitempty"`
}

ZooKeeperVerticalScalingSpec contains the vertical scaling information of a ZooKeeper cluster

func (*ZooKeeperVerticalScalingSpec) DeepCopy added in v0.48.0

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

func (*ZooKeeperVerticalScalingSpec) DeepCopyInto added in v0.48.0

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

type ZooKeeperVolumeExpansionSpec added in v0.48.0

type ZooKeeperVolumeExpansionSpec struct {
	Mode VolumeExpansionMode `json:"mode"`
	// volume specification for nodes
	Node *resource.Quantity `json:"node,omitempty"`
}

ZooKeeperVolumeExpansionSpec is the spec for ZooKeeper volume expansion

func (*ZooKeeperVolumeExpansionSpec) DeepCopy added in v0.48.0

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

func (*ZooKeeperVolumeExpansionSpec) DeepCopyInto added in v0.48.0

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

Source Files

Jump to

Keyboard shortcuts

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