Giter VIP home page Giter VIP logo

Comments (11)

nerdynick avatar nerdynick commented on August 25, 2024 1

I need to add this support for my customer, any opposition against implementing this using Jinja2 templates? Would allow for great flexibility for the end-user, so we don't have to keep making changes to support more use cases. Plus it's a templating engine that most people in the DevOps world are used to.

from julie.

nerdynick avatar nerdynick commented on August 25, 2024 1

Yeah, that's something I've been thinking through with a few of the changes. I'm looking at the idea of a context that would change based on the Base/Core, Topology file, and the project. This would be to address this issue, as well as the Vault integration, and I'd imagine more features would need this support.

from julie.

purbon avatar purbon commented on August 25, 2024

Hi @jkorab
thanks a lot for your question.

Actually currently this is somehow possible, if you build a topology that looks like

---
company: "company"
env: "env"
team: "team"
source: "source"
projects:
  - name: "foo"

this will generate topic that looks like

team.company.env.source.foo.foo

the only key that is mandatory in the topology is the team, because at the end of the story we need a PK for the case when there are multiple files representing a single topology so we can group.

Are you thinking more about the line of adding patterns in the values that get resolved at execution time?

from julie.

purbon avatar purbon commented on August 25, 2024

The current pattern is:

  • [team].[others in order of appearance].[project].[topic]

might be we can add a pattern as configuration ? this might be a way to implement this. What do you think?

from julie.

purbon avatar purbon commented on August 25, 2024

that would be awesome, go ahead! if I can help in anyhow let me know :-)

from julie.

purbon avatar purbon commented on August 25, 2024

Just remember at some point we need a way to group multiple files into a single topology so we need to designate a PK for the grouping.

from julie.

purbon avatar purbon commented on August 25, 2024

Hi @nerdynick , are you making any sharable advance on this topic? otherwise I would really like to start tracking this problem here.

from julie.

purbon avatar purbon commented on August 25, 2024

Hi @nerdynick, with #68 I have renamed team for context for a better understanding. I am sorry if this caused problems with your current work line, however I had to do that to enable a few people move forward. The change is a simple rename as context describe much better the purpose of the old team.

from julie.

purbon avatar purbon commented on August 25, 2024

related to #84

from julie.

purbon avatar purbon commented on August 25, 2024

@jkorab I added #86 to implement a solution for this request. Would you be so nice to let me know if this fits your expectations? thanks a lot.

from julie.

purbon avatar purbon commented on August 25, 2024

@nerdynick I know you are working on this, however I need to move forward with it. happy to get your feedback as well.

from julie.

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.