Skip to content

Commit d7569b3

Browse files
authored
Merge pull request #5803 from tstromberg/allow-force
Allow CPU count check to be disabled using --force
2 parents 9b4534c + 9cfd207 commit d7569b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/minikube/cmd/start.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ func validateFlags(drvName string) {
741741
} else {
742742
cpuCount = viper.GetInt(cpus)
743743
}
744-
if cpuCount < minimumCPUS {
744+
if cpuCount < minimumCPUS && !viper.GetBool(force) {
745745
exit.UsageT("Requested cpu count {{.requested_cpus}} is less than the minimum allowed of {{.minimum_cpus}}", out.V{"requested_cpus": cpuCount, "minimum_cpus": minimumCPUS})
746746
}
747747

0 commit comments

Comments
 (0)