https://github.com/int128/kubectl-tree-e2e-test
E2E test of kubectl-tree to show how to test with Kind on GitHub Actions
https://github.com/int128/kubectl-tree-e2e-test
kubernetes testing
Last synced: 11 months ago
JSON representation
E2E test of kubectl-tree to show how to test with Kind on GitHub Actions
- Host: GitHub
- URL: https://github.com/int128/kubectl-tree-e2e-test
- Owner: int128
- License: apache-2.0
- Created: 2020-02-05T01:40:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-21T09:10:58.000Z (over 6 years ago)
- Last Synced: 2025-05-27T09:57:41.940Z (about 1 year ago)
- Topics: kubernetes, testing
- Language: Makefile
- Homepage:
- Size: 22.5 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kubectl-tree-e2e-test [](https://github.com/int128/kubectl-tree-e2e-test/actions?query=workflow%3Atest)
This is an end-to-end test of [kubectl-tree](https://github.com/ahmetb/kubectl-tree).
It shows how to test with a real Kubernetes cluster using Kind on GitHub Actions.
## How it works
The test runs with the following stack:

The test runs on the GitHub Actions [workflow](.github/workflows/test.yaml).
It installs Kind, krew and kubectl-tree.
The test scenario is written in [Makefile](Makefile).
It creates a Kubernetes cluster using [Kind](https://kind.sigs.k8s.io) and deploy the [fixture](fixture.yaml).
After deployment, it runs `kubectl tree` and verifies the output.
## Run locally
You need to install Docker and Kind.
```sh
# install deps
kubectl krew install tree
# run the test
make
# clean up
make delete-cluster
make clean
```
## Conrtibution
This is an open source software.
Feel free to open issues and pull requests.