mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
Fix helm csp selection (#362)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
e57c3991f7
commit
d1495e9285
@ -44,12 +44,12 @@ func (i *ChartLoader) loadCilium(csp string) (helm.Deployment, error) {
|
|||||||
return helm.Deployment{}, err
|
return helm.Deployment{}, err
|
||||||
}
|
}
|
||||||
var ciliumVals map[string]interface{}
|
var ciliumVals map[string]interface{}
|
||||||
switch csp {
|
switch cloudprovider.FromString(csp) {
|
||||||
case cloudprovider.GCP.String():
|
case cloudprovider.GCP:
|
||||||
ciliumVals = gcpVals
|
ciliumVals = gcpVals
|
||||||
case cloudprovider.Azure.String():
|
case cloudprovider.Azure:
|
||||||
ciliumVals = azureVals
|
ciliumVals = azureVals
|
||||||
case cloudprovider.QEMU.String():
|
case cloudprovider.QEMU:
|
||||||
ciliumVals = qemuVals
|
ciliumVals = qemuVals
|
||||||
default:
|
default:
|
||||||
return helm.Deployment{}, fmt.Errorf("unknown csp: %s", csp)
|
return helm.Deployment{}, fmt.Errorf("unknown csp: %s", csp)
|
||||||
|
Loading…
Reference in New Issue
Block a user