Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Jan 1, 2024
1 parent 95db17c commit 18da666
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cmd/import-crds/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ go run cmd/import-crds/main.go --input=$HOME/go/src/k8s.io/api/crds
go run cmd/import-crds/main.go --input=$HOME/go/src/k8s.io/kube-aggregator/crds
go run cmd/import-crds/main.go --input=$HOME/go/src/github.com/prometheus-operator/prometheus-operator/example/prometheus-operator-crd
go run cmd/import-crds/main.go --input=$HOME/go/src/github.com/cert-manager/cert-manager/deploy/manifests/00-crds.yaml
go run cmd/import-crds/main.go --input=https://github.com/cert-manager/cert-manager/releases/download/v1.13.3/cert-manager.crds.yaml
go run cmd/import-crds/main.go --input=$HOME/go/src/voyagermesh.dev/apimachinery/crds
go run cmd/import-crds/main.go --input=$HOME/go/src/stash.appscode.dev/apimachinery/crds
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ require (
k8s.io/klog/v2 v2.110.1
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00
kmodules.xyz/apiversion v0.2.0
kmodules.xyz/client-go v0.29.2
kmodules.xyz/crd-schema-fuzz v0.29.0
kmodules.xyz/client-go v0.29.4
kmodules.xyz/crd-schema-fuzz v0.29.1
kmodules.xyz/go-containerregistry v0.0.12
kmodules.xyz/resource-metrics v0.29.0
kmodules.xyz/schema-checker v0.4.1
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,10 @@ k8s.io/utils v0.0.0-20230726121419-3b25d923346b h1:sgn3ZU783SCgtaSJjpcVVlRqd6GSn
k8s.io/utils v0.0.0-20230726121419-3b25d923346b/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
kmodules.xyz/apiversion v0.2.0 h1:vAQYqZFm4xu4pbB1cAdHbFEPES6EQkcR4wc06xdTOWk=
kmodules.xyz/apiversion v0.2.0/go.mod h1:oPX8g8LvlPdPX3Yc5YvCzJHQnw3YF/X4/jdW0b1am80=
kmodules.xyz/client-go v0.29.2 h1:jdyk5glfpSH1J9De9/H6j43/eT2q8xb+fDeAq0x/dpQ=
kmodules.xyz/client-go v0.29.2/go.mod h1:xWlS/1zWkx1sIKCAkzULy9570mHZYi2exDECEoP1ek4=
kmodules.xyz/crd-schema-fuzz v0.29.0 h1:s6ATG46aWyP+SoBQU00/kL/7AS2AEWwkSPwVjU512vM=
kmodules.xyz/crd-schema-fuzz v0.29.0/go.mod h1:n708z9YQqLMP2KNLQVgBcRJw1QpSWLvpNCEi+KJDOYE=
kmodules.xyz/client-go v0.29.4 h1:WW4vlYtzLc9JXrJjcFuJO4DX/kIZ5ia7QtDyhNDUwfI=
kmodules.xyz/client-go v0.29.4/go.mod h1:xWlS/1zWkx1sIKCAkzULy9570mHZYi2exDECEoP1ek4=
kmodules.xyz/crd-schema-fuzz v0.29.1 h1:zJTlWYOrT5dsVVHW8HGcnR/vaWfxQfNh11QwTtkYpcs=
kmodules.xyz/crd-schema-fuzz v0.29.1/go.mod h1:n708z9YQqLMP2KNLQVgBcRJw1QpSWLvpNCEi+KJDOYE=
kmodules.xyz/go-containerregistry v0.0.12 h1:Tl32QGmSqRVm9PUEb/f3dgDeu9zW5fVzt3qmAFIE37I=
kmodules.xyz/go-containerregistry v0.0.12/go.mod h1:KgeNg0hDsgeda+qc0NzWk0iVRdF0+ZIg/oRzGoYh78I=
kmodules.xyz/offshoot-api v0.29.0 h1:GHLhxxT9jU1N8+FvOCCeJNyU5g0duYS46UGrs6AHNLY=
Expand Down
10 changes: 9 additions & 1 deletion vendor/kmodules.xyz/crd-schema-fuzz/fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package crdfuzz
import (
"math/rand"
"os"
"strings"
"testing"

"github.com/google/go-cmp/cmp"
Expand Down Expand Up @@ -57,7 +58,14 @@ func SchemaFuzzTestForObject(t *testing.T, scheme *runtime.Scheme, obj runtime.O
t.Fatalf("Failed to convert type to `runtime.Unstructured`: %v", err)
return
}
structuralpruning.Prune(pruned, schema, true)
unknownFieldPaths := structuralpruning.PruneWithOptions(obj, schema, true, structuralschema.UnknownFieldPathOptions{
TrackUnknownFieldPaths: true,
ParentPath: nil,
UnknownFieldPaths: nil,
})
if len(unknownFieldPaths) > 0 {
t.Fatalf("unknownFieldPaths: %s", strings.Join(unknownFieldPaths, ","))
}
if !cmp.Equal(unstructuredFuzzed, pruned, cmp.Transformer("ObjectMeta", func(m map[string]interface{}) map[string]interface{} {
if m["creationTimestamp"] == nil {
delete(m, "creationTimestamp")
Expand Down
4 changes: 2 additions & 2 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ k8s.io/utils/trace
# kmodules.xyz/apiversion v0.2.0
## explicit; go 1.14
kmodules.xyz/apiversion
# kmodules.xyz/client-go v0.29.2
# kmodules.xyz/client-go v0.29.4
## explicit; go 1.21.5
kmodules.xyz/client-go
kmodules.xyz/client-go/api/v1
Expand All @@ -702,7 +702,7 @@ kmodules.xyz/client-go/apiextensions/v1
kmodules.xyz/client-go/discovery
kmodules.xyz/client-go/meta
kmodules.xyz/client-go/tools/parser
# kmodules.xyz/crd-schema-fuzz v0.29.0
# kmodules.xyz/crd-schema-fuzz v0.29.1
## explicit; go 1.21.5
kmodules.xyz/crd-schema-fuzz
# kmodules.xyz/go-containerregistry v0.0.12
Expand Down

0 comments on commit 18da666

Please sign in to comment.