Fix helm csp selection (#362)

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2022-08-24 09:45:02 +02:00 committed by GitHub
parent e57c3991f7
commit d1495e9285

View File

@ -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)