Comments (3)
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.
@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.
Fixed by #376.
from eunomia.
Related Issues (20)
- Deleting a namespace causes job to fail
- e2e example test start multiple gitopsconfigs
- Improve logging configuration
- Rollout in HA mode with no outage.
- Resource Deletion Incorrectly Triggered HOT 4
- GitLab WebHook support
- Webhook event type ping
- Change Trigger to GitOpsconfig creates two Jobs and two pods HOT 3
- Enable successfulJobsHistoryLimit and failedJobsHistoryLimit to Cronjob Template HOT 1
- Deduplicate webhook triggers against same GitOpsConfig HOT 1
- idea/experience exchange with kapp-controller HOT 1
- Eunomia will randomly delete objects when multiple jobs for the same CR run concurrently HOT 4
- Consider listing operator in Artifact Hub
- GitOps Trigger on Tag Update not Working HOT 1
- Unable to build Eunomia on current version of operator-sdk HOT 3
- Update To Go 1.15 HOT 1
- Ability to pass branchName to processTemplates.sh
- Add PodSecurityPolicy To Helm Deployment
- Operator projects using the removed APIs in k8s 1.22 requires changes.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eunomia.