variables

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterVariablesToVariablesMap

func ClusterVariablesToVariablesMap(
	variables []v1beta1.ClusterVariable,
) map[string]apiextensionsv1.JSON

ClusterVariablesToVariablesMap converts a list of ClusterVariables to a map of JSON (name is the map key). See: https://github.com/kubernetes-sigs/cluster-api/blob/v1.5.1/internal/controllers/topology/cluster/patches/variables/variables.go#L445

func Get

func Get[T any](
	variables map[string]apiextensionsv1.JSON,
	name string,
	fields ...string,
) (value T, found bool, err error)

Get finds and parses variable to given type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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