Skip to content

Commit

Permalink
server: disable autoscaling APIs
Browse files Browse the repository at this point in the history
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
  • Loading branch information
sttts committed Oct 7, 2023
1 parent c525aed commit 7589957
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import (
"os"
"time"

"github.com/kcp-dev/logicalcluster/v3"

extensionsapiserver "k8s.io/apiextensions-apiserver/pkg/apiserver"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand All @@ -43,6 +41,7 @@ import (
"k8s.io/klog/v2"
controlplaneapiserver "k8s.io/kubernetes/pkg/controlplane/apiserver"
"k8s.io/kubernetes/pkg/controlplane/apiserver/miniaggregator"
autoscalingrest "k8s.io/kubernetes/pkg/registry/autoscaling/rest"
flowcontrolrest "k8s.io/kubernetes/pkg/registry/flowcontrol/rest"

configroot "github.com/kcp-dev/kcp/config/root"
Expand All @@ -55,6 +54,7 @@ import (
virtualrootapiserver "github.com/kcp-dev/kcp/pkg/virtual/framework/rootapiserver"
"github.com/kcp-dev/kcp/sdk/apis/core"
corev1alpha1 "github.com/kcp-dev/kcp/sdk/apis/core/v1alpha1"
"github.com/kcp-dev/logicalcluster/v3"
)

const resyncPeriod = 10 * time.Hour
Expand Down Expand Up @@ -111,7 +111,8 @@ func NewServer(c CompletedConfig) (*Server, error) {
for i := range allStorageProviders {
switch allStorageProviders[i].(type) {
case flowcontrolrest.RESTStorageProvider:
// TODO(sttts): remove this code when P&F is wired
// TODO(sttts): remove this code when P&F is wired
case autoscalingrest.RESTStorageProvider:
default:
storageProviders = append(storageProviders, allStorageProviders[i])
}
Expand Down

0 comments on commit 7589957

Please sign in to comment.