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 Mar 8, 2025
1 parent 05eb139 commit 0a54235
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 37 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
k8s.io/klog/v2 v2.130.1
k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738
kmodules.xyz/client-go v0.30.47-0.20250303073751-80d02d19452f
kmodules.xyz/client-go v0.30.47-0.20250308053642-38a9e7b6982e
kmodules.xyz/crd-schema-fuzz v0.29.2-0.20250302110413-c5b140ca984a
sigs.k8s.io/yaml v1.4.0
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 h1:hcha5B1kVACrLujCKLbr8X
k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7/go.mod h1:GewRfANuJ70iYzvn+i4lezLDAFzvjxZYK1gn1lWcfas=
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro=
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
kmodules.xyz/client-go v0.30.47-0.20250303073751-80d02d19452f h1:8IEjtg0FfUb5H6nyMWRnx16MqvZoMJ4gnIXD1xChfLI=
kmodules.xyz/client-go v0.30.47-0.20250303073751-80d02d19452f/go.mod h1:ywskpCT3t3hGx/1VBvqx51YPeUvKd6g29ckoYaFs96o=
kmodules.xyz/client-go v0.30.47-0.20250308053642-38a9e7b6982e h1:oUglAoC1whXvG2TUAj+lz6tAW1uMGWnbORKh5lo4ku0=
kmodules.xyz/client-go v0.30.47-0.20250308053642-38a9e7b6982e/go.mod h1:ywskpCT3t3hGx/1VBvqx51YPeUvKd6g29ckoYaFs96o=
kmodules.xyz/crd-schema-fuzz v0.29.2-0.20250302110413-c5b140ca984a h1:u9td8ifa0dpwNXd8OphUk0my177w6zP1fpjQ4Jt9kIY=
kmodules.xyz/crd-schema-fuzz v0.29.2-0.20250302110413-c5b140ca984a/go.mod h1:UsjyWBW13K3KJ9q1RFzNW2fV7q6e2iY6svoRGIDppZY=
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0 h1:CPT0ExVicCzcpeN4baWEV2ko2Z/AsiZgEdwgcfwLgMo=
Expand Down
38 changes: 5 additions & 33 deletions vendor/kmodules.xyz/client-go/openapi/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/runtime/serializer"
"k8s.io/apimachinery/pkg/util/version"
openapinamer "k8s.io/apiserver/pkg/endpoints/openapi"
"k8s.io/apiserver/pkg/registry/rest"
genericapiserver "k8s.io/apiserver/pkg/server"
Expand All @@ -42,6 +41,10 @@ import (
"k8s.io/kube-openapi/pkg/validation/spec"
)

const (
DefaultKubernetesVersion = "v1.32.2"
)

type TypeInfo struct {
GroupVersion schema.GroupVersion
Resource string
Expand Down Expand Up @@ -119,7 +122,7 @@ func RenderOpenAPISpec(cfg Config) (string, error) {
serverConfig.OpenAPIConfig.Info.InfoProps = cfg.Info
serverConfig.OpenAPIV3Config = genericapiserver.DefaultOpenAPIV3Config(cfg.GetOpenAPIDefinitions, openapinamer.NewDefinitionNamer(cfg.Scheme))
serverConfig.OpenAPIV3Config.Info.InfoProps = cfg.Info
serverConfig.EffectiveVersion = &effectiveVersion{}
serverConfig.EffectiveVersion = utilversion.NewEffectiveVersion(DefaultKubernetesVersion)

genericServer, err := serverConfig.Complete().New("stash-server", genericapiserver.NewEmptyDelegate()) // completion is done in Complete, no need for a second time
if err != nil {
Expand Down Expand Up @@ -281,34 +284,3 @@ func RenderOpenAPISpec(cfg Config) (string, error) {
}
return string(data), nil
}

type effectiveVersion struct{}

var _ utilversion.EffectiveVersion = &effectiveVersion{}

func (e effectiveVersion) BinaryVersion() *version.Version {
return version.MustParse("v1.32.2")
}

func (e effectiveVersion) EmulationVersion() *version.Version {
return version.MustParse("v1.32.2")
}

func (e effectiveVersion) MinCompatibilityVersion() *version.Version {
return version.MustParse("v1.32.2")
}

func (e effectiveVersion) EqualTo(other utilversion.EffectiveVersion) bool {
// TODO implement me
panic("implement me")
}

func (e effectiveVersion) String() string {
// TODO implement me
panic("implement me")
}

func (e effectiveVersion) Validate() []error {
// TODO implement me
panic("implement me")
}
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ k8s.io/utils/path
k8s.io/utils/pointer
k8s.io/utils/ptr
k8s.io/utils/trace
# kmodules.xyz/client-go v0.30.47-0.20250303073751-80d02d19452f
# kmodules.xyz/client-go v0.30.47-0.20250308053642-38a9e7b6982e
## explicit; go 1.23.0
kmodules.xyz/client-go
kmodules.xyz/client-go/api/v1
Expand Down

0 comments on commit 0a54235

Please sign in to comment.