{"id":22654236,"url":"https://github.com/stevencyb/genkube","last_synced_at":"2025-08-06T08:32:10.040Z","repository":{"id":168811077,"uuid":"644611998","full_name":"StevenCyb/genkube","owner":"StevenCyb","description":"A simple kube client wrapper.","archived":false,"fork":false,"pushed_at":"2023-12-09T19:21:39.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-12-09T20:27:58.361Z","etag":null,"topics":[],"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/StevenCyb.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}},"created_at":"2023-05-23T22:22:49.000Z","updated_at":"2023-05-23T22:25:11.000Z","dependencies_parsed_at":"2023-05-31T16:15:37.716Z","dependency_job_id":null,"html_url":"https://github.com/StevenCyb/genkube","commit_stats":null,"previous_names":["stevencyb/genkube"],"tags_count":3,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2Fgenkube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2Fgenkube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2Fgenkube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2Fgenkube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StevenCyb","download_url":"https://codeload.github.com/StevenCyb/genkube/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228867113,"owners_count":17983878,"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-09T09:35:59.474Z","updated_at":"2024-12-09T09:36:00.067Z","avatar_url":"https://github.com/StevenCyb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# genkube\nThis is a simple wrapper client that inherit the `sigs.k8s.io/controller-runtime/pkg/client` client and adds some logic around it like watching any resource (including CRDs).\n\n## Functions\nThe following functions are provided by the client. \nMost of them are part of the original client from *sigs.k8s.io* (including description). \n\n```go\n  // Get retrieves an obj for the given object key from the Kubernetes Cluster.\n  // obj must be a struct pointer so that obj can be updated with the response\n  // returned by the Server.\n  Get(ctx context.Context, key ObjectKey, obj Object, opts ...GetOption) error\n```\n\n```go\n  // List retrieves list of objects for a given namespace and list options. On a\n  // successful call, Items field in the list will be populated with the\n  // result returned from the server.\n  List(ctx context.Context, list ObjectList, opts ...ListOption) error\n```\n\n```go\n  // Create saves the object obj in the Kubernetes cluster. obj must be a\n  // struct pointer so that obj can be updated with the content returned by the Server.\n  Create(ctx context.Context, obj Object, opts ...CreateOption) error\n```\n\n```go\n  // Delete deletes the given obj from Kubernetes cluster.\n  Delete(ctx context.Context, obj Object, opts ...DeleteOption) error\n```\n\n```go\n  // Update updates the given obj in the Kubernetes cluster. obj must be a\n  // struct pointer so that obj can be updated with the content returned by the Server.\n  Update(ctx context.Context, obj Object, opts ...UpdateOption) error\n```\n\n```go\n  // Patch patches the given obj in the Kubernetes cluster. obj must be a\n  // struct pointer so that obj can be updated with the content returned by the Server.\n  Patch(ctx context.Context, obj Object, patch Patch, opts ...PatchOption) error\n```\n\n```go\n  // DeleteAllOf deletes all objects of the given type matching the given options.\n  DeleteAllOf(ctx context.Context, obj Object, opts ...DeleteAllOfOption) error\n```\n\n```go\n  // WatchResource watches a resource based on given objects lists.\n  func (c *Client) WatchResource(\n    resource runtime.Object, resourceList runtimeClient.ObjectList,\n    eventHandler cache.ResourceEventHandlerFuncs, opts ...runtimeClient.ListOption,\n  )\n```\n\n## Fake\nTo perform unit tests without an actual cluster, use the `NewFake` function to create a fake client.\nThis client can be used to interact with the client like on an real cluster.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevencyb%2Fgenkube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevencyb%2Fgenkube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevencyb%2Fgenkube/lists"}