configs

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaseConfigsFromConfigMap

func GetBaseConfigsFromConfigMap(ctx context.Context, logger logr.Logger, k8sClient client.Client) (map[string]string, error)

GetBaseConfigsFromConfigMap reads extension ConfigMap and get its "configs" as baseConfigs

func MergeConfigs

func MergeConfigs(logger logr.Logger, configs map[string]string, extensions []v1beta1.Extension) (map[string]string, error)

MergeConfigs merges base configs and values from Shoot.spec.extensions.providerConfig. Result is then used for helm installation charts to be rendered and additional configmaps for cri-resource-manager.

func PrepareConfigTypes

func PrepareConfigTypes(logger logr.Logger, baseConfigs map[string]string, extensions []v1beta1.Extension) (map[string]map[string]string, error)

PrepareConfigTypes merges baseConfigs and configs found in extensions.providerConfig and split that two "static" and "dynamic" types.

Types

type CriResMgrConfig

type CriResMgrConfig struct {
	// Configs is a map of name of config file for cri-resource-manager and its contents.
	Configs map[string]string `json:"configs,omitempty"`
}

CriResMgrConfig is a providerConfig specific type for CRI-res-mgr extension.

Jump to

Keyboard shortcuts

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