Git Product home page Git Product logo

Comments (3)

sanbornick avatar sanbornick commented on August 14, 2024

Since multiple jobs had kicked off for the same GitOpsConfig by one webhook and the GitOpsConfig was managing itself. I believe that one of the jobs updated the timestamps while the other job was running thus deleting the owned Kind of GitOpsConfig that had a different timestamp than it was expecting.

The deletion logic does have problems when jobs overlap. We are mitigating this, in part at least, via #351 but we need a long term solution that can make the individual jobs idempotent or use a locking mechanism so that they are able to run concurrently if that case arises.

So once the gitopsConfig was deleted then all of the other resources were deleted as well.

An option would be setting resource deletion mode to None which abandons resources managed by a gitopsConfig when that gitopsConfig is removed. Not ideal but its something...

from eunomia.

seanmalloy avatar seanmalloy commented on August 14, 2024

@sanbornick found a way to fix this ... https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency

from eunomia.

seanmalloy avatar seanmalloy commented on August 14, 2024

Fixed by #376.

from eunomia.

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.