mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
feat: add a notice after creating a kubekey file
Signed-off-by: 24sama <jacksama@foxmail.com>
This commit is contained in:
parent
7b0ce709f2
commit
74d75624b0
|
|
@ -20,18 +20,20 @@ import (
|
|||
"bufio"
|
||||
"context"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
mapset "github.com/deckarep/golang-set"
|
||||
"github.com/pkg/errors"
|
||||
versionutil "k8s.io/apimachinery/pkg/util/version"
|
||||
|
||||
kubekeyv1alpha2 "github.com/kubesphere/kubekey/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/pkg/artifact/templates"
|
||||
"github.com/kubesphere/kubekey/pkg/client/kubernetes"
|
||||
"github.com/kubesphere/kubekey/pkg/common"
|
||||
"github.com/kubesphere/kubekey/pkg/core/util"
|
||||
"github.com/pkg/errors"
|
||||
"io/ioutil"
|
||||
versionutil "k8s.io/apimachinery/pkg/util/version"
|
||||
"os"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
|
@ -174,6 +176,7 @@ func CreateManifest(arg common.Argument, name string) error {
|
|||
return errors.Wrap(err, fmt.Sprintf("write file %s failed", arg.FilePath))
|
||||
}
|
||||
|
||||
fmt.Println("Generate KubeKey manifest file successfully")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,12 +25,13 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/pkg/common"
|
||||
"github.com/kubesphere/kubekey/pkg/config/templates"
|
||||
"github.com/kubesphere/kubekey/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/pkg/version/kubesphere"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
// GenerateKubeKeyConfig is used to generate cluster configuration file
|
||||
|
|
@ -99,6 +100,7 @@ func GenerateKubeKeyConfig(arg common.Argument, name string) error {
|
|||
}
|
||||
}
|
||||
|
||||
fmt.Println("Generate KubeKey config file successfully")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,14 +18,16 @@ package pipeline
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"sync"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/kubesphere/kubekey/pkg/core/cache"
|
||||
"github.com/kubesphere/kubekey/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/pkg/core/ending"
|
||||
"github.com/kubesphere/kubekey/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/pkg/core/module"
|
||||
"github.com/pkg/errors"
|
||||
"os"
|
||||
"sync"
|
||||
)
|
||||
|
||||
var logo = `
|
||||
|
|
@ -102,7 +104,7 @@ func (p *Pipeline) Start() error {
|
|||
if p.SpecHosts != len(p.Runtime.GetAllHosts()) {
|
||||
return errors.Errorf("Pipeline[%s] execute failed: there are some error in your spec hosts", p.Name)
|
||||
}
|
||||
logger.Log.Infof("Pipeline[%s] execute successful", p.Name)
|
||||
logger.Log.Infof("Pipeline[%s] execute successfully", p.Name)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue