-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: enable rendering MTPs locally for testing #400
Conversation
5b487b7
to
dccfcd7
Compare
8220600
to
2f05d8e
Compare
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.
Please add some info in the Readme.md on how to use this script for testing, as well as some sample files that someone would use with the script.
840f669
to
6da8ec9
Compare
i added examples for running w/one or multiple |
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.
i just updated master to include fixes for audit failures. once this branch is rebuilt with master and has a successful build, it should be good to approve and merge
- `bin/renderlocal` can take an `--mtp`, and any number of `--env`s (greater than 0) and render resources, writing them to `--out` - create a `LocalMustacheTemplateController` that resembles the mocked one used in tests - update tests to use `LocalMustacheTemplateController` - depends on proposed changes to `razeedeploy-core`
- `bin/renderlocal` now imports `test/lib/LocalRenderer` - this allows other node projects that include MTPs to be able to use the `LocalRenderer` in their own tests - also addresses PR feedback: - items previously added to `src` are now in `test/lib` - `razeedeploy-core` PR was updated to remove logic defaulting namespaces. that logic has been moved here in `test/lib/IOUtils.js`'s `kubeDataFromYamlFiles` method and a warning is emitted when it defaults
- examples should be copy/paste-able from the root of the repo - included: - single and multiple `--env` arguments - with and without `--out` option
7d36d85
to
ae02d79
Compare
done! |
thanks for the contribution |
* feat: enable rendering MTPs to disk, from disk - `bin/renderlocal` can take an `--mtp`, and any number of `--env`s (greater than 0) and render resources, writing them to `--out` - create a `LocalMustacheTemplateController` that resembles the mocked one used in tests - update tests to use `LocalMustacheTemplateController` - depends on proposed changes to `razeedeploy-core` * feat: make `LocalRenderer` importable - `bin/renderlocal` now imports `test/lib/LocalRenderer` - this allows other node projects that include MTPs to be able to use the `LocalRenderer` in their own tests - also addresses PR feedback: - items previously added to `src` are now in `test/lib` - `razeedeploy-core` PR was updated to remove logic defaulting namespaces. that logic has been moved here in `test/lib/IOUtils.js`'s `kubeDataFromYamlFiles` method and a warning is emitted when it defaults * docs: add `bin/renderlocal` to README w/examples - examples should be copy/paste-able from the root of the repo - included: - single and multiple `--env` arguments - with and without `--out` option
bin/renderlocal
can take an--mtp
, and any number of--env
s(greater than 0) and render resources, writing them to
--out
LocalMustacheTemplateController
that resembles the mockedone used in tests
LocalMustacheTemplateController
razeedeploy-core