mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-04 02:57:27 +09:00
Introduce a new dependencyMappings field in ApplicationDefinition that allows platform operators to declare how HelmRelease dependsOn entries should be constructed from application spec values at runtime. When a spec field matches a configured mapping, the operator resolves the referenced application's HelmRelease name and injects it as a dependsOn entry in the owning HelmRelease. This enables correct WaitForFirstConsumer ordering without hard-coding release names. The immediate use case is VMInstance: its disk references are mapped so each VMDisk's HelmRelease is listed as a dependency, ensuring disks are fully provisioned before the VM starts. Signed-off-by: Arsolitt <arsolitt@gmail.com>