@@ -87,188 +78,172 @@ func (s *KubeletExecutorServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -87,188 +78,172 @@ func (s *KubeletExecutorServer) AddFlags(fs *pflag.FlagSet) {
fs.DurationVar(&s.LaunchGracePeriod,"mesos-launch-grace-period",s.LaunchGracePeriod,"Launch grace period after which launching tasks will be cancelled. Zero disables launch cancellation.")
fs.DurationVar(&s.LaunchGracePeriod,"mesos-launch-grace-period",s.LaunchGracePeriod,"Launch grace period after which launching tasks will be cancelled. Zero disables launch cancellation.")
returnfmt.Errorf("manifest-url-header must have a single ':' key-value separator, got %q",s.ManifestURLHeader)
}
manifestURLHeader.Set(pieces[0],pieces[1])
}
}
iferr!=nil{
kcfg:=app.KubeletConfig{
// required for k8sm since we need to send api.Binding information back to the apiserver
Address:s.Address,
returnfmt.Errorf("cannot create API client: %v",err)
AllowPrivileged:s.AllowPrivileged,
CAdvisorInterface:cAdvisorInterface,
CgroupRoot:s.CgroupRoot,
Cloud:nil,// TODO(jdef) Cloud, specifying null here because we don't want all kubelets polling mesos-master; need to account for this in the cloudprovider impl