{"id":14985614,"url":"https://github.com/ebay/rules_ytt","last_synced_at":"2025-06-11T22:09:50.166Z","repository":{"id":179270537,"uuid":"660375413","full_name":"eBay/rules_ytt","owner":"eBay","description":"Bazel rules for YAML templating tool https://carvel.dev/ytt/","archived":false,"fork":false,"pushed_at":"2024-01-10T15:23:18.000Z","size":20,"stargazers_count":11,"open_issues_count":2,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-11T22:01:49.407Z","etag":null,"topics":["bazel","bazel-rules","carvel","devops","k8s","kubernetes","templating","yaml","yaml-processor","yml","ytt"],"latest_commit_sha":null,"homepage":"","language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eBay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-29T21:44:52.000Z","updated_at":"2023-12-11T17:06:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"436559c4-17c0-4d37-944e-0ede3406d860","html_url":"https://github.com/eBay/rules_ytt","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":0.4,"last_synced_commit":"546245457ec1f29ba2dae9b94a834426e4dfeef6"},"previous_names":["ebay/rules_ytt"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/eBay/rules_ytt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eBay%2Frules_ytt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eBay%2Frules_ytt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eBay%2Frules_ytt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eBay%2Frules_ytt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eBay","download_url":"https://codeload.github.com/eBay/rules_ytt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eBay%2Frules_ytt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259353668,"owners_count":22844759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bazel","bazel-rules","carvel","devops","k8s","kubernetes","templating","yaml","yaml-processor","yml","ytt"],"created_at":"2024-09-24T14:11:21.998Z","updated_at":"2025-06-11T22:09:50.134Z","avatar_url":"https://github.com/eBay.png","language":"Starlark","readme":"# Carvel ytt rules for Bazel\n\n## Setup\n\nAdd to `WORKSPACE` file.\n```starlark\nload(\"@bazel_tools//tools/build_defs/repo:http.bzl\", \"http_archive\")\n\nhttp_archive(\n    name = \"com_github_ebay_rules_ytt\",\n    sha256 = \"0232522fd7a07d2eb0a47fe4ec3a6dc8bc8e0bcbaa8abd658c6be53a34f5bd76\",\n    strip_prefix = \"rules_ytt-0.1.0\",\n    urls = [\n        \"https://github.com/eBay/rules_ytt/releases/download/v0.1.0/rules_ytt-0.1.0.zip\",\n    ],\n)\n\nload(\"@com_github_ebay_rules_ytt//:deps.bzl\", \"ytt_rules_dependencies\")\n\nytt_rules_dependencies()\n```\n\n## Usage\n\nAdd to `BUILD` file:\n\n```starlark\nload(\"@com_github_ebay_rules_ytt//:def.bzl\", \"ytt\")\nload(\"@io_bazel_rules_docker//go:image.bzl\", \"go_image\")\n\ngo_image(\n    name = \"image\",\n    srcs = [\"main.go\"],\n    importpath = \"...\",\n)\n\nytt(\n    name = \"manifests\",\n    srcs = [\n        \":base.yaml\",\n        \":defaults.yaml\",\n        \":values.yaml\",\n    ],\n    image = \":image.digest\",\n)\n```\n\nWhich is equivalent to\n\n```shell\nytt -f base.yaml -f defaults.yaml -f values.yaml --dangerous-allow-all-symlink-destinations\n```\n\n* `bazel build //:manifests` - generates yaml files and store it in cache.\n* `bazel run //:manifests` - prints generated yaml files to stdout.\n* `bazel run //:manifests | kubectl -n \u003cnamespace\u003e -f -` - applies generated manifests to k8s cluster.\n\nImage digest is available inside yaml templates as `data.values.image_digest`.\n\n## Commands\n\n[Here](./ytt.md)\n\n## LICENSE\n\n   Copyright 2023 eBay Inc. Developer: Evgeny Khabarov\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n\n   See [LICENSE](./LICENSE) for more details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febay%2Frules_ytt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Febay%2Frules_ytt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febay%2Frules_ytt/lists"}