1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-08 18:59:58 +00:00

Update to k8s 1.32 libraries (#491)

* Rebase

* Update dynamiclistener to v0.6.2-rc.3
This commit is contained in:
Chad Roberts
2025-02-12 13:26:58 -05:00
committed by GitHub
parent 36b97a97fb
commit ccbadbd75f
4 changed files with 168 additions and 166 deletions

View File

@@ -23,7 +23,7 @@ import (
genericapiserver "k8s.io/apiserver/pkg/server"
"k8s.io/apiserver/pkg/server/dynamiccertificates"
genericoptions "k8s.io/apiserver/pkg/server/options"
utilversion "k8s.io/apiserver/pkg/util/version"
"k8s.io/component-base/version"
openapicommon "k8s.io/kube-openapi/pkg/common"
"k8s.io/kube-openapi/pkg/validation/spec"
)
@@ -74,7 +74,7 @@ type ExtensionAPIServerOptions struct {
//
// If nil, the default version is the version of the Kubernetes Go library
// compiled in the final binary.
EffectiveVersion utilversion.EffectiveVersion
EffectiveVersion version.EffectiveVersion
SNICerts []dynamiccertificates.SNICertKeyContentProvider
}
@@ -141,7 +141,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 = utilversion.DefaultKubeEffectiveVersion()
config.EffectiveVersion = version.DefaultKubeEffectiveVersion()
if opts.EffectiveVersion != nil {
config.EffectiveVersion = opts.EffectiveVersion
}