Comments (5)
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.
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.
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.
cc @janetkuo
from kpt.
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)
- Intermittent errors from packagevariant HOT 1
- Issue in kpt rpkg command HOT 3
- [Question] Adding simple build steps to Kptfile HOT 3
- Exclude resources when using set-labels on a Stateful set
- bugs in Docs: 1.2 Quickstart HOT 1
- Porch Repository do not reflect change in auth secret
- Propose delete flag not working for some kpt packages HOT 1
- What RBAC permissions for live apply? Correct values for apiGroups and resources HOT 1
- Allow implicit namespace resolution in apply-time-mutation
- Porch failing to connect to remote Git private repo with self-signed SSL certs HOT 5
- [Question] How to create dynamic content based on a variable
- Website does not have the correct trademark disclaimer
- Move away from Google CLA (part of CNCF project onboarding)
- Could we have apply-setters:v0.3.0?
- KRM function "ensure-name-substring" should have a parameter "delimiter"
- Docs: Installation (https://kpt.dev/installation/kpt-cli)
- Document basic parts of the package design
- Document basic parts of the hydration/rendering design
- Document pipeline merge logic
- yaml path not working for nested keys with list and replacment now working as well
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 kpt.