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

Generate pkl classes based on registry schemas #318

Merged
merged 34 commits into from
Mar 21, 2024

Conversation

ericzbeard
Copy link
Contributor

@ericzbeard ericzbeard commented Mar 14, 2024

This PR adds some support for Apple's pkl configuration language.

See https://pkl-lang.org/index.html

You can now provide a file with a .pkl extension to rain commands such as rain deploy, and if the file can be successfully evaluated and serialized to YAML, it will be deployed as normal.

You can also import a new Pkl package that we are creating each time we do a rain release. The package will be on the release page with a name like [email protected]. This package has a class for every registry resource type, modules for things like template which you can amend, and higher level patterns (for now there's just a single pattern but we plan to add more)

This PR has a huge number of files because we are now including registry schemas in the binary, instead of downloading them each time we need them. And we are generating a pkl class for each of those json schema files.

@ericzbeard ericzbeard marked this pull request as ready for review March 20, 2024 21:36
@ericzbeard ericzbeard merged commit 8269636 into aws-cloudformation:main Mar 21, 2024
1 check passed
@ericzbeard ericzbeard deleted the pkl branch March 21, 2024 15:22
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.

1 participant