{"id":16679967,"url":"https://github.com/tsloughter/kuberl","last_synced_at":"2025-03-21T18:32:26.799Z","repository":{"id":57514245,"uuid":"115452319","full_name":"tsloughter/kuberl","owner":"tsloughter","description":"Erlang Kubernetes client","archived":false,"fork":false,"pushed_at":"2020-07-16T13:18:14.000Z","size":656,"stargazers_count":56,"open_issues_count":1,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-14T22:05:08.132Z","etag":null,"topics":["erlang","kubernetes","kubernetes-controller"],"latest_commit_sha":null,"homepage":null,"language":"Erlang","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/tsloughter.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}},"created_at":"2017-12-26T20:20:45.000Z","updated_at":"2024-10-25T00:51:39.000Z","dependencies_parsed_at":"2022-08-31T23:01:04.725Z","dependency_job_id":null,"html_url":"https://github.com/tsloughter/kuberl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsloughter%2Fkuberl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsloughter%2Fkuberl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsloughter%2Fkuberl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsloughter%2Fkuberl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsloughter","download_url":"https://codeload.github.com/tsloughter/kuberl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244848935,"owners_count":20520613,"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":["erlang","kubernetes","kubernetes-controller"],"created_at":"2024-10-12T13:38:26.833Z","updated_at":"2025-03-21T18:32:26.242Z","avatar_url":"https://github.com/tsloughter.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Erlang Kubernetes client\n\nErlang client for Kubernetes 1.16 generated through Swagger.\n\n## Watch Behaviour\n\nThe behaviour `kuberl_watch` starts a process to stream the results of a watch requests and calls the callback `handle_event` with the notification type (added, modified, deleted) and the resource object.\n\n\n## Using the API\n\n#### Configuration\n\nThe API server endpoint and key can be configured in environment configuration variables:\n\n```erlang\n[{kuberl, [{api_key, \u003c\u003c\"... bearer token ...\"\u003e\u003e},\n           {host, \"https://x.x.x.x\"}]}].\n```\n\nThis will set a default configuration used if none is passed to API requests.\n\nA new configuration can be created with functions in `kuberl`:\n\n```erlang\nCfg = kuberl:cfg_with_bearer_token(kuberl:cfg_with_host(\"https://x.x.x.x\"), \u003c\u003c\"... bearer token ...\"\u003e\u003e),\nkuberl_core_api:get_api_versions(ctx:background(), #{cfg =\u003e Cfg}).\n```\n\nOptionally the environment config can be overridden at runtime:\n\n```erlang\nkuberl:set_default_cfg(Cfg).\n```\n\n## Update Generated Code\n\n### Without Nix\n\nWith [swagger-codegen] built under `../swagger-codegen` the script in the `bin` directory can be used to update the generated Erlang modules:\n\n```shell\nbin/update-generated-code.sh\n```\n\nThis script will generate the code to a temporary directory under `/tmp` and then copy only the modules to `gen/`.\n\n### With Nix\n\nInstall [Nix], [direnv], and [lorri].\n\n```shell\n# Run the lorri daemon\nlorri daemon\n\n# or watch this directory (once)\nlorri watch # --once\n\n# load the environment\ndirenv allow\n\n# generate the code\nkuberl_gen\n```\n\n`kuberl_gen` will generate the code to a temporary directory under `/tmp` and then copy only the modules to `gen/`.\n\n\n\u003c!-- References --\u003e\n[Nix]: https://nixos.org/\n[direnv]: https://direnv.net/\n[lorri]: https://github.com/target/lorri/\n[swagger-codegen]: https://github.com/swagger-api/swagger-codegen/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsloughter%2Fkuberl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsloughter%2Fkuberl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsloughter%2Fkuberl/lists"}