Add check to cilium vals loading

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2023-07-20 09:40:14 +02:00 committed by Daniel Weiße
parent cf0ac148f3
commit 845253373d
2 changed files with 10 additions and 2 deletions

View file

@ -317,7 +317,11 @@ func (c *Client) loadUpgradeValues(ctx context.Context, conf *config.Config, cha
switch chart.Metadata.Name {
case ciliumInfo.chartName:
releaseName = ciliumInfo.releaseName
values = ciliumVals[conf.GetProvider().String()]
var ok bool
values, ok = ciliumVals[conf.GetProvider().String()]
if !ok {
return "", nil, fmt.Errorf("cilium values for csp %q not found", conf.GetProvider().String())
}
case certManagerInfo.chartName:
releaseName = certManagerInfo.releaseName
values = loader.loadCertManagerValues()