You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/kar-controllers/app/options/options.go
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,7 @@ type ServerOption struct {
56
56
QuotaRestURLstring
57
57
HealthProbeListenAddrstring
58
58
DispatchResourceReservationTimeoutint64
59
+
ExternalDispatchbool// if true, will use external plugin to dispatch workloads
59
60
}
60
61
61
62
// NewServerOption creates a new CMServer with a default config.
@@ -83,6 +84,8 @@ func (s *ServerOption) AddFlags(fs *flag.FlagSet) {
83
84
fs.IntVar(&s.SecurePort, "secure-port", 6443, "The port on which to serve secured, authenticated access for metrics.")
84
85
fs.StringVar(&s.HealthProbeListenAddr, "healthProbeListenAddr", ":8081", "Listen address for health probes. Defaults to ':8081'")
85
86
fs.Int64Var(&s.DispatchResourceReservationTimeout, "dispatchResourceReservationTimeout", s.DispatchResourceReservationTimeout, "Resource reservation timeout for pods to be created once AppWrapper is dispatched, in millisecond. Defaults to '300000', 5 minutes")
87
+
fs.BoolVar(&s.ExternalDispatch,"externalDispatch", s.ExternalDispatch,"Use external workload dispatch plugin. Default is false.")
Copy file name to clipboardExpand all lines: deployment/mcad-operator/deploy/olm-catalog/mcad-operator/manifests/mcad-operator.clusterserviceversion.yaml
|`configMap.agentConfigs`|*For Every Agent Cluster separated by commas(,):* Name of *agent* config file _:_ Set the dispatching mode for the _*Agent Cluster*_. Note:For the dispatching mode `uncordon`, indicating _MCAD_ controller is allowed to dispatched jobs to the _*Agent Cluster*_, is only supported. |<_No default for agent config file_>:`uncordon`|`agent101config:uncordon,agent110config:uncordon`|
152
152
|`configMap.dispatcherMode`| Whether the _MCAD_ Controller should be launched in Dispatcher mode or not |`false`|`true`|
153
+
|`configMap.externalDispatch`| Whether the _MCAD_ Controller should use external plugin to dispatch workloads or not |`false`|`true`|
153
154
|`configMap.name`| Name of the Kubernetes *ConfigMap* resource to configure the _MCAD_ Controller ||`mcad-deployer`|
154
155
|`deploymentName`| Name of _MCAD_ Controller Deployment Object |`mcad-controller`|`my-mcad-controller`|
155
156
|`image.pullPolicy`| Policy that dictates when the specified image is pulled |`Always`|`Never`|
0 commit comments