Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/retr0h/molecule-k3d
Molecule K3D Driver allows Molecule users to test Ansible code using K3D.
https://github.com/retr0h/molecule-k3d
ansible k3d k8s kubernetes molecule molecule-driver testing
Last synced: 17 days ago
JSON representation
Molecule K3D Driver allows Molecule users to test Ansible code using K3D.
- Host: GitHub
- URL: https://github.com/retr0h/molecule-k3d
- Owner: retr0h
- License: mit
- Created: 2021-03-26T18:09:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-18T04:54:37.000Z (over 3 years ago)
- Last Synced: 2024-11-22T23:26:41.069Z (about 1 month ago)
- Topics: ansible, k3d, k8s, kubernetes, molecule, molecule-driver, testing
- Language: Python
- Homepage:
- Size: 45.9 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# molecule-k3d
[![Unit Test](https://github.com/retr0h/molecule-k3d/actions/workflows/unit.yml/badge.svg)](https://github.com/retr0h/molecule-k3d/actions/workflows/unit.yml)
[![Lint](https://github.com/retr0h/molecule-k3d/actions/workflows/lint.yml/badge.svg)](https://github.com/retr0h/molecule-k3d/actions/workflows/lint.yml)molecule-k3d - Molecule k3d Driver allows Molecule users to test Ansible code using k3d.
## Dependencies
* [k3d][]
## Installing
$ pip install molecule-k3d
## Usage
$ molecule init scenario -d k3d
$ molecule testBe sure to set the following env vars, where `$instance`, is the name
of the platform specified in `molecule.yml`.platforms:
- name: instance
provisioner:
name: ansible
env:
K8S_AUTH_KUBECONFIG: ~/.k3d/kubeconfig-$instance.yaml
KUBECONFIG: ~/.k3d/kubeconfig-$instance.yaml## Testing
To execute unit tests.
$ make dep
$ make test## License
The [MIT] License.
[k3d]: https://k3d.io/
[MIT]: LICENSE