finchd / cookiecutter-k8s-rbac

Cookiecutter template for Kubernetes RBAC Users/Groups/ServiceAccounts, Roles/ClusterRoles, etc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cookiecutter-k8s-rbac

Build Status

IMPORTANT For generic modification, use the CNCF templating engine Kustomize

Cookiecutter template for Kubernetes RBAC Users/Groups/ServiceAccounts, Roles/ClusterRoles, etc

Table of Contents

Requirements

Install cookiecutter command line: pip install cookiecutter

Usage

Generate a new Cookiecutter template layout: cookiecutter gh:finchd/cookiecutter-k8s-rbac

Development

This repository works like a standard Python project, plus the kubeyaml linting (yamllint):

  1. Clone this repository
  2. Create a virtual environment: virtualenv .venv
  3. Install the prerequisites: pip install -r requirements.txt
  4. 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!

License

This project is licensed under the terms of the MIT License

About

Cookiecutter template for Kubernetes RBAC Users/Groups/ServiceAccounts, Roles/ClusterRoles, etc

License:MIT License


Languages

Language:Python 100.0%