Giter VIP home page Giter VIP logo

Comments (3)

calvn avatar calvn commented on July 24, 2024

The creation of this .ref file is internal to, and needed in, git2consul. In order for git2consul to work, it needs to know about the state of the contents for that particular path in order to perform diffs and changes. Instead of using a database or some other external state storage system, we decided to use git itself in order for git2consul to figure out changes and update KVs accordingly. Without this, git2consul would have to rewrite all KVs from that path and everything below it every time it detected a change, which is less than ideal.

from git2consul.

NRay7882 avatar NRay7882 commented on July 24, 2024

Thanks for the quick reply!

I figured that was the case, because our use-case is for pushing the contents of the repo on top of whatever is already in Consul, we don't have much dependence for tracking these changes outside of the repo. I'm having our job post a "curl -X DELETE" command since the path is static, I'm going to use this configuration going forward unless there's a better recommended approach for removing this file. Thanks again.

from git2consul.

calvn avatar calvn commented on July 24, 2024

@NRay7882 No problem! I think the behavior on git2consul would be to rewrite the KVs for that entire branch when it would detect a change, but I might be wrong on this one. I am going to close this, but feel free to re-open if there are any related issues that arise with your approach.

from git2consul.

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.