# Kustomize backend for Pants
![PyPI](https://img.shields.io/pypi/v/pants-backend-kustomize?label=Latest%20release)
> **Warning**
> This plugin is in development. No stability is guaranteed! Contributions welcome.
This backends implements targets for kustomize templates.
* [kustomize](https://github.com/kubernetes-sigs/kustomize) for overlaying state ontop of raw kubernetes files
## Planned and missing features
* Key/secret/... generation from built artifacts
## Targets
There's currently one target.
### `kustomize`
A code-generation target for converting a bundle of kubernetes files into a single multi-docuent YAML file with state
injected from other Pants targets.
``` python
kustomize(
name="kustomize",
sources=[
"deployment.yaml",
"server.py",
"service.yaml",
"namespace.yaml",
"kustomization.yaml",
],
dependencies=[":bin"],
)
```
| Argument | Meaning | Default value |
| --- | --- | --- |
| `name` | The target name | Same as any other target, which is the directory name |
| `sources` | Resources used by this target | **Required** |
| `dependencies` | Targets to package and pass to the build context, as well as bases | `[]` |
| `decsription` | A description of the target | ` ` |
| `tags` | List of tags | `[]` |
For dependencies, the builder will replace labels in the kustomization.yaml with the path of the built package.
Raw data
{
"_id": null,
"home_page": "",
"name": "pants-backend-kustomize",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "pantsbuild,pants,backend,kustomize,kubernetes",
"author": "",
"author_email": "Tom Solberg <me@sbg.dev>",
"download_url": "https://files.pythonhosted.org/packages/6f/02/91b861b3ebb1b44cd3bc9f35a1341f0c825d689d55bf18c20f011f88b457/pants-backend-kustomize-0.3.0.tar.gz",
"platform": null,
"description": "# Kustomize backend for Pants\n\n![PyPI](https://img.shields.io/pypi/v/pants-backend-kustomize?label=Latest%20release)\n\n> **Warning**\n> This plugin is in development. No stability is guaranteed! Contributions welcome.\n\nThis backends implements targets for kustomize templates.\n\n* [kustomize](https://github.com/kubernetes-sigs/kustomize) for overlaying state ontop of raw kubernetes files\n\n## Planned and missing features\n\n* Key/secret/... generation from built artifacts\n\n## Targets\n\nThere's currently one target.\n\n\n### `kustomize`\n\nA code-generation target for converting a bundle of kubernetes files into a single multi-docuent YAML file with state\ninjected from other Pants targets.\n\n\n``` python\nkustomize(\n name=\"kustomize\",\n sources=[\n \"deployment.yaml\",\n \"server.py\",\n \"service.yaml\",\n \"namespace.yaml\",\n\t\t\"kustomization.yaml\",\n ],\n dependencies=[\":bin\"],\n)\n```\n\n| Argument | Meaning | Default value |\n| --- | --- | --- |\n| `name` | The target name | Same as any other target, which is the directory name |\n| `sources` | Resources used by this target | **Required** |\n| `dependencies` | Targets to package and pass to the build context, as well as bases | `[]` |\n| `decsription` | A description of the target | ` ` |\n| `tags` | List of tags | `[]` |\n\nFor dependencies, the builder will replace labels in the kustomization.yaml with the path of the built package.\n\n",
"bugtrack_url": null,
"license": "",
"summary": "A Kustomize plugin for the Pants build system",
"version": "0.3.0",
"project_urls": {
"Changelog": "https://github.com/tgolsson/pants-backends/tree/main/pants-plugins/kustomize/CHANGELOG.md",
"Code": "https://github.com/tgolsson/pants-backends/tree/main/pants-plugins/kustomize",
"Repository": "https://github.com/tgolsson/pants-backends"
},
"split_keywords": [
"pantsbuild",
"pants",
"backend",
"kustomize",
"kubernetes"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f53631a6c7c1b6123a1db52f5ff9bf0007b900b785985d5fa5163bb4dd91aca9",
"md5": "44d84b3d3fd33088bb7bc9e29d69511c",
"sha256": "611f132591bd7a4767eb38256be48b23b65af96524a0d13661d5bd9a61008859"
},
"downloads": -1,
"filename": "pants_backend_kustomize-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "44d84b3d3fd33088bb7bc9e29d69511c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 8436,
"upload_time": "2023-11-21T18:46:52",
"upload_time_iso_8601": "2023-11-21T18:46:52.242461Z",
"url": "https://files.pythonhosted.org/packages/f5/36/31a6c7c1b6123a1db52f5ff9bf0007b900b785985d5fa5163bb4dd91aca9/pants_backend_kustomize-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6f0291b861b3ebb1b44cd3bc9f35a1341f0c825d689d55bf18c20f011f88b457",
"md5": "1ed139187292f7a1148bfbd3e363c024",
"sha256": "239fd0eabf3483b8666d0a8358e7036ebb3729827622fddf704f09e0aae3eff7"
},
"downloads": -1,
"filename": "pants-backend-kustomize-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "1ed139187292f7a1148bfbd3e363c024",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6068,
"upload_time": "2023-11-21T18:46:54",
"upload_time_iso_8601": "2023-11-21T18:46:54.145200Z",
"url": "https://files.pythonhosted.org/packages/6f/02/91b861b3ebb1b44cd3bc9f35a1341f0c825d689d55bf18c20f011f88b457/pants-backend-kustomize-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-21 18:46:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tgolsson",
"github_project": "pants-backends",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pants-backend-kustomize"
}