Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Chu Peng 楚鹏
minikube
提交
af99a13e
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,发现更多精彩内容 >>
提交
af99a13e
编写于
7月 15, 2020
作者:
S
Sharif Elgamal
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of github.com:kubernetes/minikube into master
上级
9f2f604b
1467e8f7
变更
89
隐藏空白更改
内联
并排
Showing
89 changed file
with
480 addition
and
49 deletion
+480
-49
cmd/minikube/cmd/start.go
cmd/minikube/cmd/start.go
+1
-1
deploy/addons/ingress/ingress-dp.yaml.tmpl
deploy/addons/ingress/ingress-dp.yaml.tmpl
+3
-3
deploy/iso/minikube-iso/package/podman/podman.hash
deploy/iso/minikube-iso/package/podman/podman.hash
+1
-16
deploy/iso/minikube-iso/package/podman/podman.mk
deploy/iso/minikube-iso/package/podman/podman.mk
+1
-1
pkg/minikube/bootstrapper/bsutil/ktmpl/v1alpha3.go
pkg/minikube/bootstrapper/bsutil/ktmpl/v1alpha3.go
+2
-0
pkg/minikube/bootstrapper/bsutil/ktmpl/v1beta1.go
pkg/minikube/bootstrapper/bsutil/ktmpl/v1beta1.go
+5
-0
pkg/minikube/bootstrapper/bsutil/ktmpl/v1beta2.go
pkg/minikube/bootstrapper/bsutil/ktmpl/v1beta2.go
+5
-0
pkg/minikube/bootstrapper/bsutil/kubeadm.go
pkg/minikube/bootstrapper/bsutil/kubeadm.go
+11
-0
pkg/minikube/bootstrapper/bsutil/kubeadm_test.go
pkg/minikube/bootstrapper/bsutil/kubeadm_test.go
+13
-2
pkg/minikube/bootstrapper/bsutil/kubelet.go
pkg/minikube/bootstrapper/bsutil/kubelet.go
+0
-5
pkg/minikube/bootstrapper/bsutil/kubelet_test.go
pkg/minikube/bootstrapper/bsutil/kubelet_test.go
+1
-3
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/containerd-api-port.yaml
...otstrapper/bsutil/testdata/v1.12/containerd-api-port.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/containerd-pod-network-cidr.yaml
...er/bsutil/testdata/v1.12/containerd-pod-network-cidr.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/containerd.yaml
...nikube/bootstrapper/bsutil/testdata/v1.12/containerd.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/crio-options-gates.yaml
...ootstrapper/bsutil/testdata/v1.12/crio-options-gates.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/crio.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/crio.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/default.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/default.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/dns.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/dns.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/image-repository.yaml
.../bootstrapper/bsutil/testdata/v1.12/image-repository.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/options.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/options.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/containerd-api-port.yaml
...otstrapper/bsutil/testdata/v1.13/containerd-api-port.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/containerd-pod-network-cidr.yaml
...er/bsutil/testdata/v1.13/containerd-pod-network-cidr.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/containerd.yaml
...nikube/bootstrapper/bsutil/testdata/v1.13/containerd.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/crio-options-gates.yaml
...ootstrapper/bsutil/testdata/v1.13/crio-options-gates.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/crio.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/crio.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/default.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/default.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/dns.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/dns.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/image-repository.yaml
.../bootstrapper/bsutil/testdata/v1.13/image-repository.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/options.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/options.yaml
+2
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/containerd-api-port.yaml
...otstrapper/bsutil/testdata/v1.14/containerd-api-port.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/containerd-pod-network-cidr.yaml
...er/bsutil/testdata/v1.14/containerd-pod-network-cidr.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/containerd.yaml
...nikube/bootstrapper/bsutil/testdata/v1.14/containerd.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/crio-options-gates.yaml
...ootstrapper/bsutil/testdata/v1.14/crio-options-gates.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/crio.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/crio.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/default.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/default.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/dns.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/dns.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/image-repository.yaml
.../bootstrapper/bsutil/testdata/v1.14/image-repository.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/options.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/options.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/containerd-api-port.yaml
...otstrapper/bsutil/testdata/v1.15/containerd-api-port.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/containerd-pod-network-cidr.yaml
...er/bsutil/testdata/v1.15/containerd-pod-network-cidr.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/containerd.yaml
...nikube/bootstrapper/bsutil/testdata/v1.15/containerd.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/crio-options-gates.yaml
...ootstrapper/bsutil/testdata/v1.15/crio-options-gates.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/crio.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/crio.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/default.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/default.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/dns.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/dns.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/image-repository.yaml
.../bootstrapper/bsutil/testdata/v1.15/image-repository.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/options.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/options.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/containerd-api-port.yaml
...otstrapper/bsutil/testdata/v1.16/containerd-api-port.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/containerd-pod-network-cidr.yaml
...er/bsutil/testdata/v1.16/containerd-pod-network-cidr.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/containerd.yaml
...nikube/bootstrapper/bsutil/testdata/v1.16/containerd.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/crio-options-gates.yaml
...ootstrapper/bsutil/testdata/v1.16/crio-options-gates.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/crio.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/crio.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/default.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/default.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/dns.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/dns.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/image-repository.yaml
.../bootstrapper/bsutil/testdata/v1.16/image-repository.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/options.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/options.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/containerd-api-port.yaml
...otstrapper/bsutil/testdata/v1.17/containerd-api-port.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/containerd-pod-network-cidr.yaml
...er/bsutil/testdata/v1.17/containerd-pod-network-cidr.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/containerd.yaml
...nikube/bootstrapper/bsutil/testdata/v1.17/containerd.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/crio-options-gates.yaml
...ootstrapper/bsutil/testdata/v1.17/crio-options-gates.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/crio.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/crio.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/default.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/default.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/dns.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/dns.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/image-repository.yaml
.../bootstrapper/bsutil/testdata/v1.17/image-repository.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/options.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/options.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/containerd-api-port.yaml
...otstrapper/bsutil/testdata/v1.18/containerd-api-port.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/containerd-pod-network-cidr.yaml
...er/bsutil/testdata/v1.18/containerd-pod-network-cidr.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/containerd.yaml
...nikube/bootstrapper/bsutil/testdata/v1.18/containerd.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/crio-options-gates.yaml
...ootstrapper/bsutil/testdata/v1.18/crio-options-gates.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/crio.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/crio.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/default.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/default.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/dns.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/dns.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/image-repository.yaml
.../bootstrapper/bsutil/testdata/v1.18/image-repository.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/options.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/options.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/containerd-api-port.yaml
...otstrapper/bsutil/testdata/v1.19/containerd-api-port.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/containerd-pod-network-cidr.yaml
...er/bsutil/testdata/v1.19/containerd-pod-network-cidr.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/containerd.yaml
...nikube/bootstrapper/bsutil/testdata/v1.19/containerd.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/crio-options-gates.yaml
...ootstrapper/bsutil/testdata/v1.19/crio-options-gates.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/crio.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/crio.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/default.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/default.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/dns.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/dns.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/image-repository.yaml
.../bootstrapper/bsutil/testdata/v1.19/image-repository.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/options.yaml
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/options.yaml
+5
-0
pkg/minikube/bootstrapper/bsutil/versions.go
pkg/minikube/bootstrapper/bsutil/versions.go
+12
-12
pkg/minikube/download/download.go
pkg/minikube/download/download.go
+6
-1
pkg/minikube/download/json_output.go
pkg/minikube/download/json_output.go
+70
-0
pkg/minikube/machine/cache_images.go
pkg/minikube/machine/cache_images.go
+6
-4
pkg/minikube/out/register/json.go
pkg/minikube/out/register/json.go
+12
-0
pkg/minikube/out/register/log.go
pkg/minikube/out/register/log.go
+25
-1
未找到文件。
cmd/minikube/cmd/start.go
浏览文件 @
af99a13e
...
...
@@ -161,7 +161,7 @@ func runStart(cmd *cobra.Command, args []string) {
starter
,
err
:=
provisionWithDriver
(
cmd
,
ds
,
existing
)
if
err
!=
nil
{
node
.
MaybeExitWithAdvice
(
err
)
machine
.
MaybeDisplayAdvice
(
err
,
viper
.
GetString
(
"driver"
)
)
machine
.
MaybeDisplayAdvice
(
err
,
ds
.
Name
)
if
specified
{
// If the user specified a driver, don't fallback to anything else
exit
.
WithError
(
"error provisioning host"
,
err
)
...
...
deploy/addons/ingress/ingress-dp.yaml.tmpl
浏览文件 @
af99a13e
...
...
@@ -48,7 +48,7 @@ spec:
serviceAccountName: ingress-nginx
containers:
- name: controller
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.3
2
.0
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.3
3
.0
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
...
...
@@ -212,7 +212,7 @@ spec:
spec:
containers:
- name: create
image: jettech/kube-webhook-certgen:v1.2.
0
image: jettech/kube-webhook-certgen:v1.2.
2
imagePullPolicy: IfNotPresent
args:
- create
...
...
@@ -247,7 +247,7 @@ spec:
spec:
containers:
- name: patch
image: jettech/kube-webhook-certgen:v1.2.
0
image: jettech/kube-webhook-certgen:v1.2.
2
imagePullPolicy:
args:
- patch
...
...
deploy/iso/minikube-iso/package/podman/podman.hash
浏览文件 @
af99a13e
sha256 8f71046aa2ad9e380d1f50a800a8e5cc9801bf645a2831712378742282a0a36a v0.4.1.tar.gz
sha256 004d2695cf3de1802b3a1fc70bb03115e33ffe943477c49558b682313cb4fca2 v0.6.1.tar.gz
sha256 0b478f4918b984480b2f24ac5df1f45e31bca798dd8e2364bb56b2810b2ccff6 v0.7.4.tar.gz
sha256 065d2ef4cbbbcb87a7be5e1b3adb36d932819bafae7ccc26ad80f653b4328692 v0.9.3.tar.gz
sha256 f7a462563dd587208eff3c3c0689bc4d01071a8f7933bec2a13126be123f63a8 v1.0.0.tar.gz
sha256 b4d6843e13c0f2f1557ab20b4364bb42ea9102442ee3f1be806c06128aa687d8 v1.2.0.tar.gz
sha256 548a82b62ff183ca9e68f164779d6ded94fce07261242ceb96faa267fcecf56b v1.3.0.tar.gz
sha256 7ccbfa80900cd438468986911038da4c38382ef507a2fa717217faefb738fbc4 v1.3.1.tar.gz
sha256 17fdf68e85106d0848e89825e191198a4079bb6d9ca6dd3e415e5c010192db9e v1.4.0.tar.gz
sha256 45eb7bccd81a1431b0c7a0697829c0bcc397048595d143fd91179b31d22a3c63 v1.4.1.tar.gz
sha256 2e027c1b935f3a03f27ef7f17823ccf334607a17d033d4ce53a90b98294e7f68 v1.4.4.tar.gz
sha256 61b44b739c485125f179044f7aa7dc58c820f771bce4ce495fa555a38dc68b57 v1.6.3.tar.gz
sha256 6e59821320b435543bc7554e73faa66d5956e4ad3f7e7f4ea03bebd6726758e9 v1.6.4.tar.gz
sha256 50960293c2019e38ce69e4cf5f0a683e7fea1562b180e38e38c9355fcd7c4f0d v1.6.5.tar.gz
sha256 69f7ff81da1510ebf2962c1de3170675ca3cd8a24bc00c93742a24bcce17c752 v1.8.2.tar.gz
sha256 2c44c6e5f61578e223dce2a2f48776adb553752a782e309e96f2d608e0ace81b v1.9.3.tar.gz
sha256 a16846fe076aaf2c9ea2e854c3baba9fb838d916be7fb4b5be332e6c92d907d4 v1.9.3.tar.gz
deploy/iso/minikube-iso/package/podman/podman.mk
浏览文件 @
af99a13e
PODMAN_VERSION
=
v1.9.3
PODMAN_COMMIT
=
5d44534fff6877b1cb15b760242279ae6293154c
PODMAN_SITE
=
https://github.com/containers/
libpod
/archive
PODMAN_SITE
=
https://github.com/containers/
podman
/archive
PODMAN_SOURCE
=
$(PODMAN_VERSION)
.tar.gz
PODMAN_LICENSE
=
Apache-2.0
PODMAN_LICENSE_FILES
=
LICENSE
...
...
pkg/minikube/bootstrapper/bsutil/ktmpl/v1alpha3.go
浏览文件 @
af99a13e
...
...
@@ -68,6 +68,7 @@ networking:
---
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
cgroupDriver: {{.CgroupDriver}}
clusterDomain: "cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent: 100
...
...
@@ -76,4 +77,5 @@ evictionHard:
nodefs.inodesFree: "0%"
imagefs.available: "0%"
failSwapOn: false
staticPodPath: {{.StaticPodPath}}
`
))
pkg/minikube/bootstrapper/bsutil/ktmpl/v1beta1.go
浏览文件 @
af99a13e
...
...
@@ -79,6 +79,10 @@ networking:
---
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
authentication:
x509:
clientCAFile: {{.ClientCAFile}}
cgroupDriver: {{.CgroupDriver}}
clusterDomain: "cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent: 100
...
...
@@ -87,6 +91,7 @@ evictionHard:
nodefs.inodesFree: "0%"
imagefs.available: "0%"
failSwapOn: false
staticPodPath: {{.StaticPodPath}}
---
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/ktmpl/v1beta2.go
浏览文件 @
af99a13e
...
...
@@ -83,6 +83,10 @@ networking:
---
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
authentication:
x509:
clientCAFile: {{.ClientCAFile}}
cgroupDriver: {{.CgroupDriver}}
clusterDomain: "cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent: 100
...
...
@@ -91,6 +95,7 @@ evictionHard:
nodefs.inodesFree: "0%"
imagefs.available: "0%"
failSwapOn: false
staticPodPath: {{.StaticPodPath}}
---
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/kubeadm.go
浏览文件 @
af99a13e
...
...
@@ -61,6 +61,11 @@ func GenerateKubeadmYAML(cc config.ClusterConfig, n config.Node, r cruntime.Mana
nodePort
=
constants
.
APIServerPort
}
cgroupDriver
,
err
:=
r
.
CGroupDriver
()
if
err
!=
nil
{
return
nil
,
errors
.
Wrap
(
err
,
"getting cgroup driver"
)
}
componentOpts
,
err
:=
createExtraComponentConfig
(
k8s
.
ExtraOptions
,
version
,
componentFeatureArgs
,
cp
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrap
(
err
,
"generating extra component config for kubeadm"
)
...
...
@@ -96,6 +101,9 @@ func GenerateKubeadmYAML(cc config.ClusterConfig, n config.Node, r cruntime.Mana
FeatureArgs
map
[
string
]
bool
NoTaintMaster
bool
NodeIP
string
CgroupDriver
string
ClientCAFile
string
StaticPodPath
string
ControlPlaneAddress
string
KubeProxyOptions
map
[
string
]
string
}{
...
...
@@ -117,6 +125,9 @@ func GenerateKubeadmYAML(cc config.ClusterConfig, n config.Node, r cruntime.Mana
NoTaintMaster
:
false
,
// That does not work with k8s 1.12+
DNSDomain
:
k8s
.
DNSDomain
,
NodeIP
:
n
.
IP
,
CgroupDriver
:
cgroupDriver
,
ClientCAFile
:
path
.
Join
(
vmpath
.
GuestKubernetesCertsDir
,
"ca.crt"
),
StaticPodPath
:
vmpath
.
GuestManifestsDir
,
ControlPlaneAddress
:
constants
.
ControlPlaneAlias
,
KubeProxyOptions
:
createKubeProxyOptions
(
k8s
.
ExtraOptions
),
}
...
...
pkg/minikube/bootstrapper/bsutil/kubeadm_test.go
浏览文件 @
af99a13e
...
...
@@ -24,6 +24,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/pmezard/go-difflib/difflib"
"k8s.io/minikube/pkg/minikube/command"
"k8s.io/minikube/pkg/minikube/config"
"k8s.io/minikube/pkg/minikube/constants"
"k8s.io/minikube/pkg/minikube/cruntime"
...
...
@@ -108,6 +109,10 @@ nnetworking/dnsDomain value
*/
func
TestGenerateKubeadmYAMLDNS
(
t
*
testing
.
T
)
{
versions
:=
[]
string
{
"v1.19"
,
"v1.18"
,
"v1.17"
,
"v1.16"
,
"v1.15"
,
"v1.14"
,
"v1.13"
,
"v1.12"
}
fcr
:=
command
.
NewFakeCommandRunner
()
fcr
.
SetCommandToOutput
(
map
[
string
]
string
{
"docker info --format {{.CgroupDriver}}"
:
"systemd
\n
"
,
})
tests
:=
[]
struct
{
name
string
runtime
string
...
...
@@ -118,7 +123,7 @@ func TestGenerateKubeadmYAMLDNS(t *testing.T) {
}
for
_
,
version
:=
range
versions
{
for
_
,
tc
:=
range
tests
{
runtime
,
err
:=
cruntime
.
New
(
cruntime
.
Config
{
Type
:
tc
.
runtime
})
runtime
,
err
:=
cruntime
.
New
(
cruntime
.
Config
{
Type
:
tc
.
runtime
,
Runner
:
fcr
})
if
err
!=
nil
{
t
.
Fatalf
(
"runtime: %v"
,
err
)
}
...
...
@@ -174,6 +179,12 @@ func TestGenerateKubeadmYAML(t *testing.T) {
if
err
!=
nil
{
t
.
Errorf
(
"versions: %v"
,
err
)
}
fcr
:=
command
.
NewFakeCommandRunner
()
fcr
.
SetCommandToOutput
(
map
[
string
]
string
{
"docker info --format {{.CgroupDriver}}"
:
"systemd
\n
"
,
"crio config"
:
"cgroup_manager =
\"
systemd
\"\n
"
,
"sudo crictl info"
:
"{
\"
config
\"
: {
\"
systemdCgroup
\"
: true}}"
,
})
tests
:=
[]
struct
{
name
string
runtime
string
...
...
@@ -192,7 +203,7 @@ func TestGenerateKubeadmYAML(t *testing.T) {
}
for
_
,
version
:=
range
versions
{
for
_
,
tc
:=
range
tests
{
runtime
,
err
:=
cruntime
.
New
(
cruntime
.
Config
{
Type
:
tc
.
runtime
})
runtime
,
err
:=
cruntime
.
New
(
cruntime
.
Config
{
Type
:
tc
.
runtime
,
Runner
:
fcr
})
if
err
!=
nil
{
t
.
Fatalf
(
"runtime: %v"
,
err
)
}
...
...
pkg/minikube/bootstrapper/bsutil/kubelet.go
浏览文件 @
af99a13e
...
...
@@ -44,11 +44,6 @@ func extraKubeletOpts(mc config.ClusterConfig, nc config.Node, r cruntime.Manage
return
nil
,
errors
.
Wrap
(
err
,
"generating extra configuration for kubelet"
)
}
cgroupDriver
,
err
:=
r
.
CGroupDriver
()
if
err
==
nil
{
extraOpts
[
"cgroup-driver"
]
=
cgroupDriver
}
for
k
,
v
:=
range
r
.
KubeletOptions
()
{
extraOpts
[
k
]
=
v
}
...
...
pkg/minikube/bootstrapper/bsutil/kubelet_test.go
浏览文件 @
af99a13e
...
...
@@ -21,7 +21,6 @@ import (
"testing"
"github.com/pmezard/go-difflib/difflib"
"k8s.io/minikube/pkg/minikube/command"
"k8s.io/minikube/pkg/minikube/config"
"k8s.io/minikube/pkg/minikube/constants"
"k8s.io/minikube/pkg/minikube/cruntime"
...
...
@@ -176,8 +175,7 @@ ExecStart=/var/lib/minikube/binaries/v1.18.2/kubelet --authorization-mode=Webhoo
for
_
,
tc
:=
range
tests
{
t
.
Run
(
tc
.
description
,
func
(
t
*
testing
.
T
)
{
runtime
,
err
:=
cruntime
.
New
(
cruntime
.
Config
{
Type
:
tc
.
cfg
.
KubernetesConfig
.
ContainerRuntime
,
Runner
:
command
.
NewFakeCommandRunner
()})
runtime
,
err
:=
cruntime
.
New
(
cruntime
.
Config
{
Type
:
tc
.
cfg
.
KubernetesConfig
.
ContainerRuntime
})
if
err
!=
nil
{
t
.
Fatalf
(
"runtime: %v"
,
err
)
}
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/containerd-api-port.yaml
浏览文件 @
af99a13e
...
...
@@ -40,6 +40,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -48,3 +49,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/containerd-pod-network-cidr.yaml
浏览文件 @
af99a13e
...
...
@@ -40,6 +40,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -48,3 +49,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/containerd.yaml
浏览文件 @
af99a13e
...
...
@@ -40,6 +40,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -48,3 +49,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/crio-options-gates.yaml
浏览文件 @
af99a13e
...
...
@@ -48,6 +48,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -56,3 +57,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/crio.yaml
浏览文件 @
af99a13e
...
...
@@ -40,6 +40,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -48,3 +49,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/default.yaml
浏览文件 @
af99a13e
...
...
@@ -40,6 +40,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -48,3 +49,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/dns.yaml
浏览文件 @
af99a13e
...
...
@@ -40,6 +40,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -48,3 +49,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/image-repository.yaml
浏览文件 @
af99a13e
...
...
@@ -41,6 +41,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -49,3 +50,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.12/options.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,3 +54,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/containerd-api-port.yaml
浏览文件 @
af99a13e
...
...
@@ -40,6 +40,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -48,3 +49,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/containerd-pod-network-cidr.yaml
浏览文件 @
af99a13e
...
...
@@ -40,6 +40,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -48,3 +49,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/containerd.yaml
浏览文件 @
af99a13e
...
...
@@ -40,6 +40,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -48,3 +49,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/crio-options-gates.yaml
浏览文件 @
af99a13e
...
...
@@ -48,6 +48,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -56,3 +57,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/crio.yaml
浏览文件 @
af99a13e
...
...
@@ -40,6 +40,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -48,3 +49,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/default.yaml
浏览文件 @
af99a13e
...
...
@@ -40,6 +40,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -48,3 +49,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/dns.yaml
浏览文件 @
af99a13e
...
...
@@ -40,6 +40,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -48,3 +49,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/image-repository.yaml
浏览文件 @
af99a13e
...
...
@@ -41,6 +41,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -49,3 +50,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.13/options.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,7 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,3 +54,4 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/containerd-api-port.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/containerd-pod-network-cidr.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/containerd.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/crio-options-gates.yaml
浏览文件 @
af99a13e
...
...
@@ -57,6 +57,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -65,6 +69,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/crio.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/default.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/dns.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/image-repository.yaml
浏览文件 @
af99a13e
...
...
@@ -48,6 +48,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -56,6 +60,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.14/options.yaml
浏览文件 @
af99a13e
...
...
@@ -54,6 +54,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -62,6 +66,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/containerd-api-port.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/containerd-pod-network-cidr.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/containerd.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/crio-options-gates.yaml
浏览文件 @
af99a13e
...
...
@@ -57,6 +57,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -65,6 +69,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/crio.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/default.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/dns.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/image-repository.yaml
浏览文件 @
af99a13e
...
...
@@ -48,6 +48,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -56,6 +60,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.15/options.yaml
浏览文件 @
af99a13e
...
...
@@ -54,6 +54,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -62,6 +66,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/containerd-api-port.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/containerd-pod-network-cidr.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/containerd.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/crio-options-gates.yaml
浏览文件 @
af99a13e
...
...
@@ -57,6 +57,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -65,6 +69,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/crio.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/default.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/dns.yaml
浏览文件 @
af99a13e
...
...
@@ -47,6 +47,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -55,6 +59,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/image-repository.yaml
浏览文件 @
af99a13e
...
...
@@ -48,6 +48,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -56,6 +60,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.16/options.yaml
浏览文件 @
af99a13e
...
...
@@ -54,6 +54,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -62,6 +66,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/containerd-api-port.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/containerd-pod-network-cidr.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/containerd.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/crio-options-gates.yaml
浏览文件 @
af99a13e
...
...
@@ -55,6 +55,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -63,6 +67,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/crio.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/default.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/dns.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/image-repository.yaml
浏览文件 @
af99a13e
...
...
@@ -46,6 +46,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -54,6 +58,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.17/options.yaml
浏览文件 @
af99a13e
...
...
@@ -52,6 +52,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -60,6 +64,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/containerd-api-port.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/containerd-pod-network-cidr.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/containerd.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/crio-options-gates.yaml
浏览文件 @
af99a13e
...
...
@@ -55,6 +55,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -63,6 +67,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/crio.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/default.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/dns.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/image-repository.yaml
浏览文件 @
af99a13e
...
...
@@ -46,6 +46,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -54,6 +58,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.18/options.yaml
浏览文件 @
af99a13e
...
...
@@ -52,6 +52,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -60,6 +64,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/containerd-api-port.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/containerd-pod-network-cidr.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/containerd.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/crio-options-gates.yaml
浏览文件 @
af99a13e
...
...
@@ -55,6 +55,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -63,6 +67,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/crio.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/default.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/dns.yaml
浏览文件 @
af99a13e
...
...
@@ -45,6 +45,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -53,6 +57,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/image-repository.yaml
浏览文件 @
af99a13e
...
...
@@ -46,6 +46,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -54,6 +58,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/testdata/v1.19/options.yaml
浏览文件 @
af99a13e
...
...
@@ -52,6 +52,10 @@ networking:
---
apiVersion
:
kubelet.config.k8s.io/v1beta1
kind
:
KubeletConfiguration
authentication
:
x509
:
clientCAFile
:
/var/lib/minikube/certs/ca.crt
cgroupDriver
:
systemd
clusterDomain
:
"
cluster.local"
# disable disk resource management by default
imageGCHighThresholdPercent
:
100
...
...
@@ -60,6 +64,7 @@ evictionHard:
nodefs.inodesFree
:
"
0%"
imagefs.available
:
"
0%"
failSwapOn
:
false
staticPodPath
:
/etc/kubernetes/manifests
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
kind
:
KubeProxyConfiguration
...
...
pkg/minikube/bootstrapper/bsutil/versions.go
浏览文件 @
af99a13e
...
...
@@ -40,9 +40,9 @@ func versionIsBetween(version, gte, lte semver.Version) bool {
var
versionSpecificOpts
=
[]
config
.
VersionedExtraOption
{
// Kubeconfig args
config
.
NewUnversionedOption
(
Kubelet
,
"kubeconfig"
,
"/etc/kubernetes/kubelet.conf"
),
config
.
NewUnversionedOption
(
Kubelet
,
"bootstrap-kubeconfig"
,
"/etc/kubernetes/bootstrap-kubelet.conf"
),
config
.
NewUnversionedOption
(
Kubelet
,
"config"
,
"/var/lib/kubelet/config.yaml"
),
config
.
NewUnversionedOption
(
Kubelet
,
"kubeconfig"
,
"/etc/kubernetes/kubelet.conf"
),
{
Option
:
config
.
ExtraOption
{
Component
:
Kubelet
,
...
...
@@ -52,8 +52,6 @@ var versionSpecificOpts = []config.VersionedExtraOption{
LessThanOrEqual
:
semver
.
MustParse
(
"1.9.10"
),
},
// System pods args
config
.
NewUnversionedOption
(
Kubelet
,
"pod-manifest-path"
,
vmpath
.
GuestManifestsDir
),
{
Option
:
config
.
ExtraOption
{
Component
:
Kubelet
,
...
...
@@ -63,15 +61,17 @@ var versionSpecificOpts = []config.VersionedExtraOption{
LessThanOrEqual
:
semver
.
MustParse
(
"1.15.0-alpha.3"
),
},
// Kubelet config file
config
.
NewUnversionedOption
(
Kubelet
,
"config"
,
"/var/lib/kubelet/config.yaml"
),
// Auth args
config
.
NewUnversionedOption
(
Kubelet
,
"authorization-mode"
,
"Webhook"
),
config
.
NewUnversionedOption
(
Kubelet
,
"client-ca-file"
,
path
.
Join
(
vmpath
.
GuestKubernetesCertsDir
,
"ca.crt"
)),
// before 1.16.0-beta.2, kubeadm bug did not allow overriding this via config file, so this has
// to be passed in as a kubelet flag. See https://github.com/kubernetes/kubernetes/pull/81903 for more details.
{
Option
:
config
.
ExtraOption
{
Component
:
Kubelet
,
Key
:
"client-ca-file"
,
Value
:
path
.
Join
(
vmpath
.
GuestKubernetesCertsDir
,
"ca.crt"
),
},
LessThanOrEqual
:
semver
.
MustParse
(
"1.16.0-beta.1"
),
},
// Cgroup args
config
.
NewUnversionedOption
(
Kubelet
,
"cgroup-driver"
,
"cgroupfs"
),
{
Option
:
config
.
ExtraOption
{
Component
:
Apiserver
,
...
...
pkg/minikube/download/download.go
浏览文件 @
af99a13e
...
...
@@ -26,6 +26,7 @@ import (
"github.com/golang/glog"
"github.com/hashicorp/go-getter"
"github.com/pkg/errors"
"k8s.io/minikube/pkg/minikube/out"
)
var
(
...
...
@@ -39,13 +40,17 @@ func EnableMock(b bool) {
// download is a well-configured atomic download function
func
download
(
src
string
,
dst
string
)
error
{
progress
:=
getter
.
WithProgress
(
DefaultProgressBar
)
if
out
.
JSON
{
progress
=
getter
.
WithProgress
(
DefaultJSONOutput
)
}
tmpDst
:=
dst
+
".download"
client
:=
&
getter
.
Client
{
Src
:
src
,
Dst
:
tmpDst
,
Dir
:
false
,
Mode
:
getter
.
ClientModeFile
,
Options
:
[]
getter
.
ClientOption
{
getter
.
WithProgress
(
DefaultProgressBar
)
},
Options
:
[]
getter
.
ClientOption
{
progress
},
Getters
:
map
[
string
]
getter
.
Getter
{
"file"
:
&
getter
.
FileGetter
{
Copy
:
false
},
"http"
:
&
getter
.
HttpGetter
{
Netrc
:
false
},
...
...
pkg/minikube/download/json_output.go
0 → 100644
浏览文件 @
af99a13e
/*
Copyright 2020 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
download
import
(
"fmt"
"io"
"sync"
"github.com/hashicorp/go-getter"
"k8s.io/minikube/pkg/minikube/out/register"
)
var
DefaultJSONOutput
getter
.
ProgressTracker
=
&
jsonOutput
{}
type
jsonOutput
struct
{
lock
sync
.
Mutex
}
// TrackProgress prints out progress of the stream in JSON format until closed
func
(
cpb
*
jsonOutput
)
TrackProgress
(
src
string
,
currentSize
,
totalSize
int64
,
stream
io
.
ReadCloser
)
io
.
ReadCloser
{
cpb
.
lock
.
Lock
()
defer
cpb
.
lock
.
Unlock
()
register
.
PrintDownload
(
src
)
return
&
readCloser
{
Reader
:
&
jsonReader
{
Reader
:
stream
,
artifact
:
src
,
current
:
currentSize
,
total
:
totalSize
,
},
close
:
func
()
error
{
cpb
.
lock
.
Lock
()
defer
cpb
.
lock
.
Unlock
()
return
nil
},
}
}
// jsonReader is a wrapper for printing with JSON output
type
jsonReader
struct
{
artifact
string
current
int64
total
int64
io
.
Reader
}
func
(
r
*
jsonReader
)
Read
(
p
[]
byte
)
(
n
int
,
err
error
)
{
n
,
err
=
r
.
Reader
.
Read
(
p
)
r
.
current
+=
int64
(
n
)
progress
:=
float64
(
r
.
current
)
/
float64
(
r
.
total
)
register
.
PrintDownloadProgress
(
r
.
artifact
,
fmt
.
Sprintf
(
"%v"
,
progress
))
return
}
pkg/minikube/machine/cache_images.go
浏览文件 @
af99a13e
...
...
@@ -83,10 +83,12 @@ func LoadImages(cc *config.ClusterConfig, runner command.Runner, images []string
return
errors
.
Wrap
(
err
,
"runtime"
)
}
imgClient
,
err
:=
client
.
NewClientWithOpts
(
client
.
FromEnv
)
// image client
if
err
!=
nil
{
glog
.
Infof
(
"couldn't get a local image daemon which might be ok: %v"
,
err
)
imgClient
=
nil
var
imgClient
*
client
.
Client
if
cr
.
Name
()
==
"Docker"
{
imgClient
,
err
=
client
.
NewClientWithOpts
(
client
.
FromEnv
)
// image client
if
err
!=
nil
{
glog
.
Infof
(
"couldn't get a local image daemon which might be ok: %v"
,
err
)
}
}
for
_
,
image
:=
range
images
{
...
...
pkg/minikube/out/register/json.go
浏览文件 @
af99a13e
...
...
@@ -27,3 +27,15 @@ func PrintInfo(message string) {
s
:=
NewInfo
(
message
)
printAsCloudEvent
(
s
,
s
.
data
)
}
// PrintDownload prints a Download type in JSON format
func
PrintDownload
(
artifact
string
)
{
s
:=
NewDownload
(
artifact
)
printAsCloudEvent
(
s
,
s
.
data
)
}
// PrintDownloadProgress prints a DownloadProgress type in JSON format
func
PrintDownloadProgress
(
artifact
,
progress
string
)
{
s
:=
NewDownloadProgress
(
artifact
,
progress
)
printAsCloudEvent
(
s
,
s
.
data
)
}
pkg/minikube/out/register/log.go
浏览文件 @
af99a13e
...
...
@@ -27,10 +27,12 @@ type Step struct {
data
map
[
string
]
string
}
// Type returns the cloud events compatible type of this struct
func
(
s
*
Step
)
Type
()
string
{
return
"io.k8s.sigs.minikube.step"
}
// NewStep returns a new step type
func
NewStep
(
message
string
)
*
Step
{
return
&
Step
{
data
:
map
[
string
]
string
{
"totalsteps"
:
Reg
.
totalSteps
(),
...
...
@@ -40,23 +42,45 @@ func NewStep(message string) *Step {
}}
}
// TODO (priyawadhwa@): implement all types below this comment
// Download will be used to notify the user that a download has begun
type
Download
struct
{
data
map
[
string
]
string
}
// Type returns the cloud events compatible type of this struct
func
(
s
*
Download
)
Type
()
string
{
return
"io.k8s.sigs.minikube.download"
}
// NewDownload returns a new download type
func
NewDownload
(
artifact
string
)
*
Download
{
return
&
Download
{
data
:
map
[
string
]
string
{
"totalsteps"
:
Reg
.
totalSteps
(),
"currentstep"
:
Reg
.
currentStep
(),
"artifact"
:
artifact
,
}}
}
// DownloadProgress will be used to notify the user around the progress of a download
type
DownloadProgress
struct
{
data
map
[
string
]
string
}
// Type returns the cloud events compatible type of this struct
func
(
s
*
DownloadProgress
)
Type
()
string
{
return
"io.k8s.sigs.minikube.download.progress"
}
// NewDownloadProgress returns a new download progress type
func
NewDownloadProgress
(
artifact
,
progress
string
)
*
DownloadProgress
{
return
&
DownloadProgress
{
data
:
map
[
string
]
string
{
"totalsteps"
:
Reg
.
totalSteps
(),
"currentstep"
:
Reg
.
currentStep
(),
"progress"
:
progress
,
"artifact"
:
artifact
,
}}
}
// Warning will be used to notify the user of warnings
type
Warning
struct
{
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录