machine

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubernetesVersionFromManifest

func GetKubernetesVersionFromManifest(machinesManifestPath string) (string, string, error)

GetKubernetesVersionFromManifest reads the version of the Kubernetes control plane from the provided machines' manifest. If no version is configured, the default Kubernetes version will be returned.

func GetMachinesManifest

func GetMachinesManifest(path string) (string, error)

GetMachinesManifest reads a manifest from the filesystem and updates it with generated names (see: UpdateWithGeneratedNames)

func UpdateWithGeneratedNames

func UpdateWithGeneratedNames(r io.ReadCloser) (string, error)

UpdateWithGeneratedNames generates names for machines, rather than using Kubernetes "generateName". This is necessary as:

  • one can only "kubectl create" manifests with "generateName" fields, not "kubectl apply" them,
  • WKS needs to be as idempotent as possible.

Note that if the customer updates the manifest with their own names, we'll honor those.

func Validate

Validate validates the provided machines.

func WriteMachines added in v0.10.0

func WriteMachines(w io.Writer, machines []*clusterv1.Machine, bml []*existinginfra1.ExistingInfraMachine) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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