kubeadm

package
v0.0.2-rc0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCoreDNS added in v0.1.0

func AddCoreDNS(client kubernetes.Interface, config *Configuration) error

func AddKubeProxy added in v0.1.0

func AddKubeProxy(client kubernetes.Interface, config *Configuration) error

func BootstrapToken

func BootstrapToken(client kubernetes.Interface, config *Configuration) error

func CreateKubeconfig

func CreateKubeconfig(kubeconfigName string, ca CertificatePrivateKeyPair, config *Configuration) ([]byte, error)

func EncondeToYaml

func EncondeToYaml(o runtime.Object) ([]byte, error)

func GetKubeadmInitConfigurationMap

func GetKubeadmInitConfigurationMap(config Configuration) (map[string]string, error)

func IsCertificatePrivateKeyPairValid

func IsCertificatePrivateKeyPairValid(certificate []byte, privKey []byte) (bool, error)

func IsKubeconfigValid

func IsKubeconfigValid(kubeconfigBytes []byte) bool

func IsPublicKeyPrivateKeyPairValid

func IsPublicKeyPrivateKeyPairValid(pubKey []byte, privKey []byte) (bool, error)

func RemoveCoreDNSAddon added in v0.1.0

func RemoveCoreDNSAddon(ctx context.Context, client kubernetes.Interface) error

func RemoveKubeProxy added in v0.1.0

func RemoveKubeProxy(ctx context.Context, client kubernetes.Interface) error

func UploadKubeadmConfig

func UploadKubeadmConfig(client kubernetes.Interface, config *Configuration) error

func UploadKubeletConfig

func UploadKubeletConfig(client kubernetes.Interface, config *Configuration) error

Types

type CertificatePrivateKeyPair

type CertificatePrivateKeyPair struct {
	Name        string
	Certificate []byte
	PrivateKey  []byte
}

func GenerateCACertificatePrivateKeyPair

func GenerateCACertificatePrivateKeyPair(baseName string, config *Configuration) (*CertificatePrivateKeyPair, error)

func GenerateCertificatePrivateKeyPair

func GenerateCertificatePrivateKeyPair(baseName string, config *Configuration, ca CertificatePrivateKeyPair) (*CertificatePrivateKeyPair, error)

type Configuration

type Configuration struct {
	InitConfiguration kubeadmapi.InitConfiguration
	Kubeconfig        kubeconfigutil.Kubeconfig
	Parameters        Parameters
}

func CreateKubeadmInitConfiguration

func CreateKubeadmInitConfiguration(params Parameters) Configuration

func GetKubeadmInitConfigurationFromMap

func GetKubeadmInitConfigurationFromMap(config map[string]string) (*Configuration, error)

type KubeletConfiguration

type KubeletConfiguration struct {
	TenantControlPlaneDomain        string
	TenantControlPlaneDNSServiceIPs []string
	TenantControlPlaneCgroupDriver  string
}

type Parameters

type Parameters struct {
	TenantControlPlaneName         string
	TenantControlPlaneNamespace    string
	TenantControlPlaneEndpoint     string
	TenantControlPlaneAddress      string
	TenantControlPlanePort         int32
	TenantControlPlaneDomain       string
	TenantControlPlanePodCIDR      string
	TenantControlPlaneServiceCIDR  string
	TenantDNSServiceIPs            []string
	TenantControlPlaneVersion      string
	TenantControlPlaneCGroupDriver string
	ETCDs                          []string
	ETCDCompactionInterval         string
	CertificatesDir                string
	KubeconfigDir                  string
}

type PublicKeyPrivateKeyPair

type PublicKeyPrivateKeyPair struct {
	Name       string
	PublicKey  []byte
	PrivateKey []byte
}

func GeneratePublicKeyPrivateKeyPair

func GeneratePublicKeyPrivateKeyPair(baseName string, config *Configuration) (*PublicKeyPrivateKeyPair, error)

Jump to

Keyboard shortcuts

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