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
3f849786
Commit
3f849786
authored
May 02, 2019
by
Erik Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix e2e testing on publish
parent
4ec051d0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
13 deletions
+15
-13
.drone.yml
.drone.yml
+1
-1
Dockerfile.sonobuoy.dapper
Dockerfile.sonobuoy.dapper
+2
-1
sonobuoy
scripts/sonobuoy
+5
-5
sonobuoy-e2e-tests
scripts/sonobuoy-e2e-tests
+7
-6
No files found.
.drone.yml
View file @
3f849786
...
@@ -18,7 +18,7 @@ steps:
...
@@ -18,7 +18,7 @@ steps:
-
name
:
sonobuoy-e2e-tests
-
name
:
sonobuoy-e2e-tests
image
:
rancher/dapper:v0.4.1
image
:
rancher/dapper:v0.4.1
commands
:
commands
:
-
dapper -f Dockerfile.sonobuoy.dapper
sonobuoy-e2e-tests
-
dapper -f Dockerfile.sonobuoy.dapper
volumes
:
volumes
:
-
name
:
docker
-
name
:
docker
path
:
/var/run/docker.sock
path
:
/var/run/docker.sock
...
...
Dockerfile.sonobuoy.dapper
View file @
3f849786
...
@@ -15,6 +15,7 @@ RUN curl -sL https://storage.googleapis.com/kubernetes-release/release/$( \
...
@@ -15,6 +15,7 @@ RUN curl -sL https://storage.googleapis.com/kubernetes-release/release/$( \
chmod a+x /usr/local/bin/kubectl
chmod a+x /usr/local/bin/kubectl
ENV DAPPER_RUN_ARGS --privileged --network host
ENV DAPPER_RUN_ARGS --privileged --network host
ENV DAPPER_ENV REPO TAG DRONE_TAG IMAGE_NAME
ENV DAPPER_SOURCE /go/src/github.com/rancher/k3s/
ENV DAPPER_SOURCE /go/src/github.com/rancher/k3s/
ENV DAPPER_OUTPUT ./dist
ENV DAPPER_OUTPUT ./dist
ENV DAPPER_DOCKER_SOCKET true
ENV DAPPER_DOCKER_SOCKET true
...
@@ -22,4 +23,4 @@ ENV HOME ${DAPPER_SOURCE}
...
@@ -22,4 +23,4 @@ ENV HOME ${DAPPER_SOURCE}
WORKDIR ${DAPPER_SOURCE}
WORKDIR ${DAPPER_SOURCE}
ENTRYPOINT ["./scripts/entry.sh"]
ENTRYPOINT ["./scripts/entry.sh"]
CMD ["
ci
"]
CMD ["
sonobuoy-e2e-tests
"]
scripts/sonobuoy
View file @
3f849786
...
@@ -25,7 +25,7 @@ get-port() {
...
@@ -25,7 +25,7 @@ get-port() {
}
}
export
-f
get-port
export
-f
get-port
K3S_PORT
=
$(
timeout
5s bash
-c
get-port
)
K3S_PORT
=
$(
timeout
--foreground
5s bash
-c
get-port
)
OUTPUT
=
$(
pwd
)
/sonobuoy-output/
${
K3S_PORT
}
OUTPUT
=
$(
pwd
)
/sonobuoy-output/
${
K3S_PORT
}
mkdir
-p
${
OUTPUT
}
mkdir
-p
${
OUTPUT
}
...
@@ -84,7 +84,7 @@ wait-for-kubeconfig() {
...
@@ -84,7 +84,7 @@ wait-for-kubeconfig() {
}
}
export
-f
wait-for-kubeconfig
export
-f
wait-for-kubeconfig
timeout
1m bash
-c
wait-for-kubeconfig
timeout
--foreground
1m bash
-c
wait-for-kubeconfig
# ---
# ---
...
@@ -104,7 +104,7 @@ wait-for-nodes() {
...
@@ -104,7 +104,7 @@ wait-for-nodes() {
}
}
export
-f
wait-for-nodes
export
-f
wait-for-nodes
timeout
1m bash
-c
wait-for-nodes
timeout
--foreground
1m bash
-c
wait-for-nodes
# ---
# ---
...
@@ -125,13 +125,13 @@ wait-for-services() {
...
@@ -125,13 +125,13 @@ wait-for-services() {
}
}
export
-f
wait-for-services
export
-f
wait-for-services
timeout
1m bash
-c
wait-for-services
timeout
--foreground
1m bash
-c
wait-for-services
# ---
# ---
echo
"Starting sonobuoy tests"
echo
"Starting sonobuoy tests"
timeout
30m sonobuoy run
\
timeout
--foreground
30m sonobuoy run
\
--config
scripts/sonobuoy-config.json
\
--config
scripts/sonobuoy-config.json
\
--wait
\
--wait
\
${
@
}
${
@
}
...
...
scripts/sonobuoy-e2e-tests
View file @
3f849786
#!/bin/bash
#!/bin/bash
set
-e
-x
set
-e
-x
source
$(
dirname
$0
)
/version.sh
cd
$(
dirname
$0
)
/..
cd
$(
dirname
$0
)
/..
TAG
=
${
TAG
:-${
VERSION
}${
SUFFIX
}}
if
[
-z
"
$K3S_IMAGE
"
]
;
then
REPO
=
${
REPO
:-
rancher
}
source
$(
dirname
$0
)
/version.sh
IMAGE_NAME
=
${
IMAGE_NAME
:-
k3s
}
TAG
=
${
TAG
:-${
VERSION
}${
SUFFIX
}}
export
K3S_IMAGE
=
${
REPO
}
/
${
IMAGE_NAME
}
:
${
TAG
}
REPO
=
${
REPO
:-
rancher
}
IMAGE_NAME
=
${
IMAGE_NAME
:-
k3s
}
export
K3S_IMAGE
=
${
REPO
}
/
${
IMAGE_NAME
}
:
${
TAG
}
fi
OUTPUT
=
$(
pwd
)
/dist/artifacts
OUTPUT
=
$(
pwd
)
/dist/artifacts
mkdir
-p
${
OUTPUT
}
mkdir
-p
${
OUTPUT
}
...
...
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