clusterctl

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ConfigPath is the path of the mounted clusterctl config.
	ConfigPath = "/config/clusterctl.yaml"
)

Variables

This section is empty.

Functions

func Config

func Config() *corev1.ConfigMap

Config returns current set of embedded turtles clusterctl overrides.

func SyncConfigMap added in v0.22.0

func SyncConfigMap(ctx context.Context, c client.Client, owner string) error

SyncConfigMap updates the Clusterctl ConfigMap with the user-specified overrides from ClusterctlConfig.

Types

type ConfigImage

type ConfigImage struct {
	// Repository sets the container registry override to pull images from.
	Repository string `json:"repository,omitempty"`

	// Tag allows to specify a tag for the images.
	Tag string `json:"tag,omitempty"`
}

ConfigImage is a direct clusterctl representation of image config value.

type ConfigRepository

type ConfigRepository struct {
	Providers turtlesv1.ProviderList `json:"providers"`
	Images    map[string]ConfigImage `json:"images"`
}

ConfigRepository is a direct clusterctl config repository representation.

func ClusterConfig

func ClusterConfig(ctx context.Context, c client.Client) (*ConfigRepository, error)

ClusterConfig collects overrides config from the local in-memory state and the user-specified ClusterctlConfig overrides layer.

func (*ConfigRepository) GetProviderVersion

func (r *ConfigRepository) GetProviderVersion(ctx context.Context, name, providerType string) (version string, providerKnown bool)

GetProviderVersion collects version of the collected provider overrides state. Returns latest if the version is not found.

func (*ConfigRepository) IsLatestVersion

func (r *ConfigRepository) IsLatestVersion(providerVersion, expected string) (bool, error)

IsLatestVersion checks version against the expected max version, and returns false if the version given is newer then the latest in the clusterctlconfig override.

Jump to

Keyboard shortcuts

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