Git Product home page Git Product logo

Comments (4)

jorgemoralespou avatar jorgemoralespou commented on August 22, 2024

So, now I created the k8s/eduk8s/upstream/eduk8s folder and everything was properly created there, but for some reason all the existing files in k8s/eduk8s/myfile.yaml were deleted this time.

from vendir.

jorgemoralespou avatar jorgemoralespou commented on August 22, 2024

I had to mmove everthing into a folder like:

k8s/eduk8s/overlay

and then add this to preserve these files:

  - path: overlay
    manual: {}

from vendir.

cppforlife avatar cppforlife commented on August 22, 2024

I have seen the test https://github.com/k14s/vendir/blob/develop/examples/overlapping-dir/vendir.yml which confuses me as it seems to be the expected behavior. What am I missing?

i ran vendir sync against your config above. i had to create k8s/eduk8s/downstream/hub since it's expected to be already existing before hand. if you dont want to do that, use directory: {path: "..."} instead of manual. following was the end result after sync:

Screen Shot 2020-08-12 at 10 30 25 AM

but for some reason all the existing files in k8s/eduk8s/myfile.yaml were deleted this time.

when you tell vendir to manage a directory it will delete everything that's not specified in vendir.yml. this is intentional since vendir is declaratively managing contents of a directory.

from vendir.

jorgemoralespou avatar jorgemoralespou commented on August 22, 2024

Thanks,
I'll close the issue since it seems as expected behavior, although the documentation doesn't help/clarify much in this regards in many of the cases.

from vendir.

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.