balena-io / open-balena-api

The core API of openBalena
https://balena.io/open
GNU Affero General Public License v3.0
58 stars 29 forks source link

Replace RESIN_ env vars with BALENA_ #706

Open klutchell opened 3 years ago

klutchell commented 3 years ago

Title says it all. Not sure if replacing all hardcoded instances will have a negative effect on the current dashboard without some kind of migration?

jellyfish-bot commented 3 years ago

[klutchell] This issue has attached support thread https://jel.ly.fish/f15cce18-c260-48e1-ae37-193b93a0f73c

dfunckt commented 3 years ago

You probably mean config vars (ie. not env vars) because env vars can be anything except starting with those prefixes.

We ultimately want to get rid of the prefixes -- they were (mostly) a work around to signifying special env vars before we added the "config vars" resource/concept, as both user-defined and special vars were stored as env vars. There's #34 for quite a while which is blocked for a few reasons.

Here are the ways these prefixes are significant:

All in all, this is totally worth raising for a brainstorm if you feel like it.

klutchell commented 3 years ago

You probably mean config vars (ie. not env vars)

Yup, thank you!

I think that Supervisors that accept BALENA prefixed config vars also accept and internally transform RESIN prefixed ones (we'd have to double-check as I'm not sure) which may simplify things.

This is correct, I can confirm.