Giter Site home page Giter Site logo

Comments (5)

jalseth avatar jalseth commented on August 17, 2024 1

In that case, adding a @skip-constraint option in the Rego header may be the best way forward. That way if users want to manually manage the Constraints for a given policy and set matchers, parameters, etc. they can. If that approach is agreeable I can add that in the next couple of days.

from konstraint.

jalseth avatar jalseth commented on August 17, 2024 1

@dulltz The tag was added in #130 and will be included in the next release.

from konstraint.

jalseth avatar jalseth commented on August 17, 2024

Hi @dulltz, sorry for the delay in response. Looking back, I think I may have moved too quickly when moving forward with #93 as it somewhat goes against Konstraint's original goal of enabling the same policies to be used with Conftest and then deployed in the cluster with Gatekeeper, since these @ tags add the matching metadata to the Gatekeeper resources, but won't have any effect when using Conftest.

I understand that some people may not use Conftest, and may instead test with gvk or similar tools so I'm hoping to find a middle ground. What are your thoughts on adding a lib.matching Rego lib with helpers that would accomplish the same matching that we're adding here, but using Rego rather than the Gatekeeper CRDs to match? This way, there is feature parity either way people decide to use the tool.

from konstraint.

dulltz avatar dulltz commented on August 17, 2024

I totally agree with @jalseth 's opinion.

Since users who use the Gatekeeper match field will have to manually edit the generated custom resource,
we should focus on the #56 issue.

from konstraint.

jpreese avatar jpreese commented on August 17, 2024

@skip-constraint released in v0.12.0

from konstraint.

Related Issues (20)

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.