Open gtirloni opened 1 year ago
Hi @gtirloni! Do you think the vendir spec is helpful in understanding that the directories is just the directories that we want to manage using vendir? I guess the contents part is something that we could enhance?
(Moving the issue to the https://github.com/carvel-dev/carvel repo as it's a docs issue Nevermind, can't do it from my phone)
IMHO, the spec is fine. I wanted to tell my story just to show that someone could be confused by prior rsync-like knowledge. Maybe just docs update would be fine. Thanks for creating this tool, very useful.
My goal is to synchronize a few Git repositories in a certain local directory.
It seems
path
can be a completely different object if it's underdirectories
orcontents
. Here's my journey.One cannot specify
.
as the directory and add entries incontents
:And it's also not possible to specify a list of directories directly under
directories
:Even with
contents
it doesn't work:The Eureka moment:
path
is not the same kind of object with everywhere.Finally, the
workaroundsolution is to define another self-referencing.
path. Now, this works:A few thoughts:
contents
should actually besubdirectories
, but still subdirectories would have a different schema from directories (confusing)directories
is just a local structure used to storecontents
and that acontent
is the actual thing you want to synchronize. I assume most people will be familiar with rsync and how it synchronizes remote directories with local directories but that's not how vendir works.