Skip to content

Commit

Permalink
conformance testing for gravity 5.6 (cncf#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Nisbet authored and taylorwaggoner committed May 15, 2019
1 parent 0d95748 commit c6078a1
Show file tree
Hide file tree
Showing 5 changed files with 20,994 additions and 0 deletions.
8 changes: 8 additions & 0 deletions v1.14/gravity/PRODUCT.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
vendor: Gravitational
name: Gravity
version: 5.6.1
website_url: https://gravitational.com/gravity
documentation_url: https://gravitational.com/gravity/docs/overview/
product_logo_url: https://gravitational.com/gravity/docs/img/logo.svg
type: distribution
description: Gravity is a Kubernetes packaging solution that takes the drama out of on-prem deployments.
42 changes: 42 additions & 0 deletions v1.14/gravity/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Running conformance tests against Gravity

Get a node or VM which meets the following requirements: https://gravitational.com/telekube/docs/requirements/


Get Gravity
```console
$ curl https://get.gravitational.io/telekube/install | bash
$ tele pull telekube:5.6.1
$ tar -xvf telekube-5.6.1.tar
```

Install Gravity
```console
$ sudo ./gravity install
```

Enter the gravity container, which holds our kubernetes installation
```console
$ sudo gravity enter
```

Delete all the jobs used during installation so they don't conflict with the testing
```console
18:55:16 root@cncf-conformance-1:/# kubectl get jobs --all-namespaces | awk '{ print $2, "--namespace", $1 }' | while read line; do kubectl delete jobs $line; done
```

sonobuoy currently require privileged containers
https://github.com/heptio/sonobuoy/issues/559
```console
18:55:16 root@cncf-conformance-1:/# sed -i 's/allow-privileged=false/allow-privileged=true/g' /lib/systemd/system/kube-*
18:55:16 root@cncf-conformance-1:/# systemctl daemon-reload
18:55:16 root@cncf-conformance-1:/# systemctl restart 'kube-*'
```


Run the conformance tests
```
gravity-conformance-2:/$ curl -L https://github.com/heptio/sonobuoy/releases/download/v0.14.2/sonobuoy_0.14.2_linux_amd64.tar.gz -o sonobuoy.tar.gz
gravity-conformance-2:/$ tar -zxvf sonobuoy.tar.gz
gravity-conformance-2:/$ ./sonobuoy run
```
Loading

0 comments on commit c6078a1

Please sign in to comment.