Git Product home page Git Product logo

Comments (4)

cppforlife avatar cppforlife commented on August 22, 2024 2

i do like a possibility of what you trying to do with manual though. probably should do more thinking around this...

from vendir.

cppforlife avatar cppforlife commented on August 22, 2024

@Zebradil yeah, manual source was very early addition that doesn't quite fit with methodology of vendir (vendir doesnt want to be "keeping" authoritative content). i would recommend switching to directory source. ill probably remove manual in the next release given that it can present very rough experience.

from vendir.

Zebradil avatar Zebradil commented on August 22, 2024

Alright, thanks for the update!

It seems like vendir works better within a dedicated directory. And I think I was trying to do something outside of the idea behind it.

My idea was to inject some third-party resources into my project without using a dedicated directory for that:

./infrastructure/kubernetes
├── bin                 # vendir: some executables from a common repo
│  └── ...
├── Makefile            # vendir: Makefile is the same across projects
├── manifests           # manual: rendered templates which will be applied by CI
│  └── ...
├── README.md           # manual
└── ytt
   ├── lib              # vendir: shared YTT templates from a common repo
   │  ├── admin
   │  │  └── ...
   │  ├── overlay
   │  │  └── ...
   │  └── apps          # vendir: selective sync apps from a common repo
   │     ├── 10-postgres
   │     │  └── ...
   │     └── 10-rabbitmq
   │        └── ...
   ├── local            # manual: specific stuff for the current project
   │  └── myapp
   │     └── ...
   └── values           # manual: project specific values [and overlays]
      ├── default.yaml
      └── secrets.yaml

Now I'm going to put vendir-managed stuff to a dedicated directory and maybe symlink Makefile from there. But anyways, separation of manual and vendir-managed resources looks more intuitive.

from vendir.

cppforlife avatar cppforlife commented on August 22, 2024

based on your breakdown above i dont think you would be able to do "manual" on the individual files so that already wouldnt work out.

but you should be able to have vendir.yml (at the root) with multiple top level directories for bin/, ytt/lib/

apiVersion: vendir.k14s.io/v1alpha1
kind: Config
directories:
- path: bin/
  contents:
  - path: .
    git:
      url: https://github.com/corp/shared-k8s
      ref: ...
    includePaths:
    - bin/**/*
    newRootPath: bin

- path: ytt/lib/
  contents:
  - path: .
    git:
      url: https://github.com/corp/shared-k8s
      ref: ...
    includePaths:
    - ytt/lib/**/*
    newRootPath: ytt/lib

though may be we should even support additional:

- path: Makefile # TODO support individual file?
- path: README.md # TODO support file existance?
- path: manifests/ # TODO support directory existance?

(could even be convenient to sync LICENSE, NOTICE, other misc files across various repos)

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.