[PR #6722] [client] deprecate non-functional admin URL flag #26802

Open
opened 2026-08-05 07:07:49 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/6722
Author: @CoderSufiyan
Created: 7/10/2026
Status: 🔄 Open

Base: mainHead: fix/issue-4486-deprecate-admin-url


📝 Commits (1)

  • 69150eb [client] deprecate non-functional admin URL flag

📊 Changes

3 files changed (+33 additions, -2 deletions)

View changed files

📝 client/cmd/root.go (+2 -1)
📝 client/cmd/root_test.go (+31 -0)
📝 client/cmd/up.go (+0 -1)

📄 Description

Description

PR #4218 deprecated the --admin-url flag and stopped applying its value, but the long-running profiles work in PR #3980 restored the old behavior when it merged shortly afterward.

This restores the intended deprecation behavior.

Changes

  • Mark --admin-url as deprecated and describe it as non-functional
  • Stop forwarding its value in SetConfigRequest
  • Add regression tests for the flag metadata and ignored configuration value

Testing

  • TMPDIR=/tmp/netbird-tests go test ./client/cmd -count=1
  • go test ./client/internal/profilemanager -count=1
  • go vet ./client/cmd ./client/internal/profilemanager
  • go build -o /tmp/netbird-tests/netbird ./client

Fixes #4486

Summary by CodeRabbit

  • Bug Fixes
    • Deprecated the --admin-url CLI option and clarified that it is no longer functional.
    • Daemon configuration now ignores values supplied through the deprecated admin URL option.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/6722 **Author:** [@CoderSufiyan](https://github.com/CoderSufiyan) **Created:** 7/10/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/issue-4486-deprecate-admin-url` --- ### 📝 Commits (1) - [`69150eb`](https://github.com/netbirdio/netbird/commit/69150eb29dc7a59cef9d597f2a77477cc058591b) [client] deprecate non-functional admin URL flag ### 📊 Changes **3 files changed** (+33 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `client/cmd/root.go` (+2 -1) 📝 `client/cmd/root_test.go` (+31 -0) 📝 `client/cmd/up.go` (+0 -1) </details> ### 📄 Description ## Description PR #4218 deprecated the `--admin-url` flag and stopped applying its value, but the long-running profiles work in PR #3980 restored the old behavior when it merged shortly afterward. This restores the intended deprecation behavior. ## Changes - Mark `--admin-url` as deprecated and describe it as non-functional - Stop forwarding its value in `SetConfigRequest` - Add regression tests for the flag metadata and ignored configuration value ## Testing - `TMPDIR=/tmp/netbird-tests go test ./client/cmd -count=1` - `go test ./client/internal/profilemanager -count=1` - `go vet ./client/cmd ./client/internal/profilemanager` - `go build -o /tmp/netbird-tests/netbird ./client` Fixes #4486 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Deprecated the `--admin-url` CLI option and clarified that it is no longer functional. * Daemon configuration now ignores values supplied through the deprecated admin URL option. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 07:07:49 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#26802