Documentation ¶
Index ¶
- func GetBaseConfigsFromConfigMap(ctx context.Context, logger logr.Logger, k8sClient client.Client) (map[string]string, error)
- func MergeConfigs(logger logr.Logger, configs map[string]string, extensions []v1beta1.Extension) (map[string]string, error)
- func PrepareConfigTypes(logger logr.Logger, baseConfigs map[string]string, ...) (map[string]map[string]string, error)
- type CriResMgrConfig
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.
Click to show internal directories.
Click to hide internal directories.