Giter Site home page Giter Site logo

datree-cdk8s's Introduction

Datree cdk8s validation plugin

Overview

cdk8s by AWS is an open-source software development framework for defining Kubernetes applications using familiar programming languages and rich object-oriented APIs. cdk8s apps synthesize into standard Kubernetes manifests which can then be applied to any Kubernetes cluster.

This plugin allows you to run automatic policy checks against synthesized manifests to ensure that they are configured according to your standards.

Specification

cdk8s plugins come in the form of NPM packages.
When specified in the configuration file, the cdk8s CLI will automatically install and run a plugin. See the Usage section below for instructions.

Prerequisites

To use this plugin, the cdk8s CLI needs to be installed.

Usage

In your cdk8s configuration file, add a validations key with the following properties:

  • package - the name of the npm package to be used
  • class - the name of the class that implements the interface
  • version - the version of the package to be used
  • properties - additional properties to be used. Currently only policy is supported, used to set the desired Datree policy to be used for the policy check

To use this plugin, your configuration file should look like this:

language: typescript
app: ts-node main.ts
validations:
  - package: '@datreeio/datree-cdk8s'
    class: DatreeValidation
    version: 1.3.5
    properties:
      policy: cdk8s

Customization

You can use any policy in your Datree account for your checks, simply change the value of the policy key in your configuration file to the name of your desired policy:

properties:
  policy: default

datree-cdk8s's People

Contributors

akefirad avatar hadar-co avatar myishay avatar shmu3l avatar tzlilswimmer123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

akefirad

datree-cdk8s's Issues

Add schema property

Would be nice to be able to set the K8S version for schema validation. Happy to send a PR

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.