{"id":28941261,"url":"https://github.com/hashmap-kz/katomik","last_synced_at":"2026-04-24T12:07:16.666Z","repository":{"id":300370256,"uuid":"1005948159","full_name":"hashmap-kz/katomik","owner":"hashmap-kz","description":"❄️Atomic apply of multiple Kubernetes manifests with rollback on failure.","archived":false,"fork":false,"pushed_at":"2026-04-20T05:38:12.000Z","size":270,"stargazers_count":2,"open_issues_count":9,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-20T07:30:58.396Z","etag":null,"topics":["cicd","devops","golang","kubectl","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Go","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/hashmap-kz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-21T06:32:39.000Z","updated_at":"2026-04-20T05:37:22.000Z","dependencies_parsed_at":"2025-08-25T11:09:02.299Z","dependency_job_id":"fb458788-ad84-4170-9025-d8e33c4f4437","html_url":"https://github.com/hashmap-kz/katomik","commit_stats":null,"previous_names":["hashmap-kz/kubectl-atomic_apply","hashmap-kz/katomik"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/hashmap-kz/katomik","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashmap-kz%2Fkatomik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashmap-kz%2Fkatomik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashmap-kz%2Fkatomik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashmap-kz%2Fkatomik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hashmap-kz","download_url":"https://codeload.github.com/hashmap-kz/katomik/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashmap-kz%2Fkatomik/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32156606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T17:06:48.269Z","status":"ssl_error","status_checked_at":"2026-04-22T17:06:19.037Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cicd","devops","golang","kubectl","kubernetes"],"created_at":"2025-06-23T02:09:43.803Z","updated_at":"2026-04-24T12:07:16.647Z","avatar_url":"https://github.com/hashmap-kz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# katomik (WIP)\n\n`katomik` - Atomic Apply for Kubernetes Manifests with Rollback Support.\n\nApplies multiple Kubernetes manifests with **all-or-nothing** guarantees. Like `kubectl apply -f`, but transactional:\nif any resource fails to apply or become ready, all previously applied resources are rolled back automatically.\n\n---\n\n## Features\n\n* **Atomic behavior**: Applies multiple manifests as a unit. If anything fails, restores the original state.\n* **Server-Side Apply** (SSA): Uses `PATCH` with SSA to minimize conflicts and preserve intent.\n* **Status tracking**: Waits for all resources to become `Current` (Ready/Available) before succeeding.\n* **Rollback support**: Automatically restores previous state if apply or wait fails.\n* **Recursive**: Like `kubectl`, supports directories and `-R` for recursive traversal.\n* **STDIN support**: Use `-f -` to read from `stdin`.\n\n![CLI](https://github.com/hashmap-kz/assets/blob/main/katomik/flow-v1.png)\n\n---\n\n## Installation\n\n### Manual Installation\n\n1. Download the latest binary for your platform from\n   the [Releases page](https://github.com/hashmap-kz/katomik/releases).\n2. Place the binary in your system's `PATH` (e.g., `/usr/local/bin`).\n\n### Installation script\n\n```bash\n(\nset -euo pipefail\n\nOS=\"$(uname | tr '[:upper:]' '[:lower:]')\"\nARCH=\"$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\\(arm\\)\\(64\\)\\?.*/\\1\\2/' -e 's/aarch64$/arm64/')\"\nTAG=\"$(curl -s https://api.github.com/repos/hashmap-kz/katomik/releases/latest | jq -r .tag_name)\"\n\ncurl -L \"https://github.com/hashmap-kz/katomik/releases/download/${TAG}/katomik_${TAG}_${OS}_${ARCH}.tar.gz\" |\ntar -xzf - -C /usr/local/bin \u0026\u0026 \\\nchmod +x /usr/local/bin/katomik\n)\n```\n\n### Homebrew installation\n\n```bash\nbrew tap hashmap-kz/homebrew-tap\nbrew install katomik\n```\n\n---\n\n## Usage\n\n```bash\n# Apply multiple files atomically\nkatomik apply -f manifests/\n\n# Read from stdin\nkatomik apply -f - \u003c all.yaml\n\n# Apply recursively\nkatomik apply -R -f ./deploy/\n\n# Set a custom timeout (default: 5m)\nkatomik apply --timeout 2m -f ./manifests/\n\n# Process and apply a manifest located on a remote server\nkatomik apply \\\n  -f https://raw.githubusercontent.com/user/repo/refs/heads/master/manifests/deployment.yaml\n```\n\n---\n\n## Example Output\n\n```\n# katomik apply -f test/integration/k8s/manifests/\n\n┌───────────────────────────────────────┬──────────────┐\n│               RESOURCE                │  NAMESPACE   │\n├───────────────────────────────────────┼──────────────┤\n│ Namespace/katomik-test                │ (cluster)    │\n│ ConfigMap/postgresql-init-script      │ katomik-test │\n│ ConfigMap/postgresql-envs             │ katomik-test │\n│ ConfigMap/postgresql-conf             │ katomik-test │\n│ Service/postgres                      │ katomik-test │\n│ PersistentVolumeClaim/postgres-data   │ katomik-test │\n│ StatefulSet/postgres                  │ katomik-test │\n│ ConfigMap/prometheus-config           │ katomik-test │\n│ PersistentVolumeClaim/prometheus-data │ katomik-test │\n│ Service/prometheus                    │ katomik-test │\n│ StatefulSet/prometheus                │ katomik-test │\n│ PersistentVolumeClaim/grafana-data    │ katomik-test │\n│ Service/grafana                       │ katomik-test │\n│ ConfigMap/grafana-datasources         │ katomik-test │\n│ Deployment/grafana                    │ katomik-test │\n└───────────────────────────────────────┴──────────────┘\n\n+ watching\n| Service/grafana                       katomik-test Unknown\n| Deployment/grafana                    katomik-test Unknown\n| StatefulSet/postgres                  katomik-test InProgress\n| StatefulSet/prometheus                katomik-test InProgress\n+ watching\n\n✓ Success\n```\n\n---\n\n## Quick Start\n\n```\ncd test/integration/k8s\nbash 00-setup-kind.sh\nkatomik apply -f manifests/\n```\n\n---\n\n## 🔒 Rollback Guarantees\n\nOn failure (bad manifest, missing dependency, timeout, etc.):\n\n* Existing objects are reverted to their exact pre-apply state.\n* New objects are deleted.\n\nThis guarantees your cluster remains consistent - no partial updates.\n\n---\n\n## Flags\n\n| Flag        | Description                       |\n|-------------|-----------------------------------|\n| `-f`        | File, directory, or `-` for stdin |\n| `-R`        | Recurse into directories          |\n| `--timeout` | Timeout to wait for readiness     |\n\n---\n\n## License\n\nThis project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.\n\n---\n\n## Feedback\n\nHave a feature request or issue? Feel free to [open an issue](https://github.com/hashmap-kz/katomik/issues)\nor submit a PR!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashmap-kz%2Fkatomik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashmap-kz%2Fkatomik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashmap-kz%2Fkatomik/lists"}