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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.