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

Add a kubernetes-render task #375

Merged
merged 13 commits into from
Dec 14, 2018
Merged

Add a kubernetes-render task #375

merged 13 commits into from
Dec 14, 2018

Commits on Dec 10, 2018

  1. Factor out an OptionsHelper module to DRY up some of the options pars…

    …ing used in exe files.
    airhorns committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    051f520 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a03451d View commit details
    Browse the repository at this point in the history
  3. Add a stdout_assertion test helper that captures what was supposed to…

    … go to $stdout and conditionally asserts on it if logs aren't being printed
    airhorns committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    1639d80 View commit details
    Browse the repository at this point in the history
  4. Add a kubernetes-render command, which renders templates to STDOUT

    This introduces kubernetes-render, which is a UNIX-philosphy abiding simple tool that can pipe ERB-rendered raw YAML along to the next place anyone wants to send it. It renders one template in a template_dir with bindings.
    
    It does this by:
    
    Adding a new RenderTask that invokes a Renderer on a passed template
    Adding a new exe file that invokes RenderTask
    airhorns committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    03b9403 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b22e2d5 View commit details
    Browse the repository at this point in the history
  6. Allow kubernetes-render to take multiple templates to render, and ren…

    …der all if none are given
    
    Also fixes an issue from previous commits where a method in the test_helper named test_output_stream was being interpreted as an actual test. Oops!
    airhorns committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    9e34ea0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    48324f5 View commit details
    Browse the repository at this point in the history
  8. Group exceptions when rendering in the render task and only raise at …

    …the end so as much progress is made as possible
    airhorns committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    7cbb6c0 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2018

  1. Configuration menu
    Copy the full SHA
    ea71bec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9487b22 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2018

  1. Validate that runtime errors in rendering YAML are raised and caught …

    …as InvalidTemplateErrors
    
    I mistakenly was catching and treating FatalDeployErrors as something different, but they aren't! This unifies it (and breaks out a different method for rendering for clarity)
    airhorns committed Dec 12, 2018
    Configuration menu
    Copy the full SHA
    2ae2735 View commit details
    Browse the repository at this point in the history
  2. Use a slightly simpler way of yielding strings in the test helper

    Since its a StringIO, we don't really need to rewind and whatnot.
    airhorns committed Dec 12, 2018
    Configuration menu
    Copy the full SHA
    66e1fb5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    14aada8 View commit details
    Browse the repository at this point in the history