IMPORTANT For generic modification, use the CNCF templating engine Kustomize
Cookiecutter template for Kubernetes RBAC Users/Groups/ServiceAccounts, Roles/ClusterRoles, etc
Install cookiecutter
command line: pip install cookiecutter
Generate a new Cookiecutter template layout: cookiecutter gh:finchd/cookiecutter-k8s-rbac
This repository works like a standard Python project, plus the kubeyaml linting (yamllint):
- Clone this repository
- Create a virtual environment:
virtualenv .venv
- Install the prerequisites:
pip install -r requirements.txt
- Run the cookiecutter tests:
pytest -v
Now that your local environment works, create/modify kubeyaml or hooks, checking them with the yamllint and pytest. Don't forget to send a pull-request!
This project is licensed under the terms of the MIT License