{ "info": { "author": "Dann Bohn", "author_email": "dannbohn@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Build Tools", "Topic :: Utilities" ], "description": "# ktpl\n\nUtility to template Kubernetes Resource Definitions using the jinja2 templating engine, then apply or delete the templated resources\n\n[![Build Status](https://travis-ci.org/whereismyjetpack/ktpl.svg?branch=master)](https://travis-ci.org/whereismyjetpack/ktpl)\n\n## Getting Started\n`pip install git+https://github.com/whereismyjetpack/ktpl.git@master`\n\n### Prerequisites\n`kubectl`\n\n### Usage\n```\nUsage:\n ktpl [options] [...]\n ktpl [options] [--input-file=]...\n ktpl [options] [--template-file=]...\n\nOptions:\n --delete -d Delete, instead of apply templated manifests\n --template -t Template manifests, and print to screen\n --environment -e Consider environment when processing variables\n --input-file= -i Path to input file(s) to process instead of the defaults\n --template-file= -t Path to template file(s) to process instead of the defaults\n```\n\n\n### Directory Structure:\n\n```.\n\u251c\u2500\u2500 folder-1\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 template.yml.tpl\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 values.yml <- \"defaulty\" variables for resources in this folder\n\u251c\u2500\u2500 folder-2\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 template.yml.tpl\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 values.yml <- \"defaulty\" variables for resources in this folder\n\u251c\u2500\u2500 values.yml <--- global variables used in all resources\n\u251c\u2500\u2500 folder-2.yml <--- values that get added only for resources in folder-2\n\u251c\u2500\u2500 folder-2-customer-b.yml <--- a second set of values, that will get appied to resources in folder-2\n\u251c\u2500\u2500 folder-1.yml <---values that get added only for resources in folder-1\n\u2514\u2500\u2500 values.yml.secret <--- global variables, that will be merged with values.yml. good for using `git-crypt` to encrypt only secret portions of your variables\n```\n\n### Variable precidence:\n{{folder_name}}.yml \nvalues.yml \n{{folder_name}}/values.yml \n\n### Examples:\n```\n1.) ktpl\n- processes folder-1/template.yml.tpl, and folder-2/template.yml.tpl. processes folder-2/template.yml.tpl twice. once with values from folder-2.yml, and once with values from folder-2-customer-b.yml. \n2.) ktpl folder-1\n- processes folder-1/template.yml.tpl with values from values.yml, values.yml.secret, and folder-1.yml. variables from folder-1.yml will override defaulty variables set in values.yml\n3.) ktpl --template\n- processes the same as example 1, but prints the template to screen instead of sending to kubectl\n```", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/whereismyjetpack/ktpl", "keywords": "", "license": "ISC", "maintainer": "", "maintainer_email": "", "name": "ktpl", "package_url": "https://pypi.org/project/ktpl/", "platform": "", "project_url": "https://pypi.org/project/ktpl/", "project_urls": { "Homepage": "https://github.com/whereismyjetpack/ktpl" }, "release_url": "https://pypi.org/project/ktpl/0.0.16/", "requires_dist": null, "requires_python": "", "summary": "Utility to template Kubernetes Resource Definitions using the jinja2 templating language", "version": "0.0.16" }, "last_serial": 3726184, "releases": { "0.0.0.15": [ { "comment_text": "", "digests": { "md5": "47ad83d8a478d2e846bea9b02838f2d7", "sha256": "fa66ef284ef7c437ece27a727e3cefef750b4842b8bd3d54a3a45d2aa7c9cc98" }, "downloads": -1, "filename": "ktpl-0.0.0.15.tar.gz", "has_sig": false, "md5_digest": "47ad83d8a478d2e846bea9b02838f2d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22334, "upload_time": "2018-03-31T02:44:29", "url": "https://files.pythonhosted.org/packages/49/12/6882da51a9df7ea59bf9f685af06c859ef0a4751fbe1f1010963d0f8444d/ktpl-0.0.0.15.tar.gz" } ], "0.0.16": [ { "comment_text": "", "digests": { "md5": "a2fca6474c688321e17af8e108a5153f", "sha256": "6319b62faaec9c64c1662590b1a2c7fda470e88a27e454ac5fb4599bbd731db2" }, "downloads": -1, "filename": "ktpl-0.0.16.tar.gz", "has_sig": false, "md5_digest": "a2fca6474c688321e17af8e108a5153f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22413, "upload_time": "2018-04-02T12:35:27", "url": "https://files.pythonhosted.org/packages/dd/2d/5634bbf839b91c2ecc8bbe80bb650bd911fa36d8e1330689b011ba2b9591/ktpl-0.0.16.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a2fca6474c688321e17af8e108a5153f", "sha256": "6319b62faaec9c64c1662590b1a2c7fda470e88a27e454ac5fb4599bbd731db2" }, "downloads": -1, "filename": "ktpl-0.0.16.tar.gz", "has_sig": false, "md5_digest": "a2fca6474c688321e17af8e108a5153f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22413, "upload_time": "2018-04-02T12:35:27", "url": "https://files.pythonhosted.org/packages/dd/2d/5634bbf839b91c2ecc8bbe80bb650bd911fa36d8e1330689b011ba2b9591/ktpl-0.0.16.tar.gz" } ] }