variables

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package variables calculates variables for patching.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ControlPlane

func ControlPlane(cpTopology *clusterv1.ControlPlaneTopology, cp, cpInfrastructureMachineTemplate *unstructured.Unstructured, patchVariableDefinitions map[string]bool) ([]runtimehooksv1.Variable, error)

ControlPlane returns variables that apply to templates belonging to the ControlPlane.

func GetVariableValue added in v1.2.0

func GetVariableValue(variables map[string]apiextensionsv1.JSON, variablePath string) (*apiextensionsv1.JSON, error)

GetVariableValue returns a variable from the variables map.

func Global

func Global(clusterTopology *clusterv1.Topology, cluster *clusterv1.Cluster, patchVariableDefinitions map[string]bool) ([]runtimehooksv1.Variable, error)

Global returns variables that apply to all the templates, including user provided variables and builtin variables for the Cluster object.

func IsNotFoundError added in v1.3.0

func IsNotFoundError(err error) bool

IsNotFoundError checks if the passed error is a notFoundError.

func MachineDeployment

func MachineDeployment(mdTopology *clusterv1.MachineDeploymentTopology, md *clusterv1.MachineDeployment, mdBootstrapTemplate, mdInfrastructureMachineTemplate *unstructured.Unstructured, patchVariableDefinitions map[string]bool) ([]runtimehooksv1.Variable, error)

MachineDeployment returns variables that apply to templates belonging to a MachineDeployment.

func MachinePool added in v1.6.0

func MachinePool(mpTopology *clusterv1.MachinePoolTopology, mp *expv1.MachinePool, mpBootstrapObject, mpInfrastructureMachinePool *unstructured.Unstructured, patchVariableDefinitions map[string]bool) ([]runtimehooksv1.Variable, error)

MachinePool returns variables that apply to templates belonging to a MachinePool.

Types

This section is empty.

Jump to

Keyboard shortcuts

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