mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
Add check to cilium vals loading
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
cf0ac148f3
commit
845253373d
@ -317,7 +317,11 @@ func (c *Client) loadUpgradeValues(ctx context.Context, conf *config.Config, cha
|
|||||||
switch chart.Metadata.Name {
|
switch chart.Metadata.Name {
|
||||||
case ciliumInfo.chartName:
|
case ciliumInfo.chartName:
|
||||||
releaseName = ciliumInfo.releaseName
|
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:
|
case certManagerInfo.chartName:
|
||||||
releaseName = certManagerInfo.releaseName
|
releaseName = certManagerInfo.releaseName
|
||||||
values = loader.loadCertManagerValues()
|
values = loader.loadCertManagerValues()
|
||||||
|
@ -155,7 +155,11 @@ func (i *ChartLoader) loadRelease(info chartInfo, helmWaitMode helm.WaitMode) (h
|
|||||||
|
|
||||||
switch info.releaseName {
|
switch info.releaseName {
|
||||||
case ciliumInfo.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:
|
case certManagerInfo.releaseName:
|
||||||
values = i.loadCertManagerValues()
|
values = i.loadCertManagerValues()
|
||||||
case constellationOperatorsInfo.releaseName:
|
case constellationOperatorsInfo.releaseName:
|
||||||
|
Loading…
Reference in New Issue
Block a user