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
|
||||
}
|
||||
var ciliumVals map[string]interface{}
|
||||
switch csp {
|
||||
case cloudprovider.GCP.String():
|
||||
switch cloudprovider.FromString(csp) {
|
||||
case cloudprovider.GCP:
|
||||
ciliumVals = gcpVals
|
||||
case cloudprovider.Azure.String():
|
||||
case cloudprovider.Azure:
|
||||
ciliumVals = azureVals
|
||||
case cloudprovider.QEMU.String():
|
||||
case cloudprovider.QEMU:
|
||||
ciliumVals = qemuVals
|
||||
default:
|
||||
return helm.Deployment{}, fmt.Errorf("unknown csp: %s", csp)
|
||||
|
Loading…
Reference in New Issue
Block a user