{"id":20424951,"url":"https://github.com/stackzoo/client-go-examples","last_synced_at":"2025-04-12T18:53:28.991Z","repository":{"id":240141528,"uuid":"627794451","full_name":"stackzoo/client-go-examples","owner":"stackzoo","description":"client-go examples and use cases 🐝","archived":false,"fork":false,"pushed_at":"2023-04-14T08:09:25.000Z","size":21,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-26T13:11:16.971Z","etag":null,"topics":["client-go","golang","kubernetes"],"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/stackzoo.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}},"created_at":"2023-04-14T08:06:02.000Z","updated_at":"2024-01-16T17:00:59.000Z","dependencies_parsed_at":"2024-05-17T00:25:16.776Z","dependency_job_id":"93dbcf1e-f082-4c57-9dcf-2e0d21bf9e97","html_url":"https://github.com/stackzoo/client-go-examples","commit_stats":null,"previous_names":["stackzoo/client-go-examples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackzoo%2Fclient-go-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackzoo%2Fclient-go-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackzoo%2Fclient-go-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackzoo%2Fclient-go-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackzoo","download_url":"https://codeload.github.com/stackzoo/client-go-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618245,"owners_count":21134200,"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":["client-go","golang","kubernetes"],"created_at":"2024-11-15T07:11:36.067Z","updated_at":"2025-04-12T18:53:28.958Z","avatar_url":"https://github.com/stackzoo.png","language":"Go","readme":"# CLIENT-GO EXAMPLES\n\nThis repo contains go scripts that illustrate how to use \u003ca href=\"https://github.com/kubernetes/client-go\"\u003eclient-go\u003c/a\u003e and other\n\u003cbr/\u003e\nk8s packages in order to call k8s api server programmatically.\n\n## Instructions\nAs an example you can first launch the deployment creation:\n```console\n❯ go run deployments/create_deployment.go\n\nDeployment created successfully!\n```\n\u003cbr/\u003e\n\nand then retrieve the pods metrics:\n```console\n❯ go run metrics/pods_metrics.go\n\nSHOWING PODS METRICS\npod name: busybox-58d9b8dbdc-b4x27\nnamespace: test\ncpu usage (millicore): 416m\nmemory usage: 0Mi\n\npod name: busybox-58d9b8dbdc-glgjt\nnamespace: test\ncpu usage (millicore): 436m\nmemory usage: 0Mi\n\npod name: busybox-58d9b8dbdc-wwbrp\nnamespace: test\ncpu usage (millicore): 428m\nmemory usage: 0Mi\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackzoo%2Fclient-go-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackzoo%2Fclient-go-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackzoo%2Fclient-go-examples/lists"}