diff options
| author | nikiUppal-TS <nikita@tailscale.com> | 2025-09-02 11:26:10 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-02 11:26:10 -0500 |
| commit | 0f5d3969cad44527d371c4f0b0403b4c305bd1ac (patch) | |
| tree | 0b9274ddae88224dcf313414770618ec7f7eb2e1 | |
| parent | 61d3693e61072dea3899d860f99a0c0b91255b1a (diff) | |
| download | tailscale-0f5d3969cad44527d371c4f0b0403b4c305bd1ac.tar.xz tailscale-0f5d3969cad44527d371c4f0b0403b4c305bd1ac.zip | |
tailcfg: add tailnet display name field (#16907)
Updates the NodeCapabilities to contain Tailnet Display Name
Updates tailscale/corp#30462
Signed-off-by: nikiUppal-TS <nikita@tailscale.com>
| -rw-r--r-- | tailcfg/tailcfg.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tailcfg/tailcfg.go b/tailcfg/tailcfg.go index 6383af486..94d0b19d5 100644 --- a/tailcfg/tailcfg.go +++ b/tailcfg/tailcfg.go @@ -2656,6 +2656,14 @@ const ( // NodeAttrTrafficSteering configures the node to use the traffic // steering subsystem for via routes. See tailscale/corp#29966. NodeAttrTrafficSteering NodeCapability = "traffic-steering" + + // NodeAttrTailnetDisplayName is an optional alternate name for the tailnet + // to be displayed to the user. + // If empty or absent, a default is used. + // If this value is present and set by a user this will only include letters, + // numbers, apostrophe, spaces, and hyphens. This may not be true for the default. + // Values can look like "foo.com" or "Foo's Test Tailnet - Staging". + NodeAttrTailnetDisplayName NodeCapability = "tailnet-display-name" ) // SetDNSRequest is a request to add a DNS record. |
