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

feat: enable rendering MTPs locally for testing #400

Merged
merged 3 commits into from
Jun 28, 2022

Commits on Jun 28, 2022

  1. 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`
    charlesthomas committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    9c47c9e View commit details
    Browse the repository at this point in the history
  2. 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
    charlesthomas committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    6ad352a View commit details
    Browse the repository at this point in the history
  3. 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
    charlesthomas committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    ae02d79 View commit details
    Browse the repository at this point in the history