Skip to content

fix(sdk/go): fall back to system active gateway - #4917

Open
ericcurtin wants to merge 1 commit into
NVIDIA:mainfrom
ericcurtin:fix/4517-go-system-active-gateway/ericcurtin
Open

ericcurtin wants to merge 1 commit into
NVIDIA:mainfrom
ericcurtin:fix/4517-go-system-active-gateway/ericcurtin

Conversation

@ericcurtin

Copy link
Copy Markdown
Contributor

Summary

Fall back to the system active_gateway when the user one is missing or invalid, like the CLI.

Related Issue

Closes #4517

Changes

  • resolveActiveGateway tries the user file, then <system dir>/active_gateway.
  • Share one file reader for both lookups.
  • Add fallback tests; isolate no-active-gateway tests from /etc/openshell.

Testing

  • Checks appropriate to the affected code and behavior pass
  • Unit tests added/updated (if applicable)
  • E2E tests added/updated (if applicable)

Ran go test ./... and golangci-lint run in sdk/go.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Match the CLI: use the system active_gateway when the user one is missing or invalid.

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@copy-pr-bot

copy-pr-bot Bot commented Oct 25, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@TaylorMutch @SDAChess could you please triage #4517 so the issue check can pass? PTAL, and /ok to test 3ded94f78ef8b2f216f56dcfdc962ba655e526aa if it looks good. Thank you!

This branch has not been deployed

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

Successfully merging this pull request may close these issues.

bug(sdk/go): no system-level active gateway fallback; OPENSHELL_SYSTEM_GATEWAY_DIR ignored

1 participant