Giter Site home page Giter Site logo

Comments (5)

samcornwell avatar samcornwell commented on May 30, 2024

Update: ok maybe I don't understand the logic. After running for a while with --ignore-annotations, it seems to have populated my repo, and now it's showing Skip image for everything

from sbom-operator.

ckotzbauer avatar ckotzbauer commented on May 30, 2024

Hi @samcornwell,
to populate a new repo you have to run the operator with --ignore-annotation until all your sboms are created again, then you can remove the flag again. The purpose of the flag is just to force a one-time re-scan of all images. When they are scanned (and the operator did not restart) they are skipped again, when the image did not change, it uses an in-memory cache with the sha256's.

Of course it would be possible to instead always check the repo and check if the expected file is already there, but this would be much slower, this is the reason why I implemented it this way.

Does this solve your question?

from sbom-operator.

samcornwell avatar samcornwell commented on May 30, 2024

Edit: Disregard, I did not read the message closely enough.

Thank you. That's exactly what I tried doing, and it seemed like it was working. It seemed to scan everything. Then later I looked at my logs and saw that the most recent scans are skipping again, even though I still haven't removed the --ignore-annotations flag yet. I expected that it would just scan over and over until I removed the flag, because that's what it appeared to be doing at first. Is there some other check that can cause skipping?

from sbom-operator.

samcornwell avatar samcornwell commented on May 30, 2024

Edit: Disregard, I did not read the message closely enough.

Update: I think I see what's going on. It appears there is a map in memory that tracks whether a particular image has been scanned before in the lifespan of the sbom-operator process, and it's being skipped based on that map.

If that's right, consider it resolved. Thank you

from sbom-operator.

samcornwell avatar samcornwell commented on May 30, 2024

Doh, I did not read your message close enough, apologies. Thank you.

from sbom-operator.

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.