Documentation ¶
Index ¶
- func GetKubernetesVersionFromManifest(machinesManifestPath string) (string, string, error)
- func GetMachinesManifest(path string) (string, error)
- func UpdateWithGeneratedNames(r io.ReadCloser) (string, error)
- func Validate(machines []*clusterv1.Machine, bl []*existinginfra1.ExistingInfraMachine) field.ErrorList
- func WriteMachines(w io.Writer, machines []*clusterv1.Machine, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKubernetesVersionFromManifest ¶
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 ¶
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 ¶
func Validate(machines []*clusterv1.Machine, bl []*existinginfra1.ExistingInfraMachine) field.ErrorList
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.
Click to show internal directories.
Click to hide internal directories.