Skip to content

Commit b200aca

Browse files
remove assumption that default-storageclass should always be defined
1 parent 21c250f commit b200aca

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

minikube/resource_cluster.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -387,18 +387,10 @@ func initialiseMinikubeClient(d *schema.ResourceData, m interface{}) (service.Cl
387387

388388
func getAddons(addons interface{}) []string {
389389
addonStrings := make([]string, len(addons.([]interface{})))
390-
userDefinedStorageClass := false
391390
for i, v := range addons.([]interface{}) {
392-
if v == "default-storageclass" {
393-
userDefinedStorageClass = true
394-
}
395391
addonStrings[i] = v.(string)
396392
}
397393

398-
if !userDefinedStorageClass {
399-
addonStrings = append(addonStrings, "default-storageclass")
400-
}
401-
402394
sort.Strings(addonStrings) //to ensure consistency with TF state
403395

404396
return addonStrings

0 commit comments

Comments
 (0)