{"id":25918144,"url":"https://github.com/ajsalemo/keda-goclient","last_synced_at":"2026-05-14T07:36:58.732Z","repository":{"id":277917635,"uuid":"933816419","full_name":"Ajsalemo/keda-goclient","owner":"Ajsalemo","description":"A REST API that creates KEDA resources and invokes Kubernetes webhooks","archived":false,"fork":false,"pushed_at":"2025-05-03T18:11:45.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-03T19:23:25.533Z","etag":null,"topics":["client-go","docker-desktop","fiber","go","go-fiber","golang","keda","kubernetes","kubernetes-webhook","webhook"],"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/Ajsalemo.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":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-16T18:49:19.000Z","updated_at":"2025-05-03T18:11:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"fdd26013-cf73-4a56-a4d7-54c6aa49e043","html_url":"https://github.com/Ajsalemo/keda-goclient","commit_stats":null,"previous_names":["ajsalemo/keda-goclient"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ajsalemo/keda-goclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fkeda-goclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fkeda-goclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fkeda-goclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fkeda-goclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ajsalemo","download_url":"https://codeload.github.com/Ajsalemo/keda-goclient/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fkeda-goclient/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33015680,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["client-go","docker-desktop","fiber","go","go-fiber","golang","keda","kubernetes","kubernetes-webhook","webhook"],"created_at":"2025-03-03T14:16:06.560Z","updated_at":"2026-05-14T07:36:58.727Z","avatar_url":"https://github.com/Ajsalemo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# keda-goclient\n\nAn application functioning as a REST API that does the following:\n- Uses `client-go` to interface with Kubernetes. This has been developed in `wsl2` with a local Docker enabled Kubernetes single node cluster\n- Acts as a client to create KEDA `ScaledJobs` and `ScaledObjects`. In this repo, it was specifically for creating GitHub Action runners.\n- `scaler-kubernetes-webhook` `.yamls` can be deployed to set up both Mutating and Admission Webhooks that will be invoked during KEDA resource creation. The logic currently is that a `metadata.label` of either `scaledjob` or `scaledobject` will be adding during resource creation by the Mutating webhook\n\n\n----------\nBelow is the request body structure that some of these endpoints accept. `POST` bodies should follow the same general structure that a Kubernetes or KEDA `.yaml` expects\n\n`POST /api/secret/create`\n\n```json\n{\n    \"name\": \"yoursecret\",\n    \"parameter\": \"personalAccessToken\",\n    \"value\": \"yourPatValue\" \n}\n```\n\n`POST /api/scaledjob/create`\n\n```json\n{\n    \"name\": \"test-keda-scaledjob\",\n    \"containers\": [\n        {\n            \"name\": \"github-runner\",\n            \"image\": \"self-hosted-github-action-runner:local\",\n            \"imagePullPolicy\": \"IfNotPresent\",\n            \"env\": [\n                {\n                    \"name\": \"GITHUB_PAT\",\n                    \"value\": \"github_pat_xxx\"\n                },\n                {\n                    \"name\": \"REPO_OWNER\",\n                    \"value\": \"YourUser\"\n                },\n                {\n                    \"name\": \"REPO_NAME\",\n                    \"value\": \"yourrepo\"\n                },\n                {\n                    \"name\": \"REPO_URL\",\n                    \"value\": \"https://github.com/YourUser/yourrepo\"\n                },\n                {\n                    \"name\": \"REGISTRATION_TOKEN_API_URL\",\n                    \"value\": \"https://api.github.com/repos/YourUser/yourrepo/actions/runners/registration-token\"\n                }\n            ]\n        }\n    ],\n    \"triggers\": [\n        {\n            \"type\": \"github-runner\",\n            \"metadata\": {\n                \"ownerFromEnv\": \"REPO_OWNER\",\n                \"runnerScope\": \"repo\",\n                \"repoFromEnv\": \"REPO_NAME\",\n                \"targetWorkflowQueueLength\": \"1\"\n            },\n            \"authenticationRef\": {\n                \"name\": \"yoursecret\"\n            }\n        }\n    ]\n}\n```\n\n`POST /api/scaledobject/create`\n\n```json\n{\n    \"name\": \"yourdeployment\",\n    \"triggers\": [\n        {\n            \"type\": \"github-runner\",\n            \"metadata\": {\n                \"ownerFromEnv\": \"REPO_OWNER\",\n                \"runnerScope\": \"repo\",\n                \"repoFromEnv\": \"REPO_NAME\",\n                \"targetWorkflowQueueLength\": \"1\"\n            },\n            \"authenticationRef\": {\n                \"name\": \"yoursecret\"\n            }\n        }\n    ]\n}\n```\n\n`POST /api/deployment/create`\n\n```json\n{\n    \"name\": \"githubrunner-deployment\",\n    \"replicas\": 1,\n    \"containers\": [\n        {\n            \"name\": \"github-runner\",\n            \"image\": \"self-hosted-github-action-runner:local\",\n            \"imagePullPolicy\": \"IfNotPresent\",\n            \"env\": [\n                {\n                    \"name\": \"GITHUB_PAT\",\n                    \"value\": \"github_pat_xxx\"\n                },\n                {\n                    \"name\": \"REPO_OWNER\",\n                    \"value\": \"YourUser\"\n                },\n                {\n                    \"name\": \"REPO_NAME\",\n                    \"value\": \"self-hosted-github-action-runner\"\n                },\n                {\n                    \"name\": \"REPO_URL\",\n                    \"value\": \"https://github.com/YourUser/yourrepo\"\n                },\n                {\n                    \"name\": \"REGISTRATION_TOKEN_API_URL\",\n                    \"value\": \"https://api.github.com/repos/YourUser/yourrepo/actions/runners/registration-token\"\n                }\n            ]\n        }\n    ]\n}\n```\n\n`DELETE /api/scaledjob/delete/:scaledJobName`\n\n```json\nDELETE https://localhost:31323/api/scaledjob/delete/yourscaledjob\n```\n\n`DELETE /api/scaledjob/delete/:scaledJobName`\n\n```json\nDELETE https://localhost:31323/api/scaledobject/delete/yourscaledobject\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajsalemo%2Fkeda-goclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajsalemo%2Fkeda-goclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajsalemo%2Fkeda-goclient/lists"}