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