open-policy-agent / open-policy-agent/cert-controller
Use "Get" by secret resourcename than "Watch" on all secrets.
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 109
- Forks
- 48
- Avg merge
- 19h 20m
- Merged PRs (30d)
- 6
Description
https://github.com/open-policy-agent/cert-controller/blob/master/pkg/rotator/rotator.go#L587-L593
would be less overhead to do a GET on secret by secret-name than watching the full list of secrets
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in pkg/rotator/rotator.go at lines 587-593 and trace how the controller currently watches secrets. Confirm the behavior and surrounding call flow, then make the named Secret lookup replace the full-list watch and verify that the rotator still handles the target secret correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- infrastructure
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100