1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-12 13:31:57 +00:00

Bumped dependencies to be compatible with k8s-v1.33 (#681)

Signed-off-by: swastik959 <Sswastik959@gmail.com>
This commit is contained in:
Swastik Gour
2025-06-20 17:53:42 +05:30
committed by GitHub
parent c32995dba4
commit e17ca28461
30 changed files with 927 additions and 833 deletions

View File

@@ -23,7 +23,8 @@ import (
genericapiserver "k8s.io/apiserver/pkg/server"
"k8s.io/apiserver/pkg/server/dynamiccertificates"
genericoptions "k8s.io/apiserver/pkg/server/options"
"k8s.io/component-base/version"
"k8s.io/apiserver/pkg/util/compatibility"
basecompatibility "k8s.io/component-base/compatibility"
openapicommon "k8s.io/kube-openapi/pkg/common"
"k8s.io/kube-openapi/pkg/validation/spec"
)
@@ -74,7 +75,7 @@ type ExtensionAPIServerOptions struct {
//
// If nil, the default version is the version of the Kubernetes Go library
// compiled in the final binary.
EffectiveVersion version.EffectiveVersion
EffectiveVersion basecompatibility.EffectiveVersion
SNICerts []dynamiccertificates.SNICertKeyContentProvider
}
@@ -166,7 +167,7 @@ func NewExtensionAPIServer(scheme *runtime.Scheme, codecs serializer.CodecFactor
// The default kube effective version ends up being the version of the
// library. (The value is hardcoded but it is kept up-to-date via some
// automation)
config.EffectiveVersion = version.DefaultKubeEffectiveVersion()
config.EffectiveVersion = compatibility.DefaultBuildEffectiveVersion()
if opts.EffectiveVersion != nil {
config.EffectiveVersion = opts.EffectiveVersion
}