fix:remove GreetingModule that is in the ArtifactPipeline

Signed-off-by: 24sama <jacksama@foxmail.com>
This commit is contained in:
24sama 2022-07-20 13:56:29 +08:00
parent 3a109ba9ae
commit 0e6ef0d694

View File

@ -18,21 +18,21 @@ package pipelines
import (
"fmt"
"github.com/pkg/errors"
"github.com/kubesphere/kubekey/pkg/artifact"
"github.com/kubesphere/kubekey/pkg/binaries"
"github.com/kubesphere/kubekey/pkg/bootstrap/confirm"
"github.com/kubesphere/kubekey/pkg/bootstrap/precheck"
"github.com/kubesphere/kubekey/pkg/common"
"github.com/kubesphere/kubekey/pkg/core/module"
"github.com/kubesphere/kubekey/pkg/core/pipeline"
"github.com/kubesphere/kubekey/pkg/filesystem"
"github.com/kubesphere/kubekey/pkg/images"
"github.com/pkg/errors"
)
func NewArtifactExportPipeline(runtime *common.ArtifactRuntime) error {
m := []module.Module{
&precheck.GreetingsModule{},
&confirm.CheckFileExistModule{FileName: runtime.Arg.Output},
&images.CopyImagesToLocalModule{},
&binaries.ArtifactBinariesModule{},
@ -57,7 +57,6 @@ func NewArtifactExportPipeline(runtime *common.ArtifactRuntime) error {
func NewK3sArtifactExportPipeline(runtime *common.ArtifactRuntime) error {
m := []module.Module{
&precheck.GreetingsModule{},
&confirm.CheckFileExistModule{FileName: runtime.Arg.Output},
&images.CopyImagesToLocalModule{},
&binaries.K3sArtifactBinariesModule{},