{"id":25830395,"url":"https://github.com/roshbhatia/kubanana","last_synced_at":"2026-05-12T18:35:44.244Z","repository":{"id":279346846,"uuid":"938443558","full_name":"roshbhatia/kubanana","owner":"roshbhatia","description":"🐒 see, 🦧 do! Events in, Kubernetes jobs out!","archived":false,"fork":false,"pushed_at":"2025-02-28T01:09:35.000Z","size":488,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T08:10:42.089Z","etag":null,"topics":["devops","event-driven","homelab","homelab-automation","kubernetes","kubernetes-controller"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roshbhatia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-25T00:57:14.000Z","updated_at":"2025-02-28T01:09:38.000Z","dependencies_parsed_at":"2025-02-28T08:12:46.240Z","dependency_job_id":"a7272d36-5ce1-4eba-95e8-b267144404bb","html_url":"https://github.com/roshbhatia/kubanana","commit_stats":null,"previous_names":["roshbhatia/kubevent","roshbhatia/kubanana"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roshbhatia%2Fkubanana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roshbhatia%2Fkubanana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roshbhatia%2Fkubanana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roshbhatia%2Fkubanana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roshbhatia","download_url":"https://codeload.github.com/roshbhatia/kubanana/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241210086,"owners_count":19927784,"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":["devops","event-driven","homelab","homelab-automation","kubernetes","kubernetes-controller"],"created_at":"2025-02-28T19:19:48.992Z","updated_at":"2026-05-12T18:35:39.210Z","avatar_url":"https://github.com/roshbhatia.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"assets/kubanana-logo.png\" width=\"35%\" align=\"center\" alt=\"kubanana\"\u003e\n\u003c/p\u003e\n\n# Kubanana\n\n*THIS PROJECT IS NOT YET PRODUCTION READY AND IS SUBJECT TO BREAKING CHANGES*\n\nKubanana is a Kubernetes controller that allows you to trigger a [Kubernetes Job](https://kubernetes.io/docs/concepts/workloads/controllers/job/) based on a Kubernetes event or status (eventually, any generic event sent to the Kubanana webhook).\n\nThis project is inspired by policy engines like [Kyverno](https://kyverno.io/) and operators like [Metacontroller](https://metacontroller.github.io/metacontroller/intro.html) which allow for flexible controller-like logic as versioned Kubernetes resources.\n\nThis tool, however, is solely used to trigger a Job when an event happens in an opinionated fashion. Kyverno and Metacontroller can be used for similar purposes but are significantly heavier dependencies.\n\n## Using Kubanana: the EventTriggeredJob\n\nKubanana introduces the `EventTriggeredJob` CRD to help associate Jobs with events:\n\n```yaml\napiVersion: kubanana.roshanbhatia.com/v1alpha1\nkind: EventTriggeredJob\nmetadata:\n  name: example-job-template\nspec:\n  eventSelector:\n    resourceKind: \"Pod\"\n    namePattern: \"web-*\"\n    namespacePattern: \"prod-*\"\n    labelSelector:\n      matchLabels:\n        app: myapp\n    eventTypes: [\"CREATE\", \"DELETE\"]\n  statusSelector:\n    resourceKind: \"Pod\"\n    namePattern: \"*\"\n    namespacePattern: \"default\"\n    labelSelector:\n      matchLabels:\n        app: myapp\n    conditions:\n    - type: \"Ready\"\n      status: \"True\"\n  jobTemplate:\n    spec:\n      template:\n        spec:\n          containers:\n          - name: hello\n            image: busybox\n            command: [\"echo\", \"Hello from Kubanana!\"]\n          restartPolicy: Never\n```\n\nThis CRD allows you to define:\n\n- Which resources to watch (by kind, name pattern, namespace pattern, labels)\n- Which event types should trigger a job (CREATE, UPDATE, DELETE)\n- The job template to execute when an event is triggered\n\n## Installation\n\n### Using Helm Chart\n\nYou can install Kubanana using our Helm chart hosted on GHCR:\n\n```bash\n# Add the Helm repository\nhelm pull oci://ghcr.io/roshbhatia/kubanana/charts/kubanana --version \u003cversion\u003e\n\n# Install the chart\nhelm install kubanana oci://ghcr.io/roshbhatia/kubanana/charts/kubanana --version \u003cversion\u003e \\\n  --create-namespace \\\n  --namespace kubanana-system\n```\n\n### Using Container Image\n\nThe Kubanana controller image is also available on GHCR:\n\n```bash\ndocker pull ghcr.io/roshbhatia/kubanana/controller:v\u003cversion\u003e\n```\n\nRaw manifests are present at `deploy/manifests`.\n\n## Local Development\n\n### Requirements\n\n- [Go 1.21+](https://go.dev/)\n- [Docker](https://www.docker.com/)\n- [Kind](https://kind.sigs.k8s.io/)\n- [kubectl](https://kubernetes.io/docs/reference/kubectl/)\n- [chainsaw](https://kyverno.github.io/chainsaw/0.2.3/)\n\n### Dev Tooling\n\nRun `make help` to list all available make targets for local development and testing.\n\n## Contributing\n\nI don't actively watch this repo, but feel free to fork and do what you desire with it. I'll likely check the PRs every so often if you're willing to wait.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froshbhatia%2Fkubanana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froshbhatia%2Fkubanana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froshbhatia%2Fkubanana/lists"}