score-spec / score-go

Reference library for parsing and loading Score files
Apache License 2.0
26 stars 6 forks source link

chore: updated score schema and types, added compatibility transformer #26

Closed astromechza closed 9 months ago

astromechza commented 9 months ago

Score specification updates:

515c899 fix: make httpGet probe port required, fix volume read_only to be camelCase (#13)
2fb2c34 feat: added field restrictions and tests to the repository (#12)

This carries the following "breaking" changes:

  1. Removed multiline file content string
  2. Renamed volume read_only field to readOnly

To mitigate any impact on customers in the short term, there is a new function ApplyCommonUpgradeTransforms which can automatically apply these transforms to a spec before validation and transformation. This can then be used to train or adapt customers to use the new types, and this functionality can be disabled or skipped on a customer-by-customer basis if required.

Any other restrictions are formalizations of existing documented limitations or are otherwise enforced when deployed to docker, kubernetes, or humanitec.

Once merged, this will be brought into score-compose.