balena-io / balena-sdk

The SDK to make balena powered JavaScript applications.
https://www.balena.io/
Apache License 2.0
145 stars 46 forks source link

openBalena: deviceType.getAllSupported() and config.getDeviceTypes() produce unexpected results #1104

Open pdcastro opened 3 years ago

pdcastro commented 3 years ago

Expected Behavior

openBalena users expect that the CLI's balena devices supported command would list the devices actually supported by openBalena (issue balena-io/balena-cli#2281). In turn, it is somewhat expected that the SDK's deviceType.getAllSupported() or config.getDeviceTypes() methods would list the devices actually supported by openBalena when targeting openBalena's API server. The device types supported by openBalena are currently documented in openBalena's README:

https://github.com/balena-io/open-balena#differences-between-openbalena-and-balenacloud Differences between openBalena and balenaCloud Supported devices openBalena: Raspberry Pi family, the Intel NUC, the NVIDIA Jetson TX2, and the balenaFin balenaCloud: All the devices listed in balena's reference documentation

Actual Behavior

References:

thgreasi commented 3 years ago

@pdcastro but the SDK already reports as supported only the DT's that the API returns as known, which are based on what is found in the S3 bucket defined in the oB's docker-compose.yml . I see your point but I'm almost tempted to say that this works as expected atm. Maybe it's an issue of just setting the correct items in the balenaOS S3 bucket :thinking:

pdcastro commented 3 years ago

Connects-to: balena-io/open-balena/issues/129