init

package
v1.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AllValidOpenYurtVersions = append(projectinfo.Get().AllVersions, "latest")
)

Functions

func NewInitCMD

func NewInitCMD(out io.Writer) *cobra.Command

Types

type ClusterConverter

type ClusterConverter struct {
	RootDir                   string
	ComponentsBuilder         *kubeutil.Builder
	ClientSet                 kubeclientset.Interface
	CloudNodes                []string
	EdgeNodes                 []string
	WaitServantJobTimeout     time.Duration
	YurthubHealthCheckTimeout time.Duration
	KubeConfigPath            string
	YurtManagerImage          string
	NodeServantImage          string
	YurthubImage              string
	EnableDummyIf             bool
}

func (*ClusterConverter) Run

func (c *ClusterConverter) Run() error

type Initializer

type Initializer struct {
	// contains filtered or unexported fields
}

func (*Initializer) Run

func (ki *Initializer) Run() error

type KindOperator

type KindOperator struct {
	// contains filtered or unexported fields
}

func NewKindOperator

func NewKindOperator(kindCMDPath string, kubeconfigPath string) *KindOperator

func (*KindOperator) KindCreateClusterWithConfig

func (k *KindOperator) KindCreateClusterWithConfig(out io.Writer, configPath string) error

func (*KindOperator) KindInstall

func (k *KindOperator) KindInstall() error

KindInstall will install kind of default version. If KindOperator has got kindCMDPath, it will do nothing.

func (*KindOperator) KindLoadDockerImage

func (k *KindOperator) KindLoadDockerImage(out io.Writer, clusterName, image string, nodeNames []string) error

func (*KindOperator) KindVersion

func (k *KindOperator) KindVersion() (string, error)

func (*KindOperator) SetExecCommand

func (k *KindOperator) SetExecCommand(execCommand func(string, ...string) *exec.Cmd)

Directories

Path Synopsis
util

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL