Open troll-warlord opened 1 week ago
fetch:
- imgpkgBundle:
image: registry.com/app1:1.0.0
- imgpkgBundle:
image: registry.com/app2:1.0.0
@troll-warlord You seem to having multiple fetch steps, could you share your use case around this?
When you have multiple fetch steps, the contents would be in different directories (by default they are indexed 0, 1, 2...) but they can also be named. For example, you can do something like this:
fetch:
- imgpkgBundle:
image: registry.com/app1:1.0.0
path: app-1
- imgpkgBundle:
image: registry.com/app2:1.0.0
path: app-2
template:
- ytt:
paths:
- app-1/config/
- kbld:
paths:
- '-'
- app-1/.imgpkg/images.yml
@praveenrewar i was actually trying to bundle multiple applications in same package.
@troll-warlord Any specific reason you want to bundle multiple applications in the same package? Do they work together? Like one of them depends on the other? Currently, folks use the concept of "meta package" to install multiple package at once. Basically, the meta package just consists of package installs for the different packages that you want to install. We are also going to work on dependencies in future, where one package can specify another package as a dependency and kapp-controller would ensure that all the dependencies are installed before a package is installed.
I have below package file (sensitive data omited)
When i run this command,
kapp deploy -a demo -f pkginstall.yml -y
i get below errorI tried removing the ytt section from Package resource, but still facing the same error. I'm not using ytt anywhere for templating