Git Product home page Git Product logo

Comments (5)

linde avatar linde commented on May 20, 2024

main concerns here is that it would be nice to be able to supply gcr.io/kpt-functions/write-yaml parameters to name folders so one could respectively:

  • enclose the cluster scoped resources
  • serve as the top level directory in which namespace specific sub-directories are contained

with these two parameters, or an equiv more elegant approach (low bar that!) one would be able to take a kpt resource list and have it written into a configuration root for an ACM repo. this could be handy in a CI step that takes unstructured config from off the shelf tool output or operator manifests and keeps them in sync in an otherwise structured gitops layout.

in the ACM case, if we did it right, this would essentially be the "dehydrate" counterpart to the nomos hydrate sub-command.

from kpt.

frankfarzan avatar frankfarzan commented on May 20, 2024

Agree. I think a good design is to have symmetry between sources and sink, i.e. read-acm-dir/write-acm-dir (Exact name doesn't matter here)

from kpt.

aw185176 avatar aw185176 commented on May 20, 2024

I am interested in implementing this for our internal usage, but ran into issues because kpt won't allow the path annotation to reference directories. There are quite a few libraries under kyaml and I am not fully up to speed on working with the RNode representation of my document. Assuming that I can write a program which calls Read on the ResourceList passed in via stdin, what would be the easiest path towards writing the individual documents to the file system?

from kpt.

bgrant0607 avatar bgrant0607 commented on May 20, 2024

cc @janetkuo

from kpt.

bgrant0607 avatar bgrant0607 commented on May 20, 2024

For dehydrate, there's https://github.com/dippynark/kfmt

However, we're primarily recommending the unstructured format.

Nonetheless, vet and hydrate would be useful as functions.

from kpt.

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.