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
efacc043
Commit
efacc043
authored
Feb 01, 2016
by
gmarek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a flag to allow non-fatal errors in validate-cluster
parent
6aaabc6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
kube-up.sh
cluster/kube-up.sh
+13
-1
e2e.sh
hack/jenkins/e2e.sh
+2
-0
No files found.
cluster/kube-up.sh
View file @
efacc043
...
@@ -25,6 +25,7 @@ set -o nounset
...
@@ -25,6 +25,7 @@ set -o nounset
set
-o
pipefail
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
EXIT_ON_WEAK_ERROR
=
"
${
EXIT_ON_WEAK_ERROR
:-
true
}
"
if
[
-f
"
${
KUBE_ROOT
}
/cluster/env.sh"
]
;
then
if
[
-f
"
${
KUBE_ROOT
}
/cluster/env.sh"
]
;
then
source
"
${
KUBE_ROOT
}
/cluster/env.sh"
source
"
${
KUBE_ROOT
}
/cluster/env.sh"
...
@@ -47,7 +48,18 @@ echo "... calling kube-up" >&2
...
@@ -47,7 +48,18 @@ echo "... calling kube-up" >&2
kube-up
kube-up
echo
"... calling validate-cluster"
>
&2
echo
"... calling validate-cluster"
>
&2
validate-cluster
if
[[
"
${
EXIT_ON_WEAK_ERROR
}
"
==
"true"
]]
;
then
validate-cluster
else
if
!
validate-cluster
;
then
local
validate_result
=
"
$?
"
if
[[
"
${
validate_result
}
"
==
"1"
]]
;
then
exit
1
elif
[[
"
${
validate_result
}
"
==
"2"
]]
;
then
echo
"...ignoring non-fatal errors in validate-cluster"
>
&2
fi
fi
fi
echo
-e
"Done, listing cluster services:
\n
"
>
&2
echo
-e
"Done, listing cluster services:
\n
"
>
&2
"
${
KUBE_ROOT
}
/cluster/kubectl.sh"
cluster-info
"
${
KUBE_ROOT
}
/cluster/kubectl.sh"
cluster-info
...
...
hack/jenkins/e2e.sh
View file @
efacc043
...
@@ -528,6 +528,7 @@ case ${JOB_NAME} in
...
@@ -528,6 +528,7 @@ case ${JOB_NAME} in
NODE_DISK_SIZE
=
"50GB"
NODE_DISK_SIZE
=
"50GB"
NUM_NODES
=
"1000"
NUM_NODES
=
"1000"
ALLOWED_NOTREADY_NODES
=
"2"
ALLOWED_NOTREADY_NODES
=
"2"
EXIT_ON_WEAK_ERROR
=
"false"
# Reduce logs verbosity
# Reduce logs verbosity
TEST_CLUSTER_LOG_LEVEL
=
"--v=1"
TEST_CLUSTER_LOG_LEVEL
=
"--v=1"
# Increase resync period to simulate production
# Increase resync period to simulate production
...
@@ -928,6 +929,7 @@ export KUBE_OS_DISTRIBUTION=${KUBE_OS_DISTRIBUTION:-}
...
@@ -928,6 +929,7 @@ export KUBE_OS_DISTRIBUTION=${KUBE_OS_DISTRIBUTION:-}
export
GCE_SERVICE_ACCOUNT
=
$(
gcloud auth list 2> /dev/null |
grep
active |
cut
-f3
-d
' '
)
export
GCE_SERVICE_ACCOUNT
=
$(
gcloud auth list 2> /dev/null |
grep
active |
cut
-f3
-d
' '
)
export
FAIL_ON_GCP_RESOURCE_LEAK
=
"
${
FAIL_ON_GCP_RESOURCE_LEAK
:-
false
}
"
export
FAIL_ON_GCP_RESOURCE_LEAK
=
"
${
FAIL_ON_GCP_RESOURCE_LEAK
:-
false
}
"
export
ALLOWED_NOTREADY_NODES
=
${
ALLOWED_NOTREADY_NODES
:-}
export
ALLOWED_NOTREADY_NODES
=
${
ALLOWED_NOTREADY_NODES
:-}
export
EXIT_ON_WEAK_ERROR
=
${
EXIT_ON_WEAK_ERROR
:-}
# GKE variables
# GKE variables
export
CLUSTER_NAME
=
${
E2E_CLUSTER_NAME
}
export
CLUSTER_NAME
=
${
E2E_CLUSTER_NAME
}
...
...
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