Specify supported drivers per platform

pull/413/head
Jimmi Dyson 2016-07-27 16:38:16 +01:00
parent 4d02473054
commit 4bc1e1d6a0
No known key found for this signature in database
GPG Key ID: 978CD4AF4C1E87F5
6 changed files with 100 additions and 9 deletions

View File

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

View File

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

View File

@ -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",
}

View File

@ -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",
}

View File

@ -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",
}

View File

@ -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",
}