Specify supported drivers per platform
parent
4d02473054
commit
4bc1e1d6a0
4
Makefile
4
Makefile
|
@ -110,6 +110,6 @@ clean:
|
|||
.PHONY: gendocs
|
||||
gendocs: docs/minikube.md
|
||||
|
||||
docs/minikube.md: $(shell find cmd) pkg/minikube/cluster/assets.go
|
||||
docs/minikube.md: $(shell find cmd) $(shell find pkg/minikube/constants) pkg/minikube/cluster/assets.go
|
||||
$(MKGOPATH)
|
||||
cd $(GOPATH)/src/$(REPOPATH) && go run -ldflags="$(K8S_VERSION_LDFLAGS) $(MINIKUBE_LDFLAGS)" gen_help_text.go
|
||||
cd $(GOPATH)/src/$(REPOPATH) && go run -ldflags="$(K8S_VERSION_LDFLAGS) $(MINIKUBE_LDFLAGS)" -tags gendocs gen_help_text.go
|
||||
|
|
|
@ -51,13 +51,6 @@ var LogFlags = [...]string{
|
|||
"vmodule",
|
||||
}
|
||||
|
||||
var SupportedVMDrivers = [...]string{
|
||||
"virtualbox",
|
||||
"vmwarefusion",
|
||||
"kvm",
|
||||
"xhyve",
|
||||
}
|
||||
|
||||
const (
|
||||
DefaultIsoUrl = "https://storage.googleapis.com/minikube/minikube-0.5.iso"
|
||||
DefaultMemory = 1024
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
// +build darwin,!gendocs
|
||||
|
||||
/*
|
||||
Copyright 2016 The Kubernetes Authors All rights reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package constants
|
||||
|
||||
var SupportedVMDrivers = [...]string{
|
||||
"virtualbox",
|
||||
"xhyve",
|
||||
"vmwarefusion",
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
// +build gendocs
|
||||
|
||||
/*
|
||||
Copyright 2016 The Kubernetes Authors All rights reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package constants
|
||||
|
||||
var SupportedVMDrivers = [...]string{
|
||||
"virtualbox",
|
||||
"vmwarefusion",
|
||||
"kvm",
|
||||
"xhyve",
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
// +build linux,!gendocs
|
||||
|
||||
/*
|
||||
Copyright 2016 The Kubernetes Authors All rights reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package constants
|
||||
|
||||
var SupportedVMDrivers = [...]string{
|
||||
"virtualbox",
|
||||
"kvm",
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
// +build windows,!gendocs
|
||||
|
||||
/*
|
||||
Copyright 2016 The Kubernetes Authors All rights reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package constants
|
||||
|
||||
var SupportedVMDrivers = [...]string{
|
||||
"virtualbox",
|
||||
}
|
Loading…
Reference in New Issue