open-policy-agent / open-policy-agent/cert-controller

Use "Get" by secret resourcename than "Watch" on all secrets.

Open
#24 1 comment 2 reactions 0 assignees View on GitHub

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.