Giter Club home page Giter Club logo

please-opa's Introduction

please-opa

OPA integration w/ the Please build system.

This includes support for the following:

  • opa_toolchain: Easy management of multiple versions of OPA.
  • opa_bundle: OPA bundling from the local filesystem.
  • opa_test: OPA tests against bundles.
  • opa_eval: OPA eval script for use in runtime evaluations.
    • Useful for evaluating non-build time data like Terraform Plans.
  • opa_eval_test: OPA eval as build time test.
    • Useful for evaluating data available at build like Kubernetes resources.

opa_toolchain

This build rule allows you to specify a OPA version to download and re-use in all rules.

opa_bundle

This build rule allows you to create an OPA bundle which may be used by other OPA bundles or evaluated with.

See //example/... for examples of opa_bundles.

opa_test

This build rule allows you to run OPA tests against opa_bundles to verify the bundle's rego code performs its expected behaviours.

See //example/... for examples of opa_tests.

opa_eval

This build rule creates a binary which may be used to evaluate arbitrary data at run-time with the given OPA bundles.

See //example/... for examples of opa_evals.

opa_eval_test

This build rule creates a "test" rule which can may be used to evaluate arbitrary data at test-time using the given opa_eval binary.

See //example/... for examples of opa_eval_tests.

Usage

Please Plugin

; .plzconfig

; Support the non *-rules repo name format of Please plugins.
PluginRepo = "https://github.com/{owner}/{plugin}/archive/{revision}.zip"

[Plugin "opa"]
Target = //third_party/plugins:opa
# //third_party/plugins/BUILD
plugin_repo(
    name = "opa",
    owner = "VJftw",
    plugin = "please-opa",
    revision = "v0.0.1",
)

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.