Giter Site home page Giter Site logo

helm-chart-tests-demo's Introduction

helm-chart-tests-demo

Small demo helm chart with tests that validate the kubernetes yaml files that generated by the templates. The tests are written using kubetest, powerfull tool that let you easily write tests for those files.

Running the tests

Setting up

Running

  • cd demo
  • Generate the files using helm template . -f tests/values.yaml > template.yaml
  • Run the tests using kubetest template.yaml --verbose.

How does it works?

  • the demo/tests/values.yaml file define various values for your template. helm template use this file to generate kuberenetes yaml. You can set here all the various configurations of your templates, and even have multiple values files for different tests.
  • The tests, located at demo/tests/tests.sky running the validation on the configuration files. Take a look at the test, it is pretty simple - testing the the nameOverride from the values.yaml actually used. Feel free to modify the tests and watch it broken.

What missing?

  • Docker file - with all the dependencies, to make it easier to run the tests
  • Add CI to the demo, make it easier to understand how to run the tests

helm-chart-tests-demo's People

Contributors

omerlh avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.