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

Add optional flag to run edge endpoint for balena #73

Merged
merged 7 commits into from
Aug 12, 2024

Conversation

f-wright
Copy link
Collaborator

@f-wright f-wright commented Jul 16, 2024

This PR requires the RUN_EDGE_ENDPOINT environment variable to be set before launching the edge-endpoint pods when running on Balena. A PR in the glhub repo will soon enable running an app and edge-endpoint on a hub device, but we don't want to launch edge-endpoint on the hub devices unless it is specifically enabled.

@f-wright f-wright changed the title Edge app compatibility Add optional flag to run edge endpoint for balena Aug 9, 2024
@f-wright f-wright marked this pull request as ready for review August 9, 2024 23:43
@honeytung honeytung self-requested a review August 12, 2024 17:28
Copy link
Member

@honeytung honeytung left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks!

@@ -53,6 +55,12 @@ check_pv_conflict() {
return 0
}

if [ -n "$BALENA" ] && [ -z "$RUN_EDGE_ENDPOINT" ]; then
Copy link
Member

@honeytung honeytung Aug 12, 2024

Choose a reason for hiding this comment

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

Just curious when running on devices in Balena, does this env var "BALENA" get automatically set from them or do we have to do that ourselves?

Copy link
Collaborator Author

@f-wright f-wright Aug 12, 2024

Choose a reason for hiding this comment

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

The BALENA var is automatically set. We need to go in and set RUN_EDGE_ENDPOINT for it to launch edge-endpoint.

@f-wright f-wright merged commit ad3b94e into main Aug 12, 2024
7 checks passed
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.

2 participants