-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
This reverts commit 0d35bcf.
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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.