{"id":15441744,"url":"https://github.com/mudler/img-controller","last_synced_at":"2026-02-17T18:05:18.577Z","repository":{"id":69642307,"uuid":"321775002","full_name":"mudler/img-controller","owner":"mudler","description":"Kubernetes CRD controller to build docker images with img","archived":false,"fork":false,"pushed_at":"2020-12-16T09:52:44.000Z","size":57,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T19:08:34.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mudler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-12-15T19:57:59.000Z","updated_at":"2024-01-02T22:22:40.000Z","dependencies_parsed_at":"2023-04-09T23:48:19.014Z","dependency_job_id":null,"html_url":"https://github.com/mudler/img-controller","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mudler/img-controller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudler%2Fimg-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudler%2Fimg-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudler%2Fimg-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudler%2Fimg-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mudler","download_url":"https://codeload.github.com/mudler/img-controller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudler%2Fimg-controller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29552265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T17:56:56.811Z","status":"ssl_error","status_checked_at":"2026-02-17T17:56:55.544Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-10-01T19:22:37.985Z","updated_at":"2026-02-17T18:05:18.559Z","avatar_url":"https://github.com/mudler.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# (experimental) unofficial [Img](https://github.com/genuinetools/img) CRD controller\n\nSimple CRD that uses [img](https://github.com/genuinetools/img) to build docker images on Kubernetes. It doesn't require `privileged` permissions, and builds the image as user `1000` in the workload pod.\n\n## Install\n\nTo install it in your k8s cluster:\n\n```bash\n$ kubectl apply -f https://raw.githubusercontent.com/mudler/img-controller/master/hack/kube.yaml\n```\n\n## Build images\n\nThe controller expose a new `ImageBuild` Kubernetes resource type, which can be used to build docker images with `img`.\n\nTo build an image, for example:\n\n```bash\n\n$ cat \u003c\u003cEOF | kubectl apply -f -\napiVersion: img.k8s.io/v1alpha1\nkind: ImageBuild\nmetadata:\n  name: test\nspec:\n  imageName: mocaccino/extra:latest\n  repository: \n    url: \"https://github.com/mocaccinoOS/mocaccino-extra\"\nEOF\n```\n\n\n### Full example\n\n\n```yaml\napiVersion: img.k8s.io/v1alpha1\nkind: ImageBuild\nmetadata:\n  name: test\nspec:\n  annotations:\n    # Annotations to apply to workload pod\n  labels:\n    # Labels to apply to workload pod\n  nodeSelector:\n    # node Selector labels\n  imageName: container/img\n  context: \"./foo/bar\"\n  dockerfile: \"./foo/bar/Dockerfile\"\n  privileged: false # Wether to run privileged builds\n  registry: # If enabled, will push the docker image\n    enabled: true\n    username: \"user\"\n    password: \"pass\"\n    registry: \"quay.io\"\n    fromSecret: \"secret-key\" # Only if using credentials from secret\n  repository: \n    url: \"https://github.com/mocaccinoOS/mocaccino-extra\"\n    checkout: \"hash_or_branch\"\n\n```\n\nIf storage and registry credentials are sourced from secrets, the secret should have the following fields and live in the same namespace of the workload:\n\n```yaml\nregistryUri: \"\"\nregistryPassword: \"\"\nregistryUsername: \"\"\n```\n\n## Uninstall\n\nFirst delete all the workload from the cluster, by deleting all the `imagebuild` resources.\n\nThen run:\n\n```bash\n\n$ kubectl delete -f https://raw.githubusercontent.com/mudler/img-controller/master/hack/kube.yaml\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudler%2Fimg-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmudler%2Fimg-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudler%2Fimg-controller/lists"}