Giter Site home page Giter Site logo

Comments (2)

eyarz avatar eyarz commented on June 8, 2024 1

@nosleep77 Can you apply this "broken" config to your cluster with kubectl?
If the answer is no (because the cluster rejects it) - it's a bug in Datree.
If the answer is yes - it's not a bug, and I will explain why...

Datree runs three types of validation in the following order:

  1. yaml validation
  2. schema validation
  3. policy check

If I reproduce the steps you mentioned, I can see that it's passing all the checks.
Now let's break it down:

  1. yaml validation - it's a valid yaml, so this fine
  2. schema validation - you're expecting it to fail
  3. policy check - passing because you don't have any built-in/custom rule that targets this CR

So the question is - why the schema validation for this CR is passing and not failing?
The answer is that the schema we are using to validate this CR is extracted from the Probe CRD that is defined and maintained by the Prometheus community (in this case, Daree is just a pipe to match a file to the correct schema). Therefore, the right place to fix it is by opening a PR/issue in the Prometheus project.

from datree.

github-actions avatar github-actions commented on June 8, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from datree.

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.