options

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Key                       = "key"
	ShortKey                  = "k"
	Port                      = "port"
	Password                  = "password"
	ShortPassword             = "p"
	User                      = "user"
	KubernetesVersion         = "kubernetes-version"
	ContainerEngineVersion    = "container-engine-version"
	ControlPlaneEndpoint      = "control-plane-endpoint"
	ImageRepository           = "image-repository"
	Masters                   = "masters"
	ShortMasters              = "m"
	Workers                   = "nodes"
	ShortNodes                = "n"
	PodNetworkCidr            = "pod-network-cidr"
	ServiceCidr               = "service-cidr"
	JumpServer                = "jump-server"
	RemoveContainerEngine     = "remove-container-engine"
	RemoveKubernetesComponent = "remove-kubernetes-component"
	OfflineFile               = "offline-file"
	ShortOfflineFile          = "f"
	CertNotAfterTime          = "cert-time"
	NetworkPlugin             = "network-plugin"
	Online                    = "install-online"
	Command                   = "command"
)

Variables

This section is empty.

Functions

func AddCertNotAfterTimeFlags

func AddCertNotAfterTimeFlags(flagSet *flag.FlagSet, year *int)

func AddContainerEngineConfigFlags

func AddContainerEngineConfigFlags(flagSet *flag.FlagSet, options *ContainerEngine)

func AddControlPlaneEndpointFlags

func AddControlPlaneEndpointFlags(flagSet *flag.FlagSet, options *Kubeadm)

func AddExecCommandFlags added in v0.7.0

func AddExecCommandFlags(flagSet *flag.FlagSet, cmd *string)

func AddImageMetaFlags

func AddImageMetaFlags(flagSet *flag.FlagSet, imageRepository *string)

func AddJumpServerFlags

func AddJumpServerFlags(flagSet *flag.FlagSet, userInfo *map[string]string)

func AddKubeClusterNodesConfigFlags

func AddKubeClusterNodesConfigFlags(flagSet *flag.FlagSet, options *ClusterNodes)

func AddKubeadmConfigFlags

func AddKubeadmConfigFlags(flagSet *flag.FlagSet, options *Kubeadm)

func AddKubernetesFlags added in v0.6.1

func AddKubernetesFlags(flagSet *flag.FlagSet, options *Kubernetes)

func AddNetworkPluginFlags

func AddNetworkPluginFlags(flagSet *flag.FlagSet, networkType *string)

func AddOfflinePackageFlags

func AddOfflinePackageFlags(flagSet *flag.FlagSet, pkg *string)

func AddOnlineFlags added in v0.7.0

func AddOnlineFlags(flagSet *flag.FlagSet, options *bool)

func AddPublicUserInfoConfigFlags

func AddPublicUserInfoConfigFlags(flagSet *flag.FlagSet, options *PublicHostInfo)

func AddResetFlags

func AddResetFlags(flagSet *flag.FlagSet, options *Reset)

Types

type ClusterNodes

type ClusterNodes struct {
	PublicHostInfo PublicHostInfo

	Masters []string
	Workers []string
}

func (*ClusterNodes) ApplyTo

func (c *ClusterNodes) ApplyTo(data *rundata.ClusterNodes)

type ContainerEngine

type ContainerEngine struct {
	Version string
}

func (*ContainerEngine) ApplyTo

func (c *ContainerEngine) ApplyTo(data *rundata.ContainerEngine)

type JumpServerHostInfo

type JumpServerHostInfo struct {
	PublicHostInfo
	Host string
}

type Kubeadm

type Kubeadm struct {
	//Version              string
	ControlPlaneEndpoint string
	ImageRepository      string
	Networking           Networking
}

func NewKubeadm

func NewKubeadm() *Kubeadm

func (*Kubeadm) ApplyTo

func (c *Kubeadm) ApplyTo(data *rundata.Kubeadm)

type Kubei

type Kubei struct {
	Reset            Reset
	ClusterNodes     ClusterNodes
	ContainerEngine  ContainerEngine
	Kubernetes       Kubernetes
	JumpServer       map[string]string
	OfflineFile      string
	Online           bool
	CertNotAfterTime int
	NetworkType      string
}

func NewKubei

func NewKubei() *Kubei

func (*Kubei) ApplyTo

func (k *Kubei) ApplyTo(data *rundata.Kubei)

type Kubernetes

type Kubernetes struct {
	Version string
}

func (*Kubernetes) ApplyTo

func (k *Kubernetes) ApplyTo(data *rundata.Kubernetes)

type Networking

type Networking struct {
	ServiceSubnet string
	PodSubnet     string
}

func (*Networking) ApplyTo

func (c *Networking) ApplyTo(data *rundata.Kubeadm)

type PublicHostInfo

type PublicHostInfo struct {
	Key      string
	User     string
	Password string
	Port     string
}

type Reset

type Reset struct {
	RemoveContainerEngine bool
	RemoveKubeComponent   bool
}

func (*Reset) ApplyTo

func (r *Reset) ApplyTo(data *rundata.Reset)

Jump to

Keyboard shortcuts

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