Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Chu Peng 楚鹏
minikube
提交
6b2d1ed1
M
minikube
项目概览
Chu Peng 楚鹏
/
minikube
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
minikube
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6b2d1ed1
编写于
5月 05, 2016
作者:
L
Lucas Käldström
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Restructure the whole project, gofmt and improve the makefile
上级
f0ad2626
变更
27
隐藏空白更改
内联
并排
Showing
27 changed file
with
39 addition
and
25 deletion
+39
-25
Makefile
Makefile
+19
-5
cmd/localkube/main.go
cmd/localkube/main.go
+1
-1
cmd/minikube/cmd/delete.go
cmd/minikube/cmd/delete.go
+2
-2
cmd/minikube/cmd/root.go
cmd/minikube/cmd/root.go
+1
-1
cmd/minikube/cmd/root_test.go
cmd/minikube/cmd/root_test.go
+1
-1
cmd/minikube/cmd/start.go
cmd/minikube/cmd/start.go
+2
-2
cmd/minikube/cmd/status.go
cmd/minikube/cmd/status.go
+2
-2
cmd/minikube/cmd/stop.go
cmd/minikube/cmd/stop.go
+2
-2
cmd/minikube/main.go
cmd/minikube/main.go
+2
-2
pkg/localkube/apiserver.go
pkg/localkube/apiserver.go
+0
-0
pkg/localkube/controller-manager.go
pkg/localkube/controller-manager.go
+0
-0
pkg/localkube/dns.go
pkg/localkube/dns.go
+1
-1
pkg/localkube/etcd.go
pkg/localkube/etcd.go
+0
-0
pkg/localkube/kube2sky/kube2sky.go
pkg/localkube/kube2sky/kube2sky.go
+2
-2
pkg/localkube/kubelet.go
pkg/localkube/kubelet.go
+0
-0
pkg/localkube/localkube.go
pkg/localkube/localkube.go
+0
-0
pkg/localkube/proxy.go
pkg/localkube/proxy.go
+0
-0
pkg/localkube/scheduler.go
pkg/localkube/scheduler.go
+0
-0
pkg/localkube/server.go
pkg/localkube/server.go
+0
-0
pkg/minikube/cluster/cluster.go
pkg/minikube/cluster/cluster.go
+1
-1
pkg/minikube/cluster/cluster_test.go
pkg/minikube/cluster/cluster_test.go
+2
-2
pkg/minikube/constants/constants.go
pkg/minikube/constants/constants.go
+0
-0
pkg/minikube/machine/client.go
pkg/minikube/machine/client.go
+0
-0
pkg/minikube/machine/client_test.go
pkg/minikube/machine/client_test.go
+1
-1
pkg/minikube/tests/api_mock.go
pkg/minikube/tests/api_mock.go
+0
-0
pkg/minikube/tests/driver_mock.go
pkg/minikube/tests/driver_mock.go
+0
-0
test/integration/start_stop_delete_test.go
test/integration/start_stop_delete_test.go
+0
-0
未找到文件。
Makefile
浏览文件 @
6b2d1ed1
# 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.
GOOS
?=
$(
shell
go
env
GOOS
)
GOARCH
?=
$(
shell
go
env
GOARCH
)
BUILD_DIR
?=
./out
GOPATH
:=
$(
shell
pwd
)
/.gopath
REPOPATH
?=
k8s.io/minikube
GO15VENDOREXPERIMENT
:=
1
export
GO15VENDOREXPERIMENT
=
1
clean
:
rm
-rf
$(GOPATH)
rm
-rf
$(BUILD_DIR)
gopath
:
clean
gopath
:
rm
-rf
$(GOPATH)
mkdir
-p
$(
shell
dirname
$(GOPATH)
/src/
$(REPOPATH)
)
ln
-s
$(
shell
pwd
)
$(GOPATH)
/src/
$(REPOPATH)
...
...
@@ -23,14 +37,14 @@ localkube: localkube-$(GOOS)-$(GOARCH)
cp
$(BUILD_DIR)
/localkube-
$(GOOS)
-
$(GOARCH)
$(BUILD_DIR)
/localkube
minikube-$(GOOS)-$(GOARCH)
:
gopath
GOPATH
=
$(GOPATH)
CGO_ENABLED
=
0
GOARCH
=
$(GOARCH)
GOOS
=
$(GOOS)
go build
--installsuffix
cgo
-a
-o
$(BUILD_DIR)
/minikube-
$(GOOS)
-
$(GOARCH)
./cmd/minikube
CGO_ENABLED
=
0
GOARCH
=
$(GOARCH)
GOOS
=
$(GOOS)
go build
--installsuffix
cgo
-a
-o
$(BUILD_DIR)
/minikube-
$(GOOS)
-
$(GOARCH)
./cmd/minikube
localkube-$(GOOS)-$(GOARCH)
:
gopath
GOARCH
=
$(GOARCH)
GOOS
=
$(GOOS)
CGO_ENABLED
=
1 go build
-o
$(BUILD_DIR)
/localkube-
$(GOOS)
-
$(GOARCH)
-i
./cmd/localkube
GOARCH
=
$(GOARCH)
GOOS
=
$(GOOS)
go build
-o
$(BUILD_DIR)
/localkube-
$(GOOS)
-
$(GOARCH)
./cmd/localkube
.PHONY
:
integration
integration
:
minikube
go
test
-v
./integration
--tags
=
integration
go
test
-v
./
test/
integration
--tags
=
integration
.PHONY
:
test
test
:
gopath
...
...
cmd/localkube/main.go
浏览文件 @
6b2d1ed1
...
...
@@ -5,7 +5,7 @@ import (
"os"
"os/signal"
"k8s.io/minikube/localkube"
"k8s.io/minikube/
pkg/
localkube"
)
var
(
...
...
c
li
/cmd/delete.go
→
c
md/minikube
/cmd/delete.go
浏览文件 @
6b2d1ed1
...
...
@@ -22,8 +22,8 @@ import (
"github.com/docker/machine/libmachine"
"github.com/spf13/cobra"
"k8s.io/minikube/
cli
/cluster"
"k8s.io/minikube/
cli
/constants"
"k8s.io/minikube/
pkg/minikube
/cluster"
"k8s.io/minikube/
pkg/minikube
/constants"
)
// deleteCmd represents the delete command
...
...
c
li
/cmd/root.go
→
c
md/minikube
/cmd/root.go
浏览文件 @
6b2d1ed1
...
...
@@ -22,7 +22,7 @@ import (
"os"
"github.com/spf13/cobra"
"k8s.io/minikube/
cli
/constants"
"k8s.io/minikube/
pkg/minikube
/constants"
)
var
dirs
=
[
...
]
string
{
...
...
c
li
/cmd/root_test.go
→
c
md/minikube
/cmd/root_test.go
浏览文件 @
6b2d1ed1
...
...
@@ -23,7 +23,7 @@ import (
"testing"
"github.com/spf13/cobra"
"k8s.io/minikube/
cli
/constants"
"k8s.io/minikube/
pkg/minikube
/constants"
)
func
makeTempDir
()
string
{
...
...
c
li
/cmd/start.go
→
c
md/minikube
/cmd/start.go
浏览文件 @
6b2d1ed1
...
...
@@ -24,8 +24,8 @@ import (
"github.com/docker/machine/libmachine"
"github.com/spf13/cobra"
"k8s.io/minikube/
cli
/cluster"
"k8s.io/minikube/
cli
/constants"
"k8s.io/minikube/
pkg/minikube
/cluster"
"k8s.io/minikube/
pkg/minikube
/constants"
)
// startCmd represents the start command
...
...
c
li
/cmd/status.go
→
c
md/minikube
/cmd/status.go
浏览文件 @
6b2d1ed1
...
...
@@ -23,8 +23,8 @@ import (
"github.com/docker/machine/libmachine"
"github.com/spf13/cobra"
"k8s.io/minikube/
cli
/cluster"
"k8s.io/minikube/
cli
/constants"
"k8s.io/minikube/
pkg/minikube
/cluster"
"k8s.io/minikube/
pkg/minikube
/constants"
)
// statusCmd represents the status command
...
...
c
li
/cmd/stop.go
→
c
md/minikube
/cmd/stop.go
浏览文件 @
6b2d1ed1
...
...
@@ -22,8 +22,8 @@ import (
"github.com/docker/machine/libmachine"
"github.com/spf13/cobra"
"k8s.io/minikube/
cli
/cluster"
"k8s.io/minikube/
cli
/constants"
"k8s.io/minikube/
pkg/minikube
/cluster"
"k8s.io/minikube/
pkg/minikube
/constants"
)
// stopCmd represents the stop command
...
...
cmd/minikube/main.go
浏览文件 @
6b2d1ed1
...
...
@@ -17,8 +17,8 @@ limitations under the License.
package
main
import
(
"k8s.io/minikube/c
li
/cmd"
"k8s.io/minikube/
cli
/machine"
"k8s.io/minikube/c
md/minikube
/cmd"
"k8s.io/minikube/
pkg/minikube
/machine"
)
func
main
()
{
...
...
localkube/apiserver.go
→
pkg/
localkube/apiserver.go
浏览文件 @
6b2d1ed1
文件已移动
localkube/controller-manager.go
→
pkg/
localkube/controller-manager.go
浏览文件 @
6b2d1ed1
文件已移动
localkube/dns.go
→
pkg/
localkube/dns.go
浏览文件 @
6b2d1ed1
...
...
@@ -22,7 +22,7 @@ import (
"os"
"time"
kube2sky
"k8s.io/minikube/k2s
"
"k8s.io/minikube/pkg/localkube/kube2sky
"
"github.com/coreos/go-etcd/etcd"
backendetcd
"github.com/skynetservices/skydns/backends/etcd"
...
...
localkube/etcd.go
→
pkg/
localkube/etcd.go
浏览文件 @
6b2d1ed1
文件已移动
k2s
/kube2sky.go
→
pkg/localkube/kube2sky
/kube2sky.go
浏览文件 @
6b2d1ed1
...
...
@@ -17,10 +17,10 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// kube2sky is a bridge between Kubernetes and SkyDNS.
It watches the
// kube2sky is a bridge between Kubernetes and SkyDNS. It watches the
// Kubernetes master for changes in Services and manifests them into etcd for
// SkyDNS to serve as DNS records.
package
lib
package
kube2sky
import
(
"encoding/json"
...
...
localkube/kubelet.go
→
pkg/
localkube/kubelet.go
浏览文件 @
6b2d1ed1
文件已移动
localkube/localkube.go
→
pkg/
localkube/localkube.go
浏览文件 @
6b2d1ed1
文件已移动
localkube/proxy.go
→
pkg/
localkube/proxy.go
浏览文件 @
6b2d1ed1
文件已移动
localkube/scheduler.go
→
pkg/
localkube/scheduler.go
浏览文件 @
6b2d1ed1
文件已移动
localkube/server.go
→
pkg/
localkube/server.go
浏览文件 @
6b2d1ed1
文件已移动
cli
/cluster/cluster.go
→
pkg/minikube
/cluster/cluster.go
浏览文件 @
6b2d1ed1
...
...
@@ -27,7 +27,7 @@ import (
"github.com/docker/machine/libmachine"
"github.com/docker/machine/libmachine/host"
"github.com/docker/machine/libmachine/state"
"k8s.io/minikube/
cli
/constants"
"k8s.io/minikube/
pkg/minikube
/constants"
)
// StartHost starts a host VM.
...
...
cli
/cluster/cluster_test.go
→
pkg/minikube
/cluster/cluster_test.go
浏览文件 @
6b2d1ed1
...
...
@@ -23,8 +23,8 @@ import (
"github.com/docker/machine/libmachine/host"
"github.com/docker/machine/libmachine/state"
"k8s.io/minikube/
cli
/constants"
"k8s.io/minikube/
cli
/tests"
"k8s.io/minikube/
pkg/minikube
/constants"
"k8s.io/minikube/
pkg/minikube
/tests"
)
func
TestCreateHost
(
t
*
testing
.
T
)
{
...
...
cli
/constants/constants.go
→
pkg/minikube
/constants/constants.go
浏览文件 @
6b2d1ed1
文件已移动
cli
/machine/client.go
→
pkg/minikube
/machine/client.go
浏览文件 @
6b2d1ed1
文件已移动
cli
/machine/client_test.go
→
pkg/minikube
/machine/client_test.go
浏览文件 @
6b2d1ed1
...
...
@@ -25,7 +25,7 @@ import (
"testing"
"github.com/docker/machine/libmachine/drivers/plugin/localbinary"
"k8s.io/minikube/
cli
/constants"
"k8s.io/minikube/
pkg/minikube
/constants"
)
func
makeTempDir
()
string
{
...
...
cli
/tests/api_mock.go
→
pkg/minikube
/tests/api_mock.go
浏览文件 @
6b2d1ed1
文件已移动
cli
/tests/driver_mock.go
→
pkg/minikube
/tests/driver_mock.go
浏览文件 @
6b2d1ed1
文件已移动
integration/start_stop_delete_test.go
→
test/
integration/start_stop_delete_test.go
浏览文件 @
6b2d1ed1
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录