kubernetes

package
v1.0.0-rc3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadSELinuxRPMsSigningKey

func DownloadSELinuxRPMsSigningKey(gpgKeysDir string) error

func ParseKubernetesConfig

func ParseKubernetesConfig(configFile string) (map[string]any, error)

func SELinuxPackage

func SELinuxPackage(version string) (string, error)

func SELinuxRepository

func SELinuxRepository(version string) (image.AddRepo, error)

func ServersCount

func ServersCount(nodes []image.Node) int

Types

type ArtefactDownloader

type ArtefactDownloader struct {
	Cache cache
}

func (ArtefactDownloader) DownloadK3sArtefacts

func (d ArtefactDownloader) DownloadK3sArtefacts(arch image.Arch, version, installPath, imagesPath string) error

func (ArtefactDownloader) DownloadRKE2Artefacts

func (d ArtefactDownloader) DownloadRKE2Artefacts(arch image.Arch, version, cni string, multusEnabled bool, installPath, imagesPath string) error

type Cluster

type Cluster struct {
	// InitialiserName is the hostname of the initialiser node.
	// Defaults to the first configured server if not explicitly selected.
	InitialiserName string
	// InitialiserConfig contains the server configuration for the node initialising a multi node cluster.
	InitialiserConfig map[string]any
	// ServerConfig contains the server configurations for a single node cluster
	// or the additional server nodes in a multi node cluster.
	ServerConfig map[string]any
	// AgentConfig contains the agent configurations in multi node clusters.
	AgentConfig map[string]any
}

func NewCluster

func NewCluster(kubernetes *image.Kubernetes, configPath string) (*Cluster, error)

func (*Cluster) ExtractCNI

func (c *Cluster) ExtractCNI() (cni string, multusEnabled bool, err error)

type ScriptDownloader

type ScriptDownloader struct{}

func (ScriptDownloader) DownloadInstallScript

func (d ScriptDownloader) DownloadInstallScript(distribution, destinationPath string) (string, error)

Jump to

Keyboard shortcuts

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