{"id":23546969,"url":"https://github.com/galleybytes/terraform-operator-remote-controller","last_synced_at":"2025-05-15T12:31:09.272Z","repository":{"id":168125942,"uuid":"609417089","full_name":"GalleyBytes/terraform-operator-remote-controller","owner":"GalleyBytes","description":"TFO tf resource event watcher","archived":false,"fork":false,"pushed_at":"2025-01-09T18:33:54.000Z","size":105,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T11:16:40.147Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GalleyBytes.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-04T05:22:06.000Z","updated_at":"2025-01-09T19:45:34.000Z","dependencies_parsed_at":"2023-10-03T20:07:55.353Z","dependency_job_id":"2ecd160b-dfcc-46f4-9c66-c962261c1fa8","html_url":"https://github.com/GalleyBytes/terraform-operator-remote-controller","commit_stats":null,"previous_names":["galleybytes/terraform-operator-remote-controller"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalleyBytes%2Fterraform-operator-remote-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalleyBytes%2Fterraform-operator-remote-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalleyBytes%2Fterraform-operator-remote-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalleyBytes%2Fterraform-operator-remote-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GalleyBytes","download_url":"https://codeload.github.com/GalleyBytes/terraform-operator-remote-controller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254340805,"owners_count":22054927,"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":[],"created_at":"2024-12-26T09:13:26.610Z","updated_at":"2025-05-15T12:31:09.238Z","avatar_url":"https://github.com/GalleyBytes.png","language":"Go","readme":"# Terraform Operator Remote Controller\n\nThis is another controller that listens to tf resource events. Add and update events will transmit the tf manifest to a TFO-API server.\n\n## Usage\n\nSet up the following environment vars for the API server:\n\n```bash\nCLIENT_NAME=foo-k8s-cluster\nTFO_API_PROTOCOL=http\nTFO_API_HOST=localhost\nTFO_API_PORT=5001\nTFO_API_LOGIN_USER=username\nTFO_API_LOGIN_PASSWORD=password\n```\n\nMake sure you're connected to a cluster:\n\n```bash\nKUBECONFIG=~/.kube/config\n```\n\n\u003e InCluster configuration is automatically configured when this binary runs in a kubernetes pod.\n\n### RBAC\n\nThis will require `get` and `list` permissions to `terraforms` resources:\n\n\n```yaml\napiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRole\nmetadata:\n  name: tforc\nrules:\n- apiGroups:\n  - tf.galleybytes.com\n  resources:\n  - terraforms\n  verbs:\n  - get\n  - list\n```\n\nAdditional rules can be added when defining a post job to run after a successful terraform workflow.\n\n```yaml\n\n# ADDITIONAL RULES\n- apiGroups:\n  - batch\n  resources:\n  - jobs\n  verbs:\n  - '*'\n- apiGroups:\n  - \"\"\n  resources:\n  - serviceaccounts\n  verbs:\n  - create\n  - get\n  - list\n- apiGroups:\n  - rbac.authorization.k8s.io\n  resources:\n  - clusterrolebindings\n  verbs:\n  - create\n  - get\n  - list\n- apiGroups:\n  - \"\"\n  resources:\n  - configmaps\n  verbs:\n  - '*'\n  ```\n\nAnd run the binary or run an in-cluster container:\n\n```bash\ngo run main.go\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalleybytes%2Fterraform-operator-remote-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgalleybytes%2Fterraform-operator-remote-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalleybytes%2Fterraform-operator-remote-controller/lists"}