bootstrap

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKubeconfigs

func CreateKubeconfigs(cfg *kubeadmapi.InitConfiguration, kubeConfigDir string) error

func CreateNewBootstrapToken

func CreateNewBootstrapToken() (string, error)

func CreatePKISACertificates

func CreatePKISACertificates(cfg *kubeadmapi.InitConfiguration) error

func GetDiscoveryHashes

func GetDiscoveryHashes(kubeConfigFile string) ([]string, error)

Types

type Spec

type Spec struct {
	azhelpers.CloudConfiguration `json:"inline"`
	DNSPrefix                    string   `json:"dnsPrefix,omitempty"`
	ClusterName                  string   `json:"clusterName,omitempty"`
	CACertificate                string   `json:"caCertificate,omitempty"`
	CACertificateKey             string   `json:"caCertificateKey,omitempty"`
	ServiceAccountKey            string   `json:"serviceAccountKey,omitempty"`
	ServiceAccountPub            string   `json:"serviceAccountPub,omitempty"`
	FrontProxyCACertificate      string   `json:"frontProxyCACertificate,omitempty"`
	FrontProxyCACertificateKey   string   `json:"frontProxyCACertificateKey,omitempty"`
	EtcdCACertificate            string   `json:"etcdCACertificate,omitempty"`
	EtcdCACertificateKey         string   `json:"etcdCACertificateKey,omitempty"`
	AdminKubeConfig              string   `json:"adminKubeConfig,omitempty"`
	CustomerKubeConfig           string   `json:"customerKubeConfig,omitempty"`
	DiscoveryHashes              []string `json:"discoveryHashes,omitempty"`
	PublicDNSName                string   `json:"publicDNSName,omitempty"`
	PublicIPAdress               string   `json:"publicIPAddress,omitempty"`
	InternalDNSName              string   `json:"internalDNSName,omitempty"`
	AzureCloudProviderConfig     string   `json:"azureCloudProviderConfig,omitempty"`
	BootstrapVMSKUType           string   `json:"bootstrapVMSKUType,omitempty"`
	BootstrapKubernetesVersion   string   `json:"bootstrapKubernetesVersion,omitempty"`
}

func CreateSpec

func CreateSpec(cloudConfig *azhelpers.CloudConfiguration, dnsPrefix, vmSKUType, kubernetesVersion string) (*Spec, error)

func (*Spec) Bootstrap

func (spec *Spec) Bootstrap() error

func (*Spec) CleanupInfrastructure

func (spec *Spec) CleanupInfrastructure() error

func (*Spec) CreateBaseInfrastructure

func (spec *Spec) CreateBaseInfrastructure() error

func (*Spec) CreateInfrastructure

func (spec *Spec) CreateInfrastructure() error

func (*Spec) DeepCopyInto

func (in *Spec) DeepCopyInto(out *Spec)

func (*Spec) GetBootstrapStartupScript added in v0.1.3

func (spec *Spec) GetBootstrapStartupScript(kubernetesVersion string) string

func (*Spec) GetEncodedBootstrapStartupScript added in v0.1.3

func (spec *Spec) GetEncodedBootstrapStartupScript(kubernetesVersion string) string

func (*Spec) UpdateSpec

func (spec *Spec) UpdateSpec() error

Jump to

Keyboard shortcuts

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