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

RSDK-10211 - create app client from env vars #4855

Merged

Conversation

stuqdog
Copy link
Member

@stuqdog stuqdog commented Mar 14, 2025

Adds support for building an app client from env vars, to be used within modular resources.

Blocked on release of #4853

@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label Mar 14, 2025
@stuqdog stuqdog requested review from a team, njooma and lia-viam and removed request for a team March 14, 2025 14:13
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Mar 14, 2025
@@ -67,6 +70,23 @@ func CreateViamClientWithAPIKey(
return CreateViamClientWithOptions(ctx, options, logger)
}

// CreateViamClientFromEnvVars creates a ViamClient from env vars set by the module manager.
// It is intended to be used from within modular resources, and will likely fail if called
// in another context.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update this comment as well to enumerate which env vars are need to be set? while i think 95% of the time this will be done via modules, i can see sometimes this actually just being used by normal users too

@stuqdog stuqdog requested a review from njooma March 18, 2025 14:50
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Mar 18, 2025
@stuqdog stuqdog merged commit debc4c6 into viamrobotics:main Mar 20, 2025
16 checks passed
@stuqdog stuqdog deleted the RSDK-10211-app-client-from-env-vars branch March 20, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test This pull request is marked safe to test from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants