mayadata-io / mayadata-io/d-operators

feat: use client.go's retry instead of continuous polls to api server

Open
#82 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue retry
Dominant language
Go
Stars
10
Forks
6
PR merge metrics
No merged PRs in 30d

Description

ref - https://github.com/kubernetes/client-go/blob/master/examples/dynamic-create-update-delete-deployment/main.go#L134

Recipe/Job custom resource makes continuous requests to API server. This can exhaust kubernetes API server. Use client-go' retry to reduce this attack on api server.

In addition, to above make use of Get & List calls of Informer. This should also help reduce exhausting kubernetes api server.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the referenced client-go retry example and trace how the Recipe/Job custom resource currently requests the API server. Check the controller's informer usage, then replace continuous polling with client-go retry and informer Get/List calls. Done means the resource reconciliation no longer makes continuous API requests while still observing updates correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
backend-api-design, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.