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
d6c5f6b9
Commit
d6c5f6b9
authored
Feb 25, 2019
by
Darren Shepherd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add e2e tests
parent
10f15535
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
0 deletions
+53
-0
Dockerfile
e2e/Dockerfile
+6
-0
docker-compose.yml
e2e/docker-compose.yml
+31
-0
run-test.sh
e2e/run-test.sh
+16
-0
No files found.
e2e/Dockerfile
0 → 100644
View file @
d6c5f6b9
FROM
ubuntu:18.04
RUN
apt-get update
&&
\
apt-get
install
-y
curl
RUN
curl
-sfL
https://github.com/heptio/sonobuoy/releases/download/v0.13.0/sonobuoy_0.13.0_linux_amd64.tar.gz |
tar
xvzf -
-C
/usr/bin
COPY
run-test.sh /usr/bin
CMD
["/usr/bin/run-test.sh"]
e2e/docker-compose.yml
0 → 100644
View file @
d6c5f6b9
version
:
'
3'
services
:
server
:
image
:
rancher/k3s:v0.1.0-rc8
command
:
server
environment
:
-
K3S_CLUSTER_SECRET=somethingtotallyrandom
volumes
:
-
config:/etc/rancher/k3s
tmpfs
:
-
/run
-
/var/run
privileged
:
true
node
:
image
:
rancher/k3s:v0.1.0-rc8
tmpfs
:
-
/run
-
/var/run
privileged
:
true
environment
:
-
K3S_URL=https://server:6443
-
K3S_CLUSTER_SECRET=somethingtotallyrandom
sonobuoy
:
build
:
.
volumes
:
-
config:/etc/rancher/k3s
volumes
:
config
:
{}
e2e/run-test.sh
0 → 100755
View file @
d6c5f6b9
#!/bin/bash
set
-e
-x
while
[
!
-e
/etc/rancher/k3s/k3s.yaml
]
;
do
echo
waiting
for
config
sleep
1
done
mkdir
-p
/root/.kube
sed
's/localhost/server/g'
/etc/rancher/k3s/k3s.yaml
>
/root/.kube/config
export
KUBECONFIG
=
/root/.kube/config
cat
/etc/rancher/k3s/k3s.yaml
cat
$KUBECONFIG
sonobuoy run
sleep
15
sonobuoy logs
-f
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