mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
commit
db8aca4fb1
|
|
@ -122,11 +122,11 @@ linters-settings:
|
|||
- pkg: sigs.k8s.io/cluster-api/internal/webhooks/runtime
|
||||
alias: runtimewebhooks
|
||||
# CAPKK
|
||||
- pkg: github.com/kubesphere/kubekey/api/v1beta1
|
||||
- pkg: github.com/kubesphere/kubekey/v3/api/v1beta1
|
||||
alias: infrav1
|
||||
- pkg: github.com/kubesphere/kubekey/bootstrap/k3s/api/v1beta1
|
||||
- pkg: github.com/kubesphere/kubekey/v3/bootstrap/k3s/api/v1beta1
|
||||
alias: infrabootstrapv1
|
||||
- pkg: github.com/kubesphere/kubekey/controlplane/k3s/api/v1beta1
|
||||
- pkg: github.com/kubesphere/kubekey/v3/controlplane/k3s/api/v1beta1
|
||||
alias: infracontrolplanev1
|
||||
nolintlint:
|
||||
allow-unused: false
|
||||
|
|
|
|||
8
Makefile
8
Makefile
|
|
@ -241,7 +241,7 @@ verify-gen: generate ## Verify go generated files are up to date
|
|||
|
||||
.PHONY: kk
|
||||
kk:
|
||||
CGO_ENABLED=0 go build -trimpath -tags "$(BUILDTAGS)" -ldflags "$(LDFLAGS)" -o $(BIN_DIR)/kk github.com/kubesphere/kubekey/cmd/kk;
|
||||
CGO_ENABLED=0 go build -trimpath -tags "$(BUILDTAGS)" -ldflags "$(LDFLAGS)" -o $(BIN_DIR)/kk github.com/kubesphere/kubekey/v3/cmd/kk;
|
||||
|
||||
ALL_MANAGERS = capkk k3s-bootstrap k3s-control-plane
|
||||
|
||||
|
|
@ -250,15 +250,15 @@ managers: $(addprefix manager-,$(ALL_MANAGERS)) ## Run all manager-* targets
|
|||
|
||||
.PHONY: manager-capkk
|
||||
manager-capkk: ## Build the capkk manager binary into the ./bin folder
|
||||
go build -trimpath -ldflags "$(LDFLAGS)" -o $(BIN_DIR)/manager github.com/kubesphere/kubekey
|
||||
go build -trimpath -ldflags "$(LDFLAGS)" -o $(BIN_DIR)/manager github.com/kubesphere/kubekey/v3
|
||||
|
||||
.PHONY: manager-k3s-bootstrap
|
||||
manager-k3s-bootstrap: ## Build the k3s bootstrap manager binary into the ./bin folder
|
||||
go build -trimpath -ldflags "$(LDFLAGS)" -o $(BIN_DIR)/k3s-bootstrap-manager github.com/kubesphere/kubekey/bootstrap/k3s
|
||||
go build -trimpath -ldflags "$(LDFLAGS)" -o $(BIN_DIR)/k3s-bootstrap-manager github.com/kubesphere/kubekey/v3/bootstrap/k3s
|
||||
|
||||
.PHONY: manager-k3s-control-plane
|
||||
manager-k3s-control-plane: ## Build the k3s control plane manager binary into the ./bin folder
|
||||
go build -trimpath -ldflags "$(LDFLAGS)" -o $(BIN_DIR)/k3s-control-plane-manager github.com/kubesphere/kubekey/controlplane/k3s
|
||||
go build -trimpath -ldflags "$(LDFLAGS)" -o $(BIN_DIR)/k3s-control-plane-manager github.com/kubesphere/kubekey/v3/controlplane/k3s
|
||||
|
||||
.PHONY: docker-pull-prerequisites
|
||||
docker-pull-prerequisites:
|
||||
|
|
|
|||
|
|
@ -48,12 +48,12 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/handler"
|
||||
"sigs.k8s.io/controller-runtime/pkg/source"
|
||||
|
||||
infrabootstrapv1 "github.com/kubesphere/kubekey/bootstrap/k3s/api/v1beta1"
|
||||
"github.com/kubesphere/kubekey/bootstrap/k3s/pkg/cloudinit"
|
||||
"github.com/kubesphere/kubekey/bootstrap/k3s/pkg/locking"
|
||||
k3stypes "github.com/kubesphere/kubekey/bootstrap/k3s/pkg/types"
|
||||
kklog "github.com/kubesphere/kubekey/util/log"
|
||||
"github.com/kubesphere/kubekey/util/secret"
|
||||
infrabootstrapv1 "github.com/kubesphere/kubekey/v3/bootstrap/k3s/api/v1beta1"
|
||||
"github.com/kubesphere/kubekey/v3/bootstrap/k3s/pkg/cloudinit"
|
||||
"github.com/kubesphere/kubekey/v3/bootstrap/k3s/pkg/locking"
|
||||
k3stypes "github.com/kubesphere/kubekey/v3/bootstrap/k3s/pkg/types"
|
||||
kklog "github.com/kubesphere/kubekey/v3/util/log"
|
||||
"github.com/kubesphere/kubekey/v3/util/secret"
|
||||
)
|
||||
|
||||
// InitLocker is a lock that is used around kubeadm init.
|
||||
|
|
|
|||
|
|
@ -42,9 +42,9 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/controller"
|
||||
"sigs.k8s.io/controller-runtime/pkg/healthz"
|
||||
|
||||
infrabootstrapv1 "github.com/kubesphere/kubekey/bootstrap/k3s/api/v1beta1"
|
||||
"github.com/kubesphere/kubekey/bootstrap/k3s/controllers"
|
||||
infracontrolplanev1 "github.com/kubesphere/kubekey/controlplane/k3s/api/v1beta1"
|
||||
infrabootstrapv1 "github.com/kubesphere/kubekey/v3/bootstrap/k3s/api/v1beta1"
|
||||
"github.com/kubesphere/kubekey/v3/bootstrap/k3s/controllers"
|
||||
infracontrolplanev1 "github.com/kubesphere/kubekey/v3/controlplane/k3s/api/v1beta1"
|
||||
//+kubebuilder:scaffold:imports
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
package cloudinit
|
||||
|
||||
import (
|
||||
"github.com/kubesphere/kubekey/util/secret"
|
||||
"github.com/kubesphere/kubekey/v3/util/secret"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import (
|
|||
"github.com/jinzhu/copier"
|
||||
kubeyaml "sigs.k8s.io/yaml"
|
||||
|
||||
infrabootstrapv1 "github.com/kubesphere/kubekey/bootstrap/k3s/api/v1beta1"
|
||||
infrabootstrapv1 "github.com/kubesphere/kubekey/v3/bootstrap/k3s/api/v1beta1"
|
||||
)
|
||||
|
||||
// MarshalInitServerConfiguration marshals the ServerConfiguration object into a string.
|
||||
|
|
|
|||
|
|
@ -22,15 +22,13 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
)
|
||||
|
||||
// ClusterSpec defines the desired state of Cluster
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import (
|
|||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ package add
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
)
|
||||
|
||||
type AddOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,10 +19,10 @@ package add
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/pipelines"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/pipelines"
|
||||
)
|
||||
|
||||
type AddNodesOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ package alpha
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/alpha/cri"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/alpha/cri"
|
||||
)
|
||||
|
||||
// NewAlphaCmd create a new Alpha command
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ package alpha
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/create/phase"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/create/phase"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
)
|
||||
|
||||
type CreateOptions struct {
|
||||
|
|
@ -42,6 +42,6 @@ func NewCmdCreate() *cobra.Command {
|
|||
}
|
||||
|
||||
o.CommonOptions.AddCommonFlag(cmd)
|
||||
cmd.AddCommand(phase.NewPhaseCommand())
|
||||
cmd.AddCommand(phase.NewPhaseCommand())
|
||||
return cmd
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ package cri
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
)
|
||||
|
||||
type MigrateOptions struct {
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/pipelines"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/pipelines"
|
||||
)
|
||||
|
||||
type MigrateCriOptions struct {
|
||||
|
|
|
|||
|
|
@ -17,13 +17,14 @@ limitations under the License.
|
|||
package alpha
|
||||
|
||||
import (
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/upgrade/phase"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/upgrade/phase"
|
||||
)
|
||||
|
||||
type UpgradeOptions struct {
|
||||
CommonOptions *options.CommonOptions
|
||||
CommonOptions *options.CommonOptions
|
||||
}
|
||||
|
||||
func NewUpgradeOptions() *UpgradeOptions {
|
||||
|
|
@ -43,4 +44,3 @@ func NewCmdUpgrade() *cobra.Command {
|
|||
cmd.AddCommand(phase.NewPhaseCommand())
|
||||
return cmd
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ package artifact
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/artifact/images"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/artifact/images"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
)
|
||||
|
||||
type ArtifactOptions struct {
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/pipelines"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/pipelines"
|
||||
)
|
||||
|
||||
type ArtifactExportOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ package images
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
)
|
||||
|
||||
type ArtifactImagesOptions struct {
|
||||
|
|
|
|||
|
|
@ -23,14 +23,14 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/artifact"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/module"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/pipeline"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/filesystem"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/images"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/artifact"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/module"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/pipeline"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/filesystem"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/images"
|
||||
)
|
||||
|
||||
type ArtifactImagesPushOptions struct {
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/phase/artifact"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/phase/artifact"
|
||||
)
|
||||
|
||||
type ArtifactImportOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ package cert
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
)
|
||||
|
||||
type CertOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,10 +19,10 @@ package cert
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/pipelines"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/pipelines"
|
||||
)
|
||||
|
||||
type CertListOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,10 +19,10 @@ package cert
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/pipelines"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/pipelines"
|
||||
)
|
||||
|
||||
type CertRenewOptions struct {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
)
|
||||
|
||||
// CompletionOptions is the option of completion command
|
||||
|
|
|
|||
|
|
@ -22,12 +22,12 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/pipelines"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/version/kubernetes"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/version/kubesphere"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/pipelines"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/version/kubernetes"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/version/kubesphere"
|
||||
)
|
||||
|
||||
type CreateClusterOptions struct {
|
||||
|
|
|
|||
|
|
@ -21,11 +21,11 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/config"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/version/kubesphere"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/config"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/version/kubesphere"
|
||||
)
|
||||
|
||||
type CreateConfigOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ package create
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
)
|
||||
|
||||
type CreateOptions struct {
|
||||
|
|
|
|||
|
|
@ -26,10 +26,10 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"k8s.io/client-go/util/homedir"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/artifact"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/artifact"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
)
|
||||
|
||||
type CreateManifestOptions struct {
|
||||
|
|
|
|||
|
|
@ -21,11 +21,11 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/phase/binary"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/version/kubernetes"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/phase/binary"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/version/kubernetes"
|
||||
)
|
||||
|
||||
type CreateBinaryOptions struct {
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/phase/kubernetes"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/phase/kubernetes"
|
||||
)
|
||||
|
||||
type CreateConfigureKubernetesOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,10 +19,10 @@ package phase
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/phase/etcd"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/phase/etcd"
|
||||
)
|
||||
|
||||
type CreateEtcdOptions struct {
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/phase/images"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/phase/images"
|
||||
)
|
||||
|
||||
type CreateImagesOptions struct {
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/phase/kubernetes"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/phase/kubernetes"
|
||||
)
|
||||
|
||||
type CreateInitClusterOptions struct {
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/phase/kubernetes"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/phase/kubernetes"
|
||||
)
|
||||
|
||||
type CreateJoinNodesOptions struct {
|
||||
|
|
|
|||
|
|
@ -22,11 +22,11 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
alpha "github.com/kubesphere/kubekey/cmd/kk/pkg/phase/kubesphere"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/version/kubesphere"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
alpha "github.com/kubesphere/kubekey/v3/cmd/kk/pkg/phase/kubesphere"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/version/kubesphere"
|
||||
)
|
||||
|
||||
type CreateKubeSphereOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,10 +19,10 @@ package phase
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/phase/os"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/phase/os"
|
||||
)
|
||||
|
||||
type ConfigOSOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ package delete
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
)
|
||||
|
||||
type DeleteOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,10 +19,10 @@ package delete
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/pipelines"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/pipelines"
|
||||
)
|
||||
|
||||
type DeleteClusterOptions struct {
|
||||
|
|
|
|||
|
|
@ -22,10 +22,10 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/pipelines"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/pipelines"
|
||||
)
|
||||
|
||||
type DeleteNodeOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ package init
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
)
|
||||
|
||||
type InitOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,10 +19,10 @@ package init
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/pipelines"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/pipelines"
|
||||
)
|
||||
|
||||
type InitOsOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,10 +19,10 @@ package init
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/pipelines"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/pipelines"
|
||||
)
|
||||
|
||||
type InitRegistryOptions struct {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import (
|
|||
cmdutil "k8s.io/kubectl/pkg/cmd/util"
|
||||
"k8s.io/kubectl/pkg/util/i18n"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
)
|
||||
|
||||
type PluginListOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ package plugin
|
|||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -26,18 +26,18 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/add"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/alpha"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/artifact"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/cert"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/completion"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/create"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/delete"
|
||||
initOs "github.com/kubesphere/kubekey/cmd/kk/cmd/init"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/plugin"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/upgrade"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/version"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/add"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/alpha"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/artifact"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/cert"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/completion"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/create"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/delete"
|
||||
initOs "github.com/kubesphere/kubekey/v3/cmd/kk/cmd/init"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/plugin"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/upgrade"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/version"
|
||||
)
|
||||
|
||||
type KubeKeyOptions struct {
|
||||
|
|
|
|||
|
|
@ -21,12 +21,11 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/phase/binary"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/version/kubernetes"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/phase/binary"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/version/kubernetes"
|
||||
)
|
||||
|
||||
type UpgradeBinaryOptions struct {
|
||||
|
|
|
|||
|
|
@ -21,11 +21,10 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/phase/images"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/phase/images"
|
||||
)
|
||||
|
||||
type UpgradeImagesOptions struct {
|
||||
|
|
|
|||
|
|
@ -22,12 +22,11 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
alpha "github.com/kubesphere/kubekey/cmd/kk/pkg/phase/kubesphere"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/version/kubesphere"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
alpha "github.com/kubesphere/kubekey/v3/cmd/kk/pkg/phase/kubesphere"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/version/kubesphere"
|
||||
)
|
||||
|
||||
type UpgradeKubeSphereOptions struct {
|
||||
|
|
|
|||
|
|
@ -19,12 +19,12 @@ package phase
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/phase/nodes"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/phase/nodes"
|
||||
)
|
||||
|
||||
type UpgradeNodesOptions struct {
|
||||
|
|
|
|||
|
|
@ -22,13 +22,12 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/pipelines"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/version/kubernetes"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/version/kubesphere"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/options"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/pipelines"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/version/kubernetes"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/version/kubesphere"
|
||||
)
|
||||
|
||||
type UpgradeOptions struct {
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"gopkg.in/yaml.v2"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/version/kubernetes"
|
||||
"github.com/kubesphere/kubekey/version"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/version/kubernetes"
|
||||
"github.com/kubesphere/kubekey/v3/version"
|
||||
)
|
||||
|
||||
type Version struct {
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import (
|
|||
"os"
|
||||
"os/exec"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/cmd"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/cmd"
|
||||
)
|
||||
|
||||
// Using a separate entry-point can reduce the size of the binary file
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ import (
|
|||
"helm.sh/helm/v3/pkg/cli"
|
||||
"helm.sh/helm/v3/pkg/getter"
|
||||
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
)
|
||||
|
||||
func InstallAddons(kubeConf *common.KubeConf, addon *kubekeyapiv1alpha2.Addon, kubeConfig string) error {
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@ import (
|
|||
"helm.sh/helm/v3/pkg/storage/driver"
|
||||
"k8s.io/client-go/util/homedir"
|
||||
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/logger"
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/logger"
|
||||
)
|
||||
|
||||
func debug(format string, v ...interface{}) {
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@
|
|||
package addons
|
||||
|
||||
import (
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/task"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/task"
|
||||
)
|
||||
|
||||
type AddonsModule struct {
|
||||
|
|
|
|||
|
|
@ -20,9 +20,9 @@ import (
|
|||
"fmt"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/logger"
|
||||
)
|
||||
|
||||
type Install struct {
|
||||
|
|
|
|||
|
|
@ -27,15 +27,14 @@ import (
|
|||
|
||||
mapset "github.com/deckarep/golang-set"
|
||||
"github.com/pkg/errors"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
versionutil "k8s.io/apimachinery/pkg/util/version"
|
||||
|
||||
kubekeyv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/artifact/templates"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/client/kubernetes"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
kubekeyv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/artifact/templates"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/client/kubernetes"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
)
|
||||
|
||||
func CreateManifest(arg common.Argument, name string) error {
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@
|
|||
package artifact
|
||||
|
||||
import (
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/task"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/task"
|
||||
)
|
||||
|
||||
type RepositoryModule struct {
|
||||
|
|
|
|||
|
|
@ -18,8 +18,9 @@ package artifact
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
)
|
||||
|
||||
type EnableDownload struct {
|
||||
|
|
|
|||
|
|
@ -27,10 +27,10 @@ import (
|
|||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/logger"
|
||||
coreutil "github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/logger"
|
||||
coreutil "github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
)
|
||||
|
||||
type DownloadISOFile struct {
|
||||
|
|
|
|||
|
|
@ -17,10 +17,12 @@
|
|||
package templates
|
||||
|
||||
import (
|
||||
kubekeyv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
"github.com/lithammer/dedent"
|
||||
"text/template"
|
||||
|
||||
"github.com/lithammer/dedent"
|
||||
|
||||
kubekeyv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
)
|
||||
|
||||
// Manifest defines the template of manifest file.
|
||||
|
|
|
|||
|
|
@ -20,13 +20,14 @@ import (
|
|||
"fmt"
|
||||
"os/exec"
|
||||
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/cache"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/files"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/cache"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/files"
|
||||
)
|
||||
|
||||
// K3sFilesDownloadHTTP defines the kubernetes' binaries that need to be downloaded in advance and downloads them.
|
||||
|
|
|
|||
|
|
@ -20,13 +20,14 @@ import (
|
|||
"fmt"
|
||||
"os/exec"
|
||||
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/cache"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/files"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/cache"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/files"
|
||||
)
|
||||
|
||||
// K8eFilesDownloadHTTP defines the kubernetes' binaries that need to be downloaded in advance and downloads them.
|
||||
|
|
|
|||
|
|
@ -20,13 +20,14 @@ import (
|
|||
"fmt"
|
||||
"os/exec"
|
||||
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/cache"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/files"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/cache"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/files"
|
||||
)
|
||||
|
||||
// K8sFilesDownloadHTTP defines the kubernetes' binaries that need to be downloaded in advance and downloads them.
|
||||
|
|
|
|||
|
|
@ -17,10 +17,11 @@
|
|||
package binaries
|
||||
|
||||
import (
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/task"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/task"
|
||||
)
|
||||
|
||||
type NodeBinariesModule struct {
|
||||
|
|
|
|||
|
|
@ -22,12 +22,12 @@ import (
|
|||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/cache"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/files"
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/cache"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/files"
|
||||
)
|
||||
|
||||
// RegistryPackageDownloadHTTP defines the kubernetes' binaries that need to be downloaded in advance and downloads them.
|
||||
|
|
|
|||
|
|
@ -21,10 +21,11 @@ import (
|
|||
"path/filepath"
|
||||
|
||||
mapset "github.com/deckarep/golang-set"
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
)
|
||||
|
||||
type Download struct {
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@
|
|||
package confirm
|
||||
|
||||
import (
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/module"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/task"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/module"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/task"
|
||||
)
|
||||
|
||||
type InstallConfirmModule struct {
|
||||
|
|
|
|||
|
|
@ -28,11 +28,11 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
versionutil "k8s.io/apimachinery/pkg/util/version"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
)
|
||||
|
||||
// PreCheckResults defines the items to be checked.
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@ package customscripts
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/module"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/task"
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/module"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/task"
|
||||
)
|
||||
|
||||
type CustomScriptsModule struct {
|
||||
|
|
@ -44,7 +44,7 @@ func (m *CustomScriptsModule) Init() {
|
|||
Hosts: m.Runtime.GetAllHosts(),
|
||||
Action: &CustomScriptTask{taskDir: taskDir, script: script},
|
||||
Parallel: true,
|
||||
Retry: 1,
|
||||
Retry: 1,
|
||||
}
|
||||
|
||||
m.Tasks = append(m.Tasks, task)
|
||||
|
|
|
|||
|
|
@ -26,11 +26,11 @@ import (
|
|||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
)
|
||||
|
||||
type CustomScriptTask struct {
|
||||
|
|
@ -39,8 +39,6 @@ type CustomScriptTask struct {
|
|||
script kubekeyapiv1alpha2.CustomScripts
|
||||
}
|
||||
|
||||
|
||||
|
||||
func (t *CustomScriptTask) Execute(runtime connector.Runtime) error {
|
||||
|
||||
if len(t.script.Bash) <= 0 {
|
||||
|
|
@ -111,7 +109,7 @@ func (t *CustomScriptTask) Execute(runtime connector.Runtime) error {
|
|||
if _, err := runtime.GetRunner().SudoCmd(cleanCmd, false); err != nil {
|
||||
return errors.Wrapf(err, "Exec cmd:%s err:%s", cleanCmd, err)
|
||||
}
|
||||
}else {
|
||||
} else {
|
||||
// keep the Materials for debug
|
||||
fmt.Printf("Exec Bash:%s done, take %s, output:\n%s", RunBash, time.Since(start), out)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,12 +19,12 @@ package os
|
|||
import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/bootstrap/os/templates"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/prepare"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/task"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/bootstrap/os/templates"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/prepare"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/task"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
)
|
||||
|
||||
type ConfigureOSModule struct {
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@
|
|||
package os
|
||||
|
||||
import (
|
||||
kubekeyv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
kubekeyv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
)
|
||||
|
||||
type NodeConfigureNtpCheck struct {
|
||||
|
|
|
|||
|
|
@ -18,8 +18,9 @@ package repository
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"strings"
|
||||
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
)
|
||||
|
||||
type Interface interface {
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
)
|
||||
|
||||
type Debian struct {
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
)
|
||||
|
||||
type RedhatPackageManager struct {
|
||||
|
|
|
|||
|
|
@ -18,12 +18,14 @@ package os
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/bootstrap/os/repository"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/ending"
|
||||
"github.com/pkg/errors"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/bootstrap/os/repository"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/ending"
|
||||
)
|
||||
|
||||
type RollbackUmount struct {
|
||||
|
|
|
|||
|
|
@ -23,11 +23,11 @@ import (
|
|||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/bootstrap/os/repository"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/utils"
|
||||
"github.com/kubesphere/kubekey/util/osrelease"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/bootstrap/os/repository"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/utils"
|
||||
"github.com/kubesphere/kubekey/v3/util/osrelease"
|
||||
)
|
||||
|
||||
type NodeConfigureOS struct {
|
||||
|
|
|
|||
|
|
@ -20,11 +20,11 @@ import (
|
|||
"fmt"
|
||||
"text/template"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/bootstrap/registry"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/lithammer/dedent"
|
||||
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/bootstrap/registry"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
)
|
||||
|
||||
var InitOsScriptTmpl = template.Must(template.New("initOS.sh").Parse(
|
||||
|
|
|
|||
|
|
@ -19,10 +19,10 @@ package precheck
|
|||
import (
|
||||
"time"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/module"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/prepare"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/task"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/module"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/prepare"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/task"
|
||||
)
|
||||
|
||||
type GreetingsModule struct {
|
||||
|
|
|
|||
|
|
@ -17,9 +17,10 @@
|
|||
package precheck
|
||||
|
||||
import (
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
)
|
||||
|
||||
type KubeSphereExist struct {
|
||||
|
|
|
|||
|
|
@ -24,12 +24,12 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
versionutil "k8s.io/apimachinery/pkg/util/version"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/version/kubernetes"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/version/kubesphere"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/logger"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/version/kubernetes"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/version/kubesphere"
|
||||
)
|
||||
|
||||
type GreetingsTask struct {
|
||||
|
|
|
|||
|
|
@ -19,16 +19,18 @@ package registry
|
|||
import (
|
||||
"crypto/x509"
|
||||
"fmt"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/utils/certs"
|
||||
"net"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"k8s.io/client-go/util/cert"
|
||||
certutil "k8s.io/client-go/util/cert"
|
||||
netutils "k8s.io/utils/net"
|
||||
"net"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/utils/certs"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -20,14 +20,14 @@ import (
|
|||
"fmt"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/bootstrap/registry/templates"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/container"
|
||||
docker_template "github.com/kubesphere/kubekey/cmd/kk/pkg/container/templates"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/prepare"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/task"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/bootstrap/registry/templates"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/container"
|
||||
docker_template "github.com/kubesphere/kubekey/v3/cmd/kk/pkg/container/templates"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/prepare"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/task"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
)
|
||||
|
||||
type RegistryCertsModule struct {
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@
|
|||
package registry
|
||||
|
||||
import (
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
)
|
||||
|
||||
type FirstRegistryNode struct {
|
||||
|
|
|
|||
|
|
@ -21,11 +21,12 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/files"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/utils"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/files"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/utils"
|
||||
)
|
||||
|
||||
type SyncCertsFile struct {
|
||||
|
|
|
|||
|
|
@ -21,13 +21,13 @@ import (
|
|||
|
||||
versionutil "k8s.io/apimachinery/pkg/util/version"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/certs/templates"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/prepare"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/task"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/kubernetes"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/certs/templates"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/prepare"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/task"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/kubernetes"
|
||||
)
|
||||
|
||||
type CheckCertsModule struct {
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@ package certs
|
|||
import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/certs/templates"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/certs/templates"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
)
|
||||
|
||||
type AutoRenewCertsEnabled struct {
|
||||
|
|
|
|||
|
|
@ -19,21 +19,23 @@ package certs
|
|||
import (
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/certs/templates"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/utils"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"text/tabwriter"
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
versionutil "k8s.io/apimachinery/pkg/util/version"
|
||||
clientcmdapi "k8s.io/client-go/tools/clientcmd/api"
|
||||
clientcmdlatest "k8s.io/client-go/tools/clientcmd/api/latest"
|
||||
certutil "k8s.io/client-go/util/cert"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"text/tabwriter"
|
||||
"time"
|
||||
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/certs/templates"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/common"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/utils"
|
||||
)
|
||||
|
||||
type Certificate struct {
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
)
|
||||
|
||||
type ArtifactAction struct {
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
kubekeyv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/module"
|
||||
kubekeyv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/module"
|
||||
)
|
||||
|
||||
type ArtifactManifest struct {
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/prepare"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/prepare"
|
||||
)
|
||||
|
||||
type ArtifactPrepare struct {
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
k8syaml "k8s.io/apimachinery/pkg/util/yaml"
|
||||
|
||||
kubekeyv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
kubekeyv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
)
|
||||
|
||||
type ArtifactArgument struct {
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/action"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
)
|
||||
|
||||
type KubeAction struct {
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/module"
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/module"
|
||||
)
|
||||
|
||||
type KubeConf struct {
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/prepare"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/prepare"
|
||||
)
|
||||
|
||||
type KubePrepare struct {
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/rollback"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/rollback"
|
||||
)
|
||||
|
||||
type KubeRollback struct {
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
)
|
||||
|
||||
type KubeRuntime struct {
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ import (
|
|||
"gopkg.in/yaml.v2"
|
||||
k8syaml "k8s.io/apimachinery/pkg/util/yaml"
|
||||
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/version/kubesphere"
|
||||
kubekeyapiv1alpha2 "github.com/kubesphere/kubekey/v3/cmd/kk/apis/kubekey/v1alpha2"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/version/kubesphere"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ import (
|
|||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/cmd/kk/pkg/core/util"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
|
||||
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/util"
|
||||
)
|
||||
|
||||
type LocalRuntime struct {
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue