Documentation
¶
Overview ¶
Copyright 2017 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.
Copyright 2019, 2021 The Multi-Cluster App Dispatcher 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 ¶
This section is empty.
Types ¶
type ServerOption ¶
type ServerOption struct { Master string Kubeconfig string SchedulerName string Dispatcher bool AgentConfigs string SecurePort int DynamicPriority bool // If DynamicPriority=true then no preemption is allowed by program logic Preemption bool // Preemption is not allowed under DynamicPriority BackoffTime int // Number of seconds a job will go away for, if it can not be scheduled. Default is 20. // Head of line job will not be bumped away for at least HeadOfLineHoldingTime seconds by higher priority jobs. // Default setting to 0 disables this mechanism. HeadOfLineHoldingTime int QuotaEnabled bool // Controller is to evaluate quota per request QuotaRestURL string HealthProbeListenAddr string DispatchResourceReservationTimeout int64 }
ServerOption is the main context object for the controller manager.
func NewServerOption ¶
func NewServerOption() *ServerOption
NewServerOption creates a new CMServer with a default config.
func (*ServerOption) AddFlags ¶
func (s *ServerOption) AddFlags(fs *flag.FlagSet)
AddFlags adds flags for a specific CMServer to the specified FlagSet
func (*ServerOption) CheckOptionOrDie ¶
func (s *ServerOption) CheckOptionOrDie()