Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Chu Peng 楚鹏
minikube
提交
cdfe6ef5
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,发现更多精彩内容 >>
未验证
提交
cdfe6ef5
编写于
7月 24, 2020
作者:
M
Medya Ghazizadeh
提交者:
GitHub
7月 24, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #8835 from medyagh/lint_update
ci: update golang lint version
上级
1395c801
47ed4bc2
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
8 addition
and
8 deletion
+8
-8
Makefile
Makefile
+1
-1
hack/preload-images/generate.go
hack/preload-images/generate.go
+2
-2
pkg/drivers/hyperkit/driver.go
pkg/drivers/hyperkit/driver.go
+3
-3
pkg/minikube/bootstrapper/bsutil/ops.go
pkg/minikube/bootstrapper/bsutil/ops.go
+1
-2
test/stress/stress.sh
test/stress/stress.sh
+1
-0
未找到文件。
Makefile
浏览文件 @
cdfe6ef5
...
...
@@ -55,7 +55,7 @@ MINIKUBE_RELEASES_URL=https://github.com/kubernetes/minikube/releases/download
KERNEL_VERSION
?=
4.19.107
# latest from https://github.com/golangci/golangci-lint/releases
GOLINT_VERSION
?=
v1.2
6
.0
GOLINT_VERSION
?=
v1.2
9
.0
# Limit number of default jobs, to avoid the CI builds running out of memory
GOLINT_JOBS
?=
4
# see https://github.com/golangci/golangci-lint#memory-usage-of-golangci-lint
...
...
hack/preload-images/generate.go
浏览文件 @
cdfe6ef5
...
...
@@ -173,11 +173,11 @@ func createImageTarball(tarballFilename, containerRuntime string) error {
}
if
containerRuntime
==
"containerd"
{
dirs
=
append
(
dirs
,
fmt
.
Sprintf
(
"./lib/containerd"
)
)
dirs
=
append
(
dirs
,
"./lib/containerd"
)
}
if
containerRuntime
==
"cri-o"
{
dirs
=
append
(
dirs
,
fmt
.
Sprintf
(
"./lib/containers"
)
)
dirs
=
append
(
dirs
,
"./lib/containers"
)
}
args
:=
[]
string
{
"exec"
,
profile
,
"sudo"
,
"tar"
,
"-I"
,
"lz4"
,
"-C"
,
"/var"
,
"-cvf"
,
tarballFilename
}
...
...
pkg/drivers/hyperkit/driver.go
浏览文件 @
cdfe6ef5
...
...
@@ -397,7 +397,7 @@ func (d *Driver) Stop() error {
d
.
cleanupNfsExports
()
err
:=
d
.
sendSignal
(
syscall
.
SIGTERM
)
if
err
!=
nil
{
return
errors
.
Wrap
(
err
,
fmt
.
Sprintf
(
"hyperkit sigterm failed"
)
)
return
errors
.
Wrap
(
err
,
"hyperkit sigterm failed"
)
}
// wait 5s for graceful shutdown
...
...
@@ -406,7 +406,7 @@ func (d *Driver) Stop() error {
time
.
Sleep
(
time
.
Second
*
1
)
s
,
err
:=
d
.
GetState
()
if
err
!=
nil
{
return
errors
.
Wrap
(
err
,
fmt
.
Sprintf
(
"hyperkit waiting graceful shutdown failed"
)
)
return
errors
.
Wrap
(
err
,
"hyperkit waiting graceful shutdown failed"
)
}
if
s
==
state
.
Stopped
{
return
nil
...
...
@@ -468,7 +468,7 @@ func (d *Driver) setupNFSShare() error {
return
err
}
mountCommands
:=
fmt
.
Sprintf
(
"#/bin/bash
\\
n"
)
mountCommands
:=
"#/bin/bash
\\
n"
log
.
Info
(
d
.
IPAddress
)
for
_
,
share
:=
range
d
.
NFSShares
{
...
...
pkg/minikube/bootstrapper/bsutil/ops.go
浏览文件 @
cdfe6ef5
...
...
@@ -17,7 +17,6 @@ limitations under the License.
package
bsutil
import
(
"fmt"
"os/exec"
"strings"
...
...
@@ -42,7 +41,7 @@ func AdjustResourceLimits(c command.Runner) error {
// Prevent the apiserver from OOM'ing before other pods, as it is our gateway into the cluster.
// It'd be preferable to do this via Kubernetes, but kubeadm doesn't have a way to set pod QoS.
if
_
,
err
=
c
.
RunCmd
(
exec
.
Command
(
"/bin/bash"
,
"-c"
,
"echo -10 | sudo tee /proc/$(pgrep kube-apiserver)/oom_adj"
));
err
!=
nil
{
return
errors
.
Wrap
(
err
,
fmt
.
Sprintf
(
"oom_adj adjust"
)
)
return
errors
.
Wrap
(
err
,
"oom_adj adjust"
)
}
return
nil
}
...
...
test/stress/stress.sh
浏览文件 @
cdfe6ef5
...
...
@@ -13,6 +13,7 @@
# 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.
#
# Stress test for start, restart, upgrade.
#
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录