Skip to content

Commit 2be8184

Browse files
authored
Prepare for release v0.64.0 (#823)
ProductLine: KubeDB Release: v2026.4.27 Release-tracker: kubedb/CHANGELOG#133 Signed-off-by: 1gtm <1gtm@appscode.com>
1 parent 7132dd0 commit 2be8184

15 files changed

Lines changed: 215 additions & 32 deletions

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ require (
2727
kmodules.xyz/client-go v0.34.3
2828
kmodules.xyz/custom-resources v0.34.0
2929
kmodules.xyz/monitoring-agent-api v0.34.1
30-
kubedb.dev/apimachinery v0.64.0-rc.0
31-
kubedb.dev/db-client-go v0.19.0-rc.0
30+
kubedb.dev/apimachinery v0.64.0
31+
kubedb.dev/db-client-go v0.19.0
3232
kubeops.dev/petset v0.0.15
3333
sigs.k8s.io/controller-runtime v0.22.4
3434
sigs.k8s.io/yaml v1.6.0
@@ -171,7 +171,7 @@ require (
171171
kubeops.dev/csi-driver-cacerts v0.5.0 // indirect
172172
kubeops.dev/operator-shard-manager v0.0.5 // indirect
173173
kubeops.dev/sidekick v0.0.12 // indirect
174-
kubestash.dev/apimachinery v0.27.0-rc.0 // indirect
174+
kubestash.dev/apimachinery v0.27.0 // indirect
175175
open-cluster-management.io/api v1.2.0 // indirect
176176
sigs.k8s.io/gateway-api v1.4.0 // indirect
177177
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -748,10 +748,10 @@ kmodules.xyz/prober v0.34.0 h1:ElZkZYCjLaytAA0M8EH42To7i9gh1IIX+d0qfaIohys=
748748
kmodules.xyz/prober v0.34.0/go.mod h1:rsu/fxxfNxY70GDbH6Ju8G66459hi7AhWSSBoiIp8ic=
749749
kmodules.xyz/resource-metadata v0.42.4 h1:nFVo+PKmwWdzVwk7U3VZuKBQj3tPo6fyY5BC7gE2OB8=
750750
kmodules.xyz/resource-metadata v0.42.4/go.mod h1:++18wSB28Wrw3ZxnOd8o8IVg7oMyWPwaPfuLw21QnPc=
751-
kubedb.dev/apimachinery v0.64.0-rc.0 h1:AgrqXRuPD4dAit17a5W0r+hLxkUb6orCtUVAqZvbd7c=
752-
kubedb.dev/apimachinery v0.64.0-rc.0/go.mod h1:6gtNaMwCx/E/N9EKwB/Zi96/+pNeGebzOadzW52zY8s=
753-
kubedb.dev/db-client-go v0.19.0-rc.0 h1:agPh4GjU5lskqoY/Aq939pJxIa9wTiqf6YQpaKPf2wE=
754-
kubedb.dev/db-client-go v0.19.0-rc.0/go.mod h1:PrZ2DXrY+IT1/JLdHv21uTiT2OJaEGGxhozTcpdsTGg=
751+
kubedb.dev/apimachinery v0.64.0 h1:JWxE5ael0PK64QMozFTxL6qmIJDDK1CEvZcGZ0qpCyM=
752+
kubedb.dev/apimachinery v0.64.0/go.mod h1:fUQDWDXkc9bwcHCkao//SfHBpSSFwbvM+UNQmcsxUDI=
753+
kubedb.dev/db-client-go v0.19.0 h1:k6JlKK8ADscZTZzkFxIu/0hZ/74u5R2aFBJp9o3b2Dc=
754+
kubedb.dev/db-client-go v0.19.0/go.mod h1:l6fpqKWSwHlZvD5MJBAsB4Gz58rSewybqO7StCWXhXI=
755755
kubeops.dev/csi-driver-cacerts v0.5.0 h1:WaKfoIyh7rx9rNZ65wJ3GkzhECkOjxd9dcO0iEx3xKU=
756756
kubeops.dev/csi-driver-cacerts v0.5.0/go.mod h1:VNbwC3gTWfmdQCVxd8mkVx+n1+0F1lOA5X3usyZN1rk=
757757
kubeops.dev/operator-shard-manager v0.0.5 h1:i7VnyUfIa9u3RQhSTVWNsooXcgmrWWxJyI9gJ10onE8=
@@ -760,8 +760,8 @@ kubeops.dev/petset v0.0.15 h1:iwTRFAp0RNw0A87sw2c97UZ6WIA9H/nhJBpDhXLa7fk=
760760
kubeops.dev/petset v0.0.15/go.mod h1:sw96WiXfzhpmKpXj4a5AdmEHs0Bx4QMhf+iW15zY4Gg=
761761
kubeops.dev/sidekick v0.0.12 h1:pmUjQLZDKxgREiM6z0PogLR1aDbgvkE9jRjbxG6dEt0=
762762
kubeops.dev/sidekick v0.0.12/go.mod h1:RU7QH3E8DOLw15rBYlOOJSyczuwAnVVtYyZjJb00UB8=
763-
kubestash.dev/apimachinery v0.27.0-rc.0 h1:z7iT7r1GubPybtWLcKFe876vkWxgrFm7gXZ54hY6yOY=
764-
kubestash.dev/apimachinery v0.27.0-rc.0/go.mod h1:BYYT16UeTf9BKb/hm8/LIT7/3TR2P3QzixwaXwueOTs=
763+
kubestash.dev/apimachinery v0.27.0 h1:cBPAQRmXFlI/Z0A4IOCQ1r5fQcsV2/iLV8UrGTg7weQ=
764+
kubestash.dev/apimachinery v0.27.0/go.mod h1:f3xtr2V2PWmpktitX4CQgE1g8Y49fyFbO8/FLpk/lJ4=
765765
open-cluster-management.io/api v1.2.0 h1:+yeQgJiErrur5S4s205UM37EcZ2XbC9pFSm0xgV5/hU=
766766
open-cluster-management.io/api v1.2.0/go.mod h1:YcmA6SpGEekIMxdoeVIIyOaBhMA6ImWRLXP4g8n8T+4=
767767
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=

vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/register.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ func addKnownTypes(scheme *runtime.Scheme) error {
6868
&FerretDBAutoscalerList{},
6969
&HazelcastAutoscaler{},
7070
&HazelcastAutoscalerList{},
71+
&IgniteAutoscaler{},
72+
&IgniteAutoscalerList{},
7173
&KafkaAutoscaler{},
7274
&KafkaAutoscalerList{},
7375
&MariaDBAutoscaler{},

vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mariadb_helpers.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func (m *MariaDB) SetDefaults(mdVersion *v1alpha1.MariaDBVersion) {
368368

369369
func (m *MariaDB) SetDefaultsMaxscale(mdVersion *v1alpha1.MariaDBVersion, maxscale *MaxScaleSpec) {
370370
if maxscale == nil {
371-
return
371+
maxscale = &MaxScaleSpec{}
372372
}
373373
if maxscale.StorageType == "" {
374374
maxscale.StorageType = StorageTypeDurable
@@ -569,15 +569,21 @@ func (m *MariaDB) SetTLSDefaults() {
569569
m.Spec.TLS.Certificates = kmapi.SetMissingSecretNameForCertificate(m.Spec.TLS.Certificates, string(MariaDBExporterCert), m.CertificateName(MariaDBExporterCert))
570570
}
571571

572-
func (m *MariaDBSpec) GetPersistentSecrets() []string {
572+
func (m *MariaDB) GetPersistentSecrets() []string {
573573
if m == nil {
574574
return nil
575575
}
576576

577577
var secrets []string
578-
if m.AuthSecret != nil {
579-
secrets = append(secrets, m.AuthSecret.Name)
578+
if m.Spec.AuthSecret != nil {
579+
secrets = append(secrets, m.Spec.AuthSecret.Name)
580+
}
581+
582+
if m.Spec.Monitor != nil && m.Spec.TLS != nil {
583+
name := meta_util.NameWithSuffix(m.Name, kubedb.MySQLMetricsExporterConfigSecretSuffix)
584+
secrets = append(secrets, name)
580585
}
586+
581587
return secrets
582588
}
583589

vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mysql_helpers.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,14 +412,18 @@ func (m *MySQL) SetHealthCheckerDefaults() {
412412
}
413413
}
414414

415-
func (m *MySQLSpec) GetPersistentSecrets() []string {
415+
func (m *MySQL) GetPersistentSecrets() []string {
416416
if m == nil {
417417
return nil
418418
}
419419

420420
var secrets []string
421-
if m.AuthSecret != nil {
422-
secrets = append(secrets, m.AuthSecret.Name)
421+
if m.Spec.AuthSecret != nil {
422+
secrets = append(secrets, m.Spec.AuthSecret.Name)
423+
}
424+
if m.Spec.Monitor != nil && m.Spec.TLS != nil {
425+
name := meta_util.NameWithSuffix(m.Name, kubedb.MySQLMetricsExporterConfigSecretSuffix)
426+
secrets = append(secrets, name)
423427
}
424428
return secrets
425429
}

vendor/kubedb.dev/apimachinery/apis/kubedb/v1/perconaxtradb_helpers.go

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -369,20 +369,25 @@ func (p *PerconaXtraDB) SetTLSDefaults() {
369369
}
370370

371371
// CertificateName returns the default certificate name and/or certificate secret name for a certificate alias
372-
func (p *PerconaXtraDBSpec) GetPersistentSecrets() []string {
372+
func (p *PerconaXtraDB) GetPersistentSecrets() []string {
373373
if p == nil {
374374
return nil
375375
}
376376

377377
var secrets []string
378-
if p.AuthSecret != nil {
379-
secrets = append(secrets, p.AuthSecret.Name)
378+
if p.Spec.AuthSecret != nil {
379+
secrets = append(secrets, p.Spec.AuthSecret.Name)
380380
}
381-
if p.SystemUserSecrets != nil && p.SystemUserSecrets.ReplicationUserSecret != nil {
382-
secrets = append(secrets, p.SystemUserSecrets.ReplicationUserSecret.Name)
381+
if p.Spec.SystemUserSecrets != nil && p.Spec.SystemUserSecrets.ReplicationUserSecret != nil {
382+
secrets = append(secrets, p.Spec.SystemUserSecrets.ReplicationUserSecret.Name)
383383
}
384-
if p.SystemUserSecrets != nil && p.SystemUserSecrets.MonitorUserSecret != nil {
385-
secrets = append(secrets, p.SystemUserSecrets.MonitorUserSecret.Name)
384+
if p.Spec.SystemUserSecrets != nil && p.Spec.SystemUserSecrets.MonitorUserSecret != nil {
385+
secrets = append(secrets, p.Spec.SystemUserSecrets.MonitorUserSecret.Name)
386+
}
387+
388+
if p.Spec.Monitor != nil && p.Spec.TLS != nil {
389+
name := meta_util.NameWithSuffix(p.Name, kubedb.MySQLMetricsExporterConfigSecretSuffix)
390+
secrets = append(secrets, name)
386391
}
387392
return secrets
388393
}

vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/documentdb_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const (
3636

3737
// +kubebuilder:object:root=true
3838
// +kubebuilder:subresource:status
39-
// +kubebuilder:resource:path=documentdbs,singular=documentdb,shortName=fr,categories={datastore,kubedb,appscode,all}
39+
// +kubebuilder:resource:path=documentdbs,singular=documentdb,shortName=docdb,categories={datastore,kubedb,appscode,all}
4040
// +kubebuilder:printcolumn:name="Namespace",type="string",JSONPath=".metadata.namespace"
4141
// +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version"
4242
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase"

vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/constant.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const (
122122
const (
123123
Restart = "Restart"
124124
RestartNodes = "RestartNodes"
125-
RestartServer = "RestartServer"
125+
RestartServers = "RestartServers"
126126
RestartPods = "RestartPods"
127127
RestartKeeperPods = "RestartKeeperPods"
128128
RestartPodsSucceeded = "RestartPodsSucceeded"
@@ -431,3 +431,8 @@ const (
431431
RebalanceShards = "RebalanceShards"
432432
RemovePeers = "RemovePeers"
433433
)
434+
435+
// Neo4j Constanst
436+
const (
437+
UpdateServerPVCs = "UpdateServerPVCs"
438+
)

vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/neo4j_ops_types.go

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
dbapi "kubedb.dev/apimachinery/apis/kubedb/v1alpha2"
2222

2323
core "k8s.io/api/core/v1"
24+
"k8s.io/apimachinery/pkg/api/resource"
2425
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2526
)
2627

@@ -68,6 +69,10 @@ type Neo4jOpsRequestSpec struct {
6869
HorizontalScaling *Neo4jHorizontalScalingSpec `json:"horizontalScaling,omitempty"`
6970
// Specifies information necessary for vertical scaling
7071
VerticalScaling *Neo4jVerticalScalingSpec `json:"verticalScaling,omitempty"`
72+
// Specifies information necessary for volume expansion
73+
VolumeExpansion *Neo4jVolumeExpansionSpec `json:"volumeExpansion,omitempty"`
74+
// Specifies information necessary for upgrading Neo4j
75+
UpdateVersion *Neo4jUpdateVersionSpec `json:"updateVersion,omitempty"`
7176
// 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.
7277
Timeout *metav1.Duration `json:"timeout,omitempty"`
7378
// ApplyOption is to control the execution of OpsRequest depending on the database state.
@@ -77,6 +82,19 @@ type Neo4jOpsRequestSpec struct {
7782
MaxRetries int32 `json:"maxRetries,omitempty"`
7883
}
7984

85+
// Neo4jVolumeExpansionSpec is the spec for Neo4j volume expansion
86+
type Neo4jVolumeExpansionSpec struct {
87+
Mode VolumeExpansionMode `json:"mode"`
88+
// volume specification for servers
89+
Server *resource.Quantity `json:"server,omitempty"`
90+
}
91+
92+
// Neo4jUpdateVersionSpec contains the update version information of a Neo4j cluster
93+
type Neo4jUpdateVersionSpec struct {
94+
// Specifies the target version name from catalog
95+
TargetVersion string `json:"targetVersion,omitempty"`
96+
}
97+
8098
// ReallocateStrategy defines how reallocation should be performed
8199
type ReallocateStrategy string
82100

@@ -129,8 +147,8 @@ type Neo4jTLSSpec struct {
129147
Remove bool `json:"remove,omitempty"`
130148
}
131149

132-
// +kubebuilder:validation:Enum=Restart;ReconfigureTLS;RotateAuth;Reconfigure;VerticalScaling;HorizontalScaling
133-
// ENUM(Restart,ReconfigureTLS,RotateAuth,Reconfigure,HorizontalScaling,VerticalScaling)
150+
// +kubebuilder:validation:Enum=Restart;ReconfigureTLS;RotateAuth;Reconfigure;VerticalScaling;HorizontalScaling;VolumeExpansion;UpdateVersion
151+
// ENUM(Restart,ReconfigureTLS,RotateAuth,Reconfigure,HorizontalScaling,VerticalScaling,VolumeExpansion,UpdateVersion)
134152
type Neo4jOpsRequestType string
135153

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

vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/neo4j_ops_types_enum.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)