Skip to content

Support live applying nested packages #2451

@howardjohn

Description

@howardjohn

Describe your problem

I have a directory setup representing my entire cluster like:

Kptfile
|__ grafana
      |__ Kptfile
|__ prometheus
      |__ Kptfile
... many more packages, many namespaces, etc ...

I want to apply all of these to the cluster. Currently, the best way to do that seems to be:

find . -maxdepth 1 -mindepth 1 -type d | xargs -I{} kpt live apply --inventory-policy=adopt {} --output table

This has a few issues:

  • Not super easy, especially compared to simple kpt live apply
  • Now we wait for each subpackage linearly, instead of doing everything at once

It would be great to be able to just pass my entire desired cluster state, consisting of many namespaces, object inventories, etc to kpt live apply at once and let it figure out the right way to apply and wait for completion

Metadata

Metadata

Assignees

Labels

area/liveenhancementNew feature or requesttriagedIssue has been triaged by adding an `area/` label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions