Content-Length: 211474 | pFad | http://github.com/tailscale/tailscale/issues/14788

AB controlknobs: too much boilerplate to add new ones · Issue #14788 · tailscale/tailscale · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

controlknobs: too much boilerplate to add new ones #14788

Open
bradfitz opened this issue Jan 26, 2025 · 0 comments
Open

controlknobs: too much boilerplate to add new ones #14788

bradfitz opened this issue Jan 26, 2025 · 0 comments
Assignees

Comments

@bradfitz
Copy link
Member

There's a lot of boilerplate for us to add new controlknobs (which make it possible to disable experimental/risky functionality from the control plane, derisking client releases, knowing we can roll things back to the old behavior if it turns out bad).

This is a tracking bug to make controlknobs easier to add, without so many repetitive steps:

  • adding a tailcfg const
  • updating Knobs.AsDebugJSON
  • updating Knobs.UpdateFromNodeAttributes

etc

@bradfitz bradfitz self-assigned this Jan 26, 2025
bradfitz added a commit that referenced this issue Jan 26, 2025
…aintenance

The AsDebugJSON method (used only for a LocalAPI debug call) always
needed to be updated whenever a new controlknob was added. We had a
test for it, which was nice, but it was a tedious step we don't need
to do. Use reflect instead.

Updates #14788

Change-Id: If59cd776920f3ce7c748f86ed2eddd9323039a0b
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
bradfitz added a commit that referenced this issue Jan 26, 2025
…aintenance

The AsDebugJSON method (used only for a LocalAPI debug call) always
needed to be updated whenever a new controlknob was added. We had a
test for it, which was nice, but it was a tedious step we don't need
to do. Use reflect instead.

Updates #14788

Change-Id: If59cd776920f3ce7c748f86ed2eddd9323039a0b
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/tailscale/tailscale/issues/14788

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy