cluster

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(initConfiguration InitConfiguration) error

Init creates a cluster definition scaffold in the local machine, in the current folder, at a directory named after ClusterName provided in the InitConfiguration parameter

Types

type InitConfiguration

type InitConfiguration struct {
	ClusterName       string
	ControlPlane      string
	PauseImage        string
	KubernetesVersion *versionutil.Version
	ImageRepository   string
	EtcdImageTag      string
	CoreDNSImageTag   string
	CloudProvider     string
	StrictCapDefaults bool
	// Note: UseHyperKube can be removed when we drop the support of
	// provisioning clusters of version 1.17.
	UseHyperKube bool
}

Basic initial cluster configuration

func NewInitConfiguration added in v1.1.0

func NewInitConfiguration(clusterName, cloudProvider, controlPlane, kubernetesDesiredVersion string, strictCapDefaults bool) (InitConfiguration, error)

func (InitConfiguration) ControlPlaneHost added in v1.1.0

func (initConfiguration InitConfiguration) ControlPlaneHost() string

func (InitConfiguration) ControlPlaneHostAndPort added in v1.1.0

func (initConfiguration InitConfiguration) ControlPlaneHostAndPort() string

type ScaffoldFile added in v0.8.0

type ScaffoldFile struct {
	Location    string
	Content     string
	DoNotRender bool
}

Jump to

Keyboard shortcuts

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