Giter Club home page Giter Club logo

kuttl's Introduction

KUTTL

CircleCI

KUbernetes Test TooL (KUTTL) provides a declarative approach to test Kubernetes Operators.

KUTTL is designed for testing operators, however it can declaratively test any kubernetes objects.

This is a customized versions of Kuttl. Layer5 has modified Kuttl to support more features that complement the use cases of Layer5.

Getting Started

Please refer to the getting started guide documentation.

Additional features

InCluster kubeConfig

Kuttl was meant to be used as a CLI tool, thus it takes kubeConfig from the ENV and loads it. But we would want to run some test in the cluster so that we have access all kubernetes resources. Enabling the InCluster field in the harness object will force kuttl to pull out the KubeConfig as an InCluster config from inside the Pod.

Custom handler injection in TestSteps

Developers can pass functions to Kuttl and pass the TestStep name so that Kuttl will run this function at the end of the TestStep. It is useful for cases where we might want custom tests other than the asserts and errors by Kuttl.

Result Collection

Each TestCase returns a result object that lists the TestSteps that succeeded and failed.

YAML Namespace injection

In the YAML files passed to Kuttl, if one uses the placeholder <NAMESPACE>, then while loading the tests Kuttl will replace it with the name of the kubernetes namespace in which the tests will be run.

Namespace Annotations

The developer can provide a list of annotations to Kuttl which will be used by Kuttl to annotate the namespace while its creation.

For an example of how to use it, look into the SMI conformance project by Layer5.

kuttl's People

Contributors

aneumann82 avatar gerred avatar jbarrick-mesosphere avatar joejulian avatar kanishkarj avatar kensipe avatar kumarabd avatar leecalcote avatar nveenjain avatar porridge avatar zmalik avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

l5io

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.