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

@ -155,7 +155,11 @@ func (i *ChartLoader) loadRelease(info chartInfo, helmWaitMode helm.WaitMode) (h
switch info.releaseName {
case ciliumInfo.releaseName:
values = ciliumVals[i.csp.String()]
var ok bool
values, ok = ciliumVals[i.csp.String()]
if !ok {
return helm.Release{}, fmt.Errorf("cilium values for csp %q not found", i.csp.String())
}
case certManagerInfo.releaseName:
values = i.loadCertManagerValues()
case constellationOperatorsInfo.releaseName: