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 ¶
- func RunScheduler(ctx context.Context, cc *schedulerserverconfig.CompletedConfig, ...) error
- func SetupScheduler(ctx context.Context, mgr manager.Manager, schedulerConfigPath string, ...) (*schedulerserverconfig.CompletedConfig, *scheduler.Scheduler, ...)
- func ToExternalSchedulerConfig(internalConfig *kubeschedulerconfig.KubeSchedulerConfiguration) (*configv1.KubeSchedulerConfiguration, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunScheduler ¶
func RunScheduler(ctx context.Context, cc *schedulerserverconfig.CompletedConfig, sched *scheduler.Scheduler, mgr manager.Manager, ) error
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.