Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
Signed-off-by: Neaj Morshad <[email protected]>
  • Loading branch information
Neaj-Morshad-101 committed Jul 5, 2024
1 parent 97bf284 commit 2b1c4ae
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
k8s.io/klog/v2 v2.130.1
kmodules.xyz/client-go v0.30.9
kmodules.xyz/custom-resources v0.30.0
kubedb.dev/apimachinery v0.47.0-rc.0.0.20240704102728-d3744bc4b140
kubedb.dev/apimachinery v0.47.0-rc.0.0.20240705093316-3b5044566fdb
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,8 @@ kmodules.xyz/prober v0.29.0 h1:Ex7m4F9rH7uWNNJlLgP63ROOM+nUATJkC2L5OQ7nwMg=
kmodules.xyz/prober v0.29.0/go.mod h1:UtK+HKyI1lFLEKX+HFLyOCVju6TO93zv3kwGpzqmKOo=
kmodules.xyz/resource-metadata v0.18.9 h1:W/39Blg0hCvZYl0rReDIPiOMQuMN//pKVqRjhWAUrKo=
kmodules.xyz/resource-metadata v0.18.9/go.mod h1:qqieeMPdwJIEyAVkGcgh7h9PZbZTLw4KNEkkqEh5EyA=
kubedb.dev/apimachinery v0.47.0-rc.0.0.20240704102728-d3744bc4b140 h1:aDgyKju8SbT+qV+DcopJH+CC/e0lQ+vIj7pp9gxn8No=
kubedb.dev/apimachinery v0.47.0-rc.0.0.20240704102728-d3744bc4b140/go.mod h1:2mEFBi2aURLGNbMefYC7xUalF/JWK7a1RA0zWNDCdw8=
kubedb.dev/apimachinery v0.47.0-rc.0.0.20240705093316-3b5044566fdb h1:Os9W5ePqU0SwJjKlfPKnVQ06abio/ip9a1tcBcocJr0=
kubedb.dev/apimachinery v0.47.0-rc.0.0.20240705093316-3b5044566fdb/go.mod h1:2mEFBi2aURLGNbMefYC7xUalF/JWK7a1RA0zWNDCdw8=
kubeops.dev/petset v0.0.6 h1:0IbvxD9fadZfH+3iMZWzN6ZHsO0vX458JlioamwyPKQ=
kubeops.dev/petset v0.0.6/go.mod h1:A15vh0r979NsvL65DTIZKWsa/NoX9VapHBAEw1ZsdYI=
kubestash.dev/apimachinery v0.10.0 h1:38rSSEojixDvmsugS2YPGg7IFahKhPP02Hz9m9hrtQ8=
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const (
)

type RedisClusterSpec struct {
// Number of master nodes. It must be >= 3. If not specified, defaults to 3.
// Number of shards. It must be >= 3. If not specified, defaults to 3.
Shards *int32 `json:"shards,omitempty"`

// Number of replica(s) per shard. If not specified, defaults to 2.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,10 @@ func Convert_v1_MongoDBSpec_To_v1alpha2_MongoDBSpec(in *v1.MongoDBSpec, out *Mon

func Convert_v1alpha2_RedisClusterSpec_To_v1_RedisClusterSpec(in *RedisClusterSpec, out *v1.RedisClusterSpec, s conversion.Scope) error {
out.Shards = (*int32)(unsafe.Pointer(in.Master))
out.Replicas = (*int32)(unsafe.Pointer(in.Replicas))
if in.Replicas != nil {
replicas := *in.Replicas + 1
out.Replicas = (*int32)(unsafe.Pointer(&replicas))
}
return nil
}

Expand Down Expand Up @@ -673,7 +676,10 @@ func Convert_v1alpha2_RedisSpec_To_v1_RedisSpec(in *RedisSpec, out *v1.RedisSpec

func Convert_v1_RedisClusterSpec_To_v1alpha2_RedisClusterSpec(in *v1.RedisClusterSpec, out *RedisClusterSpec, s conversion.Scope) error {
out.Master = (*int32)(unsafe.Pointer(in.Shards))
out.Replicas = (*int32)(unsafe.Pointer(in.Replicas))
if in.Replicas != nil {
replicas := *in.Replicas - 1
out.Replicas = (*int32)(unsafe.Pointer(&replicas))
}
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ kmodules.xyz/prober/api/v1
kmodules.xyz/resource-metadata/apis/node
kmodules.xyz/resource-metadata/apis/node/v1alpha1
kmodules.xyz/resource-metadata/crds
# kubedb.dev/apimachinery v0.47.0-rc.0.0.20240704102728-d3744bc4b140
# kubedb.dev/apimachinery v0.47.0-rc.0.0.20240705093316-3b5044566fdb
## explicit; go 1.22.1
kubedb.dev/apimachinery/apis
kubedb.dev/apimachinery/apis/archiver/v1alpha1
Expand Down

0 comments on commit 2b1c4ae

Please sign in to comment.