kubekey/pkg/util/manager/manager.go
pixiake dc48261384 add skip pre pull images
Signed-off-by: pixiake <guofeng@yunify.com>
2020-07-31 19:26:18 +08:00

50 lines
1.4 KiB
Go

/*
Copyright 2020 The KubeSphere 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.
*/
package manager
import (
kubekeyapi "github.com/kubesphere/kubekey/pkg/apis/kubekey/v1alpha1"
"github.com/kubesphere/kubekey/pkg/util/runner"
"github.com/kubesphere/kubekey/pkg/util/ssh"
log "github.com/sirupsen/logrus"
)
type Manager struct {
Cluster *kubekeyapi.ClusterSpec
Logger log.FieldLogger
Connector *ssh.Dialer
Runner *runner.Runner
AllNodes []kubekeyapi.HostCfg
EtcdNodes []kubekeyapi.HostCfg
MasterNodes []kubekeyapi.HostCfg
WorkerNodes []kubekeyapi.HostCfg
K8sNodes []kubekeyapi.HostCfg
ClientNode []kubekeyapi.HostCfg
ClusterHosts []string
WorkDir string
KsEnable bool
KsVersion string
Debug bool
SkipCheck bool
SkipPullImages bool
}
func (mgr *Manager) Copy() *Manager {
newManager := *mgr
return &newManager
}