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: 9 months 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 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-18T04:54:37.000Z (almost 5 years ago)
- Last Synced: 2025-09-03T15:44:49.226Z (10 months ago)
- Topics: ansible, k3d, k8s, kubernetes, molecule, molecule-driver, testing
- Language: Python
- Homepage:
- Size: 45.9 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# molecule-k3d
[](https://github.com/retr0h/molecule-k3d/actions/workflows/unit.yml)
[](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 test
Be 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