Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
6c1f2077
Unverified
Commit
6c1f2077
authored
Feb 20, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Feb 20, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #74192 from xichengliudui/fixshellcheck190218
make more of the shell pass lints
parents
054a6761
fd044c57
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
13 deletions
+11
-13
delete-stranded-load-balancers.sh
cluster/gce/delete-stranded-load-balancers.sh
+6
-6
etcd-empty-dir-cleanup.sh
...r/images/etcd-empty-dir-cleanup/etcd-empty-dir-cleanup.sh
+5
-5
.shellcheck_failures
hack/.shellcheck_failures
+0
-2
No files found.
cluster/gce/delete-stranded-load-balancers.sh
View file @
6c1f2077
...
@@ -18,16 +18,16 @@
...
@@ -18,16 +18,16 @@
PROJECT
=
${
PROJECT
:-
kubernetes
-jenkins
}
PROJECT
=
${
PROJECT
:-
kubernetes
-jenkins
}
REGION
=
${
REGION
:-
us
-central1
}
REGION
=
${
REGION
:-
us
-central1
}
LIST
=
$(
gcloud
--project
=
${
PROJECT
}
compute target-pools list
--format
=
'value(name)'
)
LIST
=
$(
gcloud
--project
=
"
${
PROJECT
}
"
compute target-pools list
--format
=
'value(name)'
)
result
=
0
result
=
0
for
x
in
${
LIST
}
;
do
for
x
in
${
LIST
}
;
do
if
!
gcloud compute
--project
=
${
PROJECT
}
target-pools get-health
"
${
x
}
"
--region
=
${
REGION
}
2>/dev/null
>
/dev/null
;
then
if
!
gcloud compute
--project
=
"
${
PROJECT
}
"
target-pools get-health
"
${
x
}
"
--region
=
"
${
REGION
}
"
2>/dev/null
>
/dev/null
;
then
echo
DELETING
"
${
x
}
"
echo
DELETING
"
${
x
}
"
gcloud compute
--project
=
${
PROJECT
}
firewall-rules delete
"k8s-fw-
${
x
}
"
-q
gcloud compute
--project
=
"
${
PROJECT
}
"
firewall-rules delete
"k8s-fw-
${
x
}
"
-q
gcloud compute
--project
=
${
PROJECT
}
forwarding-rules delete
"
${
x
}
"
--region
=
${
REGION
}
-q
gcloud compute
--project
=
"
${
PROJECT
}
"
forwarding-rules delete
"
${
x
}
"
--region
=
"
${
REGION
}
"
-q
gcloud compute
--project
=
${
PROJECT
}
addresses delete
"
${
x
}
"
--region
=
${
REGION
}
-q
gcloud compute
--project
=
"
${
PROJECT
}
"
addresses delete
"
${
x
}
"
--region
=
"
${
REGION
}
"
-q
gcloud compute
--project
=
${
PROJECT
}
target-pools delete
"
${
x
}
"
--region
=
${
REGION
}
-q
gcloud compute
--project
=
"
${
PROJECT
}
"
target-pools delete
"
${
x
}
"
--region
=
"
${
REGION
}
"
-q
result
=
1
result
=
1
fi
fi
done
done
...
...
cluster/images/etcd-empty-dir-cleanup/etcd-empty-dir-cleanup.sh
View file @
6c1f2077
...
@@ -17,14 +17,14 @@
...
@@ -17,14 +17,14 @@
echo
"Removing empty directories from etcd..."
echo
"Removing empty directories from etcd..."
cleanup_empty_dirs
()
{
cleanup_empty_dirs
()
{
if
[
"
$(
${
ETCDCTL
}
ls
$1
)
"
]
;
then
if
[
"
$(
"
${
ETCDCTL
}
"
ls
"
${
1
}
"
)
"
]
;
then
for
SUBDIR
in
$(
${
ETCDCTL
}
ls
-p
$1
|
grep
"/$"
)
for
SUBDIR
in
$(
"
${
ETCDCTL
}
"
ls
-p
"
${
1
}
"
|
grep
"/$"
)
do
do
cleanup_empty_dirs
${
SUBDIR
}
cleanup_empty_dirs
"
${
SUBDIR
}
"
done
done
else
else
echo
"Removing empty key
$1
..."
echo
"Removing empty key
$1
..."
${
ETCDCTL
}
rmdir
$1
"
${
ETCDCTL
}
"
rmdir
"
${
1
}
"
fi
fi
}
}
...
@@ -33,5 +33,5 @@ do
...
@@ -33,5 +33,5 @@ do
echo
"Starting cleanup..."
echo
"Starting cleanup..."
cleanup_empty_dirs
"/registry"
cleanup_empty_dirs
"/registry"
echo
"Done with cleanup."
echo
"Done with cleanup."
sleep
${
SLEEP_SECOND
}
sleep
"
${
SLEEP_SECOND
}
"
done
done
hack/.shellcheck_failures
View file @
6c1f2077
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
./cluster/gce/config-common.sh
./cluster/gce/config-common.sh
./cluster/gce/config-default.sh
./cluster/gce/config-default.sh
./cluster/gce/config-test.sh
./cluster/gce/config-test.sh
./cluster/gce/delete-stranded-load-balancers.sh
./cluster/gce/gci/configure-helper.sh
./cluster/gce/gci/configure-helper.sh
./cluster/gce/gci/configure.sh
./cluster/gce/gci/configure.sh
./cluster/gce/gci/flexvolume_node_setup.sh
./cluster/gce/gci/flexvolume_node_setup.sh
...
@@ -21,7 +20,6 @@
...
@@ -21,7 +20,6 @@
./cluster/gce/upgrade.sh
./cluster/gce/upgrade.sh
./cluster/gce/util.sh
./cluster/gce/util.sh
./cluster/images/conformance/run_e2e.sh
./cluster/images/conformance/run_e2e.sh
./cluster/images/etcd-empty-dir-cleanup/etcd-empty-dir-cleanup.sh
./cluster/juju/prereqs/ubuntu-juju.sh
./cluster/juju/prereqs/ubuntu-juju.sh
./cluster/juju/util.sh
./cluster/juju/util.sh
./cluster/kube-up.sh
./cluster/kube-up.sh
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment