Documentation ¶
Overview ¶
Package variables calculates variables for patching.
Index ¶
- func ControlPlane(cpTopology *clusterv1.ControlPlaneTopology, ...) ([]runtimehooksv1.Variable, error)
- func GetVariableValue(variables map[string]apiextensionsv1.JSON, variablePath string) (*apiextensionsv1.JSON, error)
- func Global(clusterTopology *clusterv1.Topology, cluster *clusterv1.Cluster, ...) ([]runtimehooksv1.Variable, error)
- func IsNotFoundError(err error) bool
- func MachineDeployment(mdTopology *clusterv1.MachineDeploymentTopology, ...) ([]runtimehooksv1.Variable, error)
- func MachinePool(mpTopology *clusterv1.MachinePoolTopology, mp *expv1.MachinePool, ...) ([]runtimehooksv1.Variable, error)
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
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.
Click to show internal directories.
Click to hide internal directories.