Skip to content

Commit 3fb97b2

Browse files
authored
Use k8s 1.34 client go libs (#1560)
Signed-off-by: Tamal Saha <[email protected]>
1 parent eb03deb commit 3fb97b2

2,551 files changed

Lines changed: 243958 additions & 55857 deletions

File tree

Some content is hidden

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

apis/archiver/fuzzer/fuzzer.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ package fuzzer
1919
import (
2020
"kubedb.dev/apimachinery/apis/archiver/v1alpha1"
2121

22-
fuzz "github.com/google/gofuzz"
2322
runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
23+
"sigs.k8s.io/randfill"
2424
)
2525

2626
// Funcs returns the fuzzer functions for this api group.
2727
var Funcs = func(codecs runtimeserializer.CodecFactory) []any {
2828
return []any{
29-
func(s *v1alpha1.MongoDBArchiver, c fuzz.Continue) {
30-
c.FuzzNoCustom(s) // fuzz self without calling this function again
29+
func(s *v1alpha1.MongoDBArchiver, c randfill.Continue) {
30+
c.Fill(s) // fuzz self without calling this function again
3131
},
32-
func(s *v1alpha1.PostgresArchiver, c fuzz.Continue) {
33-
c.FuzzNoCustom(s) // fuzz self without calling this function again
32+
func(s *v1alpha1.PostgresArchiver, c randfill.Continue) {
33+
c.Fill(s) // fuzz self without calling this function again
3434
},
35-
func(s *v1alpha1.MariaDBArchiver, c fuzz.Continue) {
36-
c.FuzzNoCustom(s) // fuzz self without calling this function again
35+
func(s *v1alpha1.MariaDBArchiver, c randfill.Continue) {
36+
c.Fill(s) // fuzz self without calling this function again
3737
},
3838
}
3939
}

apis/archiver/v1alpha1/openapi_generated.go

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

apis/autoscaling/fuzzer/fuzzer.go

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,42 +19,42 @@ package fuzzer
1919
import (
2020
"kubedb.dev/apimachinery/apis/autoscaling/v1alpha1"
2121

22-
fuzz "github.com/google/gofuzz"
2322
runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
23+
"sigs.k8s.io/randfill"
2424
)
2525

2626
// Funcs returns the fuzzer functions for this api group.
2727
var Funcs = func(codecs runtimeserializer.CodecFactory) []any {
2828
return []any{
29-
func(s *v1alpha1.ElasticsearchAutoscaler, c fuzz.Continue) {
30-
c.FuzzNoCustom(s) // fuzz self without calling this function again
29+
func(s *v1alpha1.ElasticsearchAutoscaler, c randfill.Continue) {
30+
c.Fill(s) // fuzz self without calling this function again
3131
},
32-
func(s *v1alpha1.EtcdAutoscaler, c fuzz.Continue) {
33-
c.FuzzNoCustom(s) // fuzz self without calling this function again
32+
func(s *v1alpha1.EtcdAutoscaler, c randfill.Continue) {
33+
c.Fill(s) // fuzz self without calling this function again
3434
},
35-
func(s *v1alpha1.MariaDBAutoscaler, c fuzz.Continue) {
36-
c.FuzzNoCustom(s) // fuzz self without calling this function again
35+
func(s *v1alpha1.MariaDBAutoscaler, c randfill.Continue) {
36+
c.Fill(s) // fuzz self without calling this function again
3737
},
38-
func(s *v1alpha1.MemcachedAutoscaler, c fuzz.Continue) {
39-
c.FuzzNoCustom(s) // fuzz self without calling this function again
38+
func(s *v1alpha1.MemcachedAutoscaler, c randfill.Continue) {
39+
c.Fill(s) // fuzz self without calling this function again
4040
},
41-
func(s *v1alpha1.MongoDBAutoscaler, c fuzz.Continue) {
42-
c.FuzzNoCustom(s) // fuzz self without calling this function again
41+
func(s *v1alpha1.MongoDBAutoscaler, c randfill.Continue) {
42+
c.Fill(s) // fuzz self without calling this function again
4343
},
44-
func(s *v1alpha1.MySQLAutoscaler, c fuzz.Continue) {
45-
c.FuzzNoCustom(s) // fuzz self without calling this function again
44+
func(s *v1alpha1.MySQLAutoscaler, c randfill.Continue) {
45+
c.Fill(s) // fuzz self without calling this function again
4646
},
47-
func(s *v1alpha1.PerconaXtraDBAutoscaler, c fuzz.Continue) {
48-
c.FuzzNoCustom(s) // fuzz self without calling this function again
47+
func(s *v1alpha1.PerconaXtraDBAutoscaler, c randfill.Continue) {
48+
c.Fill(s) // fuzz self without calling this function again
4949
},
50-
func(s *v1alpha1.PostgresAutoscaler, c fuzz.Continue) {
51-
c.FuzzNoCustom(s) // fuzz self without calling this function again
50+
func(s *v1alpha1.PostgresAutoscaler, c randfill.Continue) {
51+
c.Fill(s) // fuzz self without calling this function again
5252
},
53-
func(s *v1alpha1.ProxySQLAutoscaler, c fuzz.Continue) {
54-
c.FuzzNoCustom(s) // fuzz self without calling this function again
53+
func(s *v1alpha1.ProxySQLAutoscaler, c randfill.Continue) {
54+
c.Fill(s) // fuzz self without calling this function again
5555
},
56-
func(s *v1alpha1.RedisAutoscaler, c fuzz.Continue) {
57-
c.FuzzNoCustom(s) // fuzz self without calling this function again
56+
func(s *v1alpha1.RedisAutoscaler, c randfill.Continue) {
57+
c.Fill(s) // fuzz self without calling this function again
5858
},
5959
}
6060
}

apis/autoscaling/v1alpha1/openapi_generated.go

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

apis/catalog/fuzzer/fuzzer.go

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,42 +19,42 @@ package fuzzer
1919
import (
2020
"kubedb.dev/apimachinery/apis/catalog/v1alpha1"
2121

22-
fuzz "github.com/google/gofuzz"
2322
runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
23+
"sigs.k8s.io/randfill"
2424
)
2525

2626
// Funcs returns the fuzzer functions for this api group.
2727
var Funcs = func(codecs runtimeserializer.CodecFactory) []any {
2828
return []any{
29-
func(s *v1alpha1.ElasticsearchVersion, c fuzz.Continue) {
30-
c.FuzzNoCustom(s) // fuzz self without calling this function again
29+
func(s *v1alpha1.ElasticsearchVersion, c randfill.Continue) {
30+
c.Fill(s) // fuzz self without calling this function again
3131
},
32-
func(s *v1alpha1.EtcdVersion, c fuzz.Continue) {
33-
c.FuzzNoCustom(s) // fuzz self without calling this function again
32+
func(s *v1alpha1.EtcdVersion, c randfill.Continue) {
33+
c.Fill(s) // fuzz self without calling this function again
3434
},
35-
func(s *v1alpha1.MariaDBVersion, c fuzz.Continue) {
36-
c.FuzzNoCustom(s) // fuzz self without calling this function again
35+
func(s *v1alpha1.MariaDBVersion, c randfill.Continue) {
36+
c.Fill(s) // fuzz self without calling this function again
3737
},
38-
func(s *v1alpha1.MemcachedVersion, c fuzz.Continue) {
39-
c.FuzzNoCustom(s) // fuzz self without calling this function again
38+
func(s *v1alpha1.MemcachedVersion, c randfill.Continue) {
39+
c.Fill(s) // fuzz self without calling this function again
4040
},
41-
func(s *v1alpha1.MongoDBVersion, c fuzz.Continue) {
42-
c.FuzzNoCustom(s) // fuzz self without calling this function again
41+
func(s *v1alpha1.MongoDBVersion, c randfill.Continue) {
42+
c.Fill(s) // fuzz self without calling this function again
4343
},
44-
func(s *v1alpha1.MySQLVersion, c fuzz.Continue) {
45-
c.FuzzNoCustom(s) // fuzz self without calling this function again
44+
func(s *v1alpha1.MySQLVersion, c randfill.Continue) {
45+
c.Fill(s) // fuzz self without calling this function again
4646
},
47-
func(s *v1alpha1.PerconaXtraDBVersion, c fuzz.Continue) {
48-
c.FuzzNoCustom(s) // fuzz self without calling this function again
47+
func(s *v1alpha1.PerconaXtraDBVersion, c randfill.Continue) {
48+
c.Fill(s) // fuzz self without calling this function again
4949
},
50-
func(s *v1alpha1.PostgresVersion, c fuzz.Continue) {
51-
c.FuzzNoCustom(s) // fuzz self without calling this function again
50+
func(s *v1alpha1.PostgresVersion, c randfill.Continue) {
51+
c.Fill(s) // fuzz self without calling this function again
5252
},
53-
func(s *v1alpha1.ProxySQLVersion, c fuzz.Continue) {
54-
c.FuzzNoCustom(s) // fuzz self without calling this function again
53+
func(s *v1alpha1.ProxySQLVersion, c randfill.Continue) {
54+
c.Fill(s) // fuzz self without calling this function again
5555
},
56-
func(s *v1alpha1.RedisVersion, c fuzz.Continue) {
57-
c.FuzzNoCustom(s) // fuzz self without calling this function again
56+
func(s *v1alpha1.RedisVersion, c randfill.Continue) {
57+
c.Fill(s) // fuzz self without calling this function again
5858
},
5959
}
6060
}

0 commit comments

Comments
 (0)