Skip to content

Commit 263ed82

Browse files
authored
Prepare for release v0.16.0 (#226)
ProductLine: KubeDB Release: v2026.2.27 Release-tracker: kubedb/CHANGELOG#127 Signed-off-by: 1gtm <1gtm@appscode.com>
1 parent 92155aa commit 263ed82

File tree

59 files changed

+1446
-306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1446
-306
lines changed

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ require (
4242
k8s.io/api v0.34.3
4343
k8s.io/apimachinery v0.34.3
4444
k8s.io/klog/v2 v2.130.1
45-
kmodules.xyz/client-go v0.34.2
45+
kmodules.xyz/client-go v0.34.3
4646
kmodules.xyz/custom-resources v0.34.0
47-
kubedb.dev/apimachinery v0.61.0-rc.1.0.20260224045112-8a1decd57883
47+
kubedb.dev/apimachinery v0.61.0
4848
sigs.k8s.io/controller-runtime v0.22.4
4949
xorm.io/xorm v1.3.11
5050
)
@@ -269,11 +269,11 @@ require (
269269
kmodules.xyz/objectstore-api v0.34.0 // indirect
270270
kmodules.xyz/offshoot-api v0.34.0 // indirect
271271
kmodules.xyz/prober v0.34.0 // indirect
272-
kmodules.xyz/resource-metadata v0.42.1 // indirect
272+
kmodules.xyz/resource-metadata v0.42.4 // indirect
273273
kubeops.dev/operator-shard-manager v0.0.5 // indirect
274274
kubeops.dev/petset v0.0.15 // indirect
275275
kubeops.dev/sidekick v0.0.12 // indirect
276-
kubestash.dev/apimachinery v0.24.0-rc.0 // indirect
276+
kubestash.dev/apimachinery v0.24.0 // indirect
277277
open-cluster-management.io/api v1.1.1-0.20251222023835-510285203ee6 // indirect
278278
sigs.k8s.io/gateway-api v1.4.0 // indirect
279279
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect

go.sum

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,8 +1117,8 @@ k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 h1:SjGebBtkBqHFOli+05xYbK8YF1Dzk
11171117
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
11181118
kmodules.xyz/apiversion v0.2.0 h1:vAQYqZFm4xu4pbB1cAdHbFEPES6EQkcR4wc06xdTOWk=
11191119
kmodules.xyz/apiversion v0.2.0/go.mod h1:oPX8g8LvlPdPX3Yc5YvCzJHQnw3YF/X4/jdW0b1am80=
1120-
kmodules.xyz/client-go v0.34.2 h1:2Cec+nyfj9kfbR+5KPK3AksxN6h4jSjhn/tw+Dhqggo=
1121-
kmodules.xyz/client-go v0.34.2/go.mod h1:kQRuGMxhb+B9rVdcfBzjK+PV7oBDo+SaDiQ66u1QG+4=
1120+
kmodules.xyz/client-go v0.34.3 h1:2K2Tjwwy62QOpgIpuRB0STDAt2e7omkKt06oC8YV+/U=
1121+
kmodules.xyz/client-go v0.34.3/go.mod h1:myCt7AfRao4PBdUtKXu01xxbqqmLZ5U8fW0LQDaifhQ=
11221122
kmodules.xyz/custom-resources v0.34.0 h1:ljkIYzIq0A3Awj87kkpuYqS9aifuyR3Hr9q2OVKoojM=
11231123
kmodules.xyz/custom-resources v0.34.0/go.mod h1:pcA/n/CnrycjKCRNtU9Z+l5svhzFncLY2Kn9pqeXDVs=
11241124
kmodules.xyz/monitoring-agent-api v0.34.1 h1:0ANZgff50xF9D9cFng1NBVmSeLwiYPsZKiFLcxAY9bQ=
@@ -1129,18 +1129,18 @@ kmodules.xyz/offshoot-api v0.34.0 h1:HnOOp8FrCjTWjtNApRDo6Ahe79tOlLrJmyye4xxO4Kk
11291129
kmodules.xyz/offshoot-api v0.34.0/go.mod h1:F+B59yYw4CZJ4uD4xu6C+mMLzIXUtuH7E+SbDICl9jE=
11301130
kmodules.xyz/prober v0.34.0 h1:ElZkZYCjLaytAA0M8EH42To7i9gh1IIX+d0qfaIohys=
11311131
kmodules.xyz/prober v0.34.0/go.mod h1:rsu/fxxfNxY70GDbH6Ju8G66459hi7AhWSSBoiIp8ic=
1132-
kmodules.xyz/resource-metadata v0.42.1 h1:RxAi354cKOeCVLoZI+WjR+tooU4lEq/axIafm1SYa20=
1133-
kmodules.xyz/resource-metadata v0.42.1/go.mod h1:xntcQko2QLbLEHwGE4TQ7I/80fcBQzcexbep97Akstk=
1134-
kubedb.dev/apimachinery v0.61.0-rc.1.0.20260224045112-8a1decd57883 h1:xuJqg3fMxV9t3Z2OKumwBnWuDMjMt9aCdn+U8pKRcCk=
1135-
kubedb.dev/apimachinery v0.61.0-rc.1.0.20260224045112-8a1decd57883/go.mod h1:PscykF7tqpp+MS9Q7P+lxceW4pUnkWKzNZg2fdMA4Jw=
1132+
kmodules.xyz/resource-metadata v0.42.4 h1:nFVo+PKmwWdzVwk7U3VZuKBQj3tPo6fyY5BC7gE2OB8=
1133+
kmodules.xyz/resource-metadata v0.42.4/go.mod h1:++18wSB28Wrw3ZxnOd8o8IVg7oMyWPwaPfuLw21QnPc=
1134+
kubedb.dev/apimachinery v0.61.0 h1:gYI8RFr6W9k9+961fwoWz/6DVGmX0NwPXlTzPBYKxB4=
1135+
kubedb.dev/apimachinery v0.61.0/go.mod h1:LaumaEPYGkieolZcvmT75qqZxKbcN0mZ4xIuA85TZaY=
11361136
kubeops.dev/operator-shard-manager v0.0.5 h1:i7VnyUfIa9u3RQhSTVWNsooXcgmrWWxJyI9gJ10onE8=
11371137
kubeops.dev/operator-shard-manager v0.0.5/go.mod h1:NE6GzlhwLRiwiUUpqi4Uf+J7e/gniITM0uJnE5r1mzY=
11381138
kubeops.dev/petset v0.0.15 h1:iwTRFAp0RNw0A87sw2c97UZ6WIA9H/nhJBpDhXLa7fk=
11391139
kubeops.dev/petset v0.0.15/go.mod h1:sw96WiXfzhpmKpXj4a5AdmEHs0Bx4QMhf+iW15zY4Gg=
11401140
kubeops.dev/sidekick v0.0.12 h1:pmUjQLZDKxgREiM6z0PogLR1aDbgvkE9jRjbxG6dEt0=
11411141
kubeops.dev/sidekick v0.0.12/go.mod h1:RU7QH3E8DOLw15rBYlOOJSyczuwAnVVtYyZjJb00UB8=
1142-
kubestash.dev/apimachinery v0.24.0-rc.0 h1:JRVGCjDvJo0qEQLpuP6gNKmFEgBbp+e20qUsnhYNA+c=
1143-
kubestash.dev/apimachinery v0.24.0-rc.0/go.mod h1:Y+/8u+3kPWBuaVchmUn4/AlaGW0nLUZh57JWwvNiDlE=
1142+
kubestash.dev/apimachinery v0.24.0 h1:NLPLHAyN/TpPP4kA9NMQT1Lg/CTlCzBqGP/aybVdlN8=
1143+
kubestash.dev/apimachinery v0.24.0/go.mod h1:OV3Iq2tVRAW7k7LsukL+R33I5H/gfT2YddBdXo8DTjI=
11441144
lukechampine.com/uint128 v1.2.0 h1:mBi/5l91vocEN8otkC5bDLhi2KdCticRiwbdB0O+rjI=
11451145
lukechampine.com/uint128 v1.2.0/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk=
11461146
modernc.org/cc/v3 v3.40.0 h1:P3g79IUS/93SYhtoeaHW+kRCIrYaxJ27MFPv+7kaTOw=

vendor/kmodules.xyz/client-go/api/v1/certificates.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ func RemoveCertificate(certificates []CertificateSpec, alias string) []Certifica
261261
type stringSetMerger struct{}
262262

263263
func (t stringSetMerger) Transformer(typ reflect.Type) func(dst, src reflect.Value) error {
264-
if typ == reflect.TypeOf([]string{}) {
264+
if typ == reflect.TypeFor[[]string]() {
265265
return func(dst, src reflect.Value) error {
266266
if dst.CanSet() {
267267
if dst.Len() <= 1 && src.Len() == 0 {

vendor/kmodules.xyz/client-go/api/v1/cluster.go

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"crypto/hmac"
2222
"crypto/sha256"
2323
"encoding/base64"
24+
"encoding/json"
2425
"fmt"
2526
)
2627

@@ -143,7 +144,43 @@ type ClusterClaimInfo struct {
143144
}
144145

145146
type ClusterClaimFeatures struct {
146-
EnabledFeatures []string `json:"enabledFeatures,omitempty" protobuf:"bytes,1,rep,name=enabledFeatures"`
147-
ExternallyManagedFeatures []string `json:"externallyManagedFeatures,omitempty" protobuf:"bytes,2,rep,name=externallyManagedFeatures"`
148-
DisabledFeatures []string `json:"disabledFeatures,omitempty" protobuf:"bytes,3,rep,name=disabledFeatures"`
147+
EnabledFeatures map[string]string `json:"enabledFeatures,omitempty" protobuf:"bytes,1,opt,name=enabledFeatures"`
148+
ExternallyManagedFeatures []string `json:"externallyManagedFeatures,omitempty" protobuf:"bytes,2,opt,name=externallyManagedFeatures"`
149+
DisabledFeatures []string `json:"disabledFeatures,omitempty" protobuf:"bytes,3,opt,name=disabledFeatures"`
150+
}
151+
152+
func (f *ClusterClaimFeatures) UnmarshalJSON(data []byte) error {
153+
aux := &struct {
154+
EnabledFeatures any `json:"enabledFeatures,omitempty"`
155+
ExternallyManagedFeatures []string `json:"externallyManagedFeatures,omitempty"`
156+
DisabledFeatures []string `json:"disabledFeatures,omitempty"`
157+
}{}
158+
159+
if err := json.Unmarshal(data, aux); err != nil {
160+
return err
161+
}
162+
163+
f.EnabledFeatures = toStringMap(aux.EnabledFeatures)
164+
f.ExternallyManagedFeatures = aux.ExternallyManagedFeatures
165+
f.DisabledFeatures = aux.DisabledFeatures
166+
return nil
167+
}
168+
169+
func toStringMap(v any) map[string]string {
170+
result := make(map[string]string)
171+
switch val := v.(type) {
172+
case []any:
173+
for _, item := range val {
174+
if str, ok := item.(string); ok {
175+
result[str] = ""
176+
}
177+
}
178+
case map[string]any:
179+
for k, item := range val {
180+
if str, ok := item.(string); ok {
181+
result[k] = str
182+
}
183+
}
184+
}
185+
return result
149186
}

0 commit comments

Comments
 (0)