Skip to content

Commit a9454d6

Browse files
authored
Use k8s 1.34 client libs (#584)
Signed-off-by: Tamal Saha <[email protected]>
1 parent 75b33a7 commit a9454d6

File tree

4,509 files changed

+126086
-39054
lines changed

Some content is hidden

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

4,509 files changed

+126086
-39054
lines changed

apis/core/fuzzer/fuzzer.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ package fuzzer
1919
import (
2020
"kmodules.xyz/resource-metadata/apis/core/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{
2929
// v1alpha1
30-
func(s *v1alpha1.PodView, c fuzz.Continue) {
31-
c.FuzzNoCustom(s) // fuzz self without calling this function again
30+
func(s *v1alpha1.PodView, c randfill.Continue) {
31+
c.Fill(s) // fuzz self without calling this function again
3232
},
33-
func(s *v1alpha1.ResourceSummary, c fuzz.Continue) {
34-
c.FuzzNoCustom(s) // fuzz self without calling this function again
33+
func(s *v1alpha1.ResourceSummary, c randfill.Continue) {
34+
c.Fill(s) // fuzz self without calling this function again
3535
},
36-
func(s *v1alpha1.GenericResource, c fuzz.Continue) {
37-
c.FuzzNoCustom(s) // fuzz self without calling this function again
36+
func(s *v1alpha1.GenericResource, c randfill.Continue) {
37+
c.Fill(s) // fuzz self without calling this function again
3838
},
39-
func(s *v1alpha1.GenericResourceService, c fuzz.Continue) {
40-
c.FuzzNoCustom(s) // fuzz self without calling this function again
39+
func(s *v1alpha1.GenericResourceService, c randfill.Continue) {
40+
c.Fill(s) // fuzz self without calling this function again
4141
},
4242
}
4343
}

apis/core/v1alpha1/openapi_generated.go

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

apis/identity/fuzzer/fuzzer.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ package fuzzer
1919
import (
2020
"kmodules.xyz/resource-metadata/apis/identity/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{
2929
// v1alpha1
30-
func(s *v1alpha1.ClusterIdentity, c fuzz.Continue) {
31-
c.FuzzNoCustom(s) // fuzz self without calling this function again
30+
func(s *v1alpha1.ClusterIdentity, c randfill.Continue) {
31+
c.Fill(s) // fuzz self without calling this function again
3232
},
33-
func(s *v1alpha1.InboxTokenRequest, c fuzz.Continue) {
34-
c.FuzzNoCustom(s) // fuzz self without calling this function again
33+
func(s *v1alpha1.InboxTokenRequest, c randfill.Continue) {
34+
c.Fill(s) // fuzz self without calling this function again
3535
},
3636
}
3737
}

apis/identity/v1alpha1/openapi_generated.go

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

apis/management/fuzzer/fuzzer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ package fuzzer
1919
import (
2020
"kmodules.xyz/resource-metadata/apis/management/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.ProjectQuota, c fuzz.Continue) {
30-
c.FuzzNoCustom(s) // fuzz self without calling this function again
29+
func(s *v1alpha1.ProjectQuota, c randfill.Continue) {
30+
c.Fill(s) // fuzz self without calling this function again
3131
},
3232
}
3333
}

apis/management/v1alpha1/openapi_generated.go

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

apis/meta/fuzzer/fuzzer.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ import (
2020
v1alpha12 "kmodules.xyz/resource-metadata/apis/core/v1alpha1"
2121
"kmodules.xyz/resource-metadata/apis/meta/v1alpha1"
2222

23-
fuzz "github.com/google/gofuzz"
2423
runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
24+
"sigs.k8s.io/randfill"
2525
)
2626

2727
// Funcs returns the fuzzer functions for this api group.
2828
var Funcs = func(codecs runtimeserializer.CodecFactory) []any {
2929
return []any{
30-
func(s *v1alpha1.ResourceDescriptor, c fuzz.Continue) {
31-
c.FuzzNoCustom(s) // fuzz self without calling this function again
30+
func(s *v1alpha1.ResourceDescriptor, c randfill.Continue) {
31+
c.Fill(s) // fuzz self without calling this function again
3232
},
33-
func(s *v1alpha12.Project, c fuzz.Continue) {
34-
c.FuzzNoCustom(s) // fuzz self without calling this function again
33+
func(s *v1alpha12.Project, c randfill.Continue) {
34+
c.Fill(s) // fuzz self without calling this function again
3535
},
3636
}
3737
}

apis/meta/v1alpha1/openapi_generated.go

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

apis/node/fuzzer/fuzzer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ package fuzzer
1919
import (
2020
"kmodules.xyz/resource-metadata/apis/node/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.NodeTopology, c fuzz.Continue) {
30-
c.FuzzNoCustom(s) // fuzz self without calling this function again
29+
func(s *v1alpha1.NodeTopology, c randfill.Continue) {
30+
c.Fill(s) // fuzz self without calling this function again
3131
},
3232
}
3333
}

apis/node/v1alpha1/openapi_generated.go

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

0 commit comments

Comments
 (0)