Giter VIP home page Giter VIP logo

kyverno-policy-kuttl-test's Introduction

KUTTL Test

Description

The test suite for this Kyverno policy validates the policy's functionality and effectiveness. It covers multiple scenarios to ensure proper enforcement and accurate labeling of Kubernetes resources. The test suite employs a combination of configuration files and scripts to assert the desired behavior, guaranteeing the policy's accuracy and preventing unintended modifications.

Running the test

kubectl kuttl test ./tests/

Output

Should get the following output at the completion of the test case: image

Test Cases

  1. ConfigMap without the lfx-mentorship label in a matching namespace
  2. ConfigMap with the lfx-mentorship label in a matching namespace
  3. ConfigMap without the lfx-mentorship label in a non-matching namespace
  4. Resource other than ConfigMap in a matching namespace
  5. Resource other than ConfigMap in a non-matching namespace

kyverno-policy-kuttl-test's People

Contributors

ashwin901 avatar

Watchers

 avatar  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.