sched

package
v1.64.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Copyright 2014 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupScheduler

func SetupScheduler(
	ctx context.Context,
	mgr manager.Manager,
	schedulerConfigPath string,
	disableHttpEndpoint bool,
	k8sVersion *k8sVer.Version,
	allocator *gpuallocator.GpuAllocator,
	enableNodeExpander bool,
	outOfTreeRegistryOptions ...app.Option,
) (*schedulerserverconfig.CompletedConfig, *scheduler.Scheduler, *expander.NodeExpander, error)

func ToExternalSchedulerConfig added in v1.62.2

func ToExternalSchedulerConfig(
	internalConfig *kubeschedulerconfig.KubeSchedulerConfiguration,
) (*configv1.KubeSchedulerConfiguration, error)

ToExternalSchedulerConfig converts the internal KubeSchedulerConfiguration to the external v1 type and sets its GroupVersionKind. This is required by component-base configz.Set since v0.36, which rejects objects without a GVK. Mirrors upstream cmd/kube-scheduler/app/server.go in k8s.io/kubernetes v1.36.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL