Bug
apps/homerun-base-stack and apps/homerun-iot-stack both declare:
- A Namespace named
homerun
- A HelmRepository named
homerun in the homerun namespace
If both are applied by Flux on the same cluster, there will be duplicate resource conflicts.
Context
The two stacks appear to be designed for co-deployment (IoT stack extends the base stack). The homerun-iot-stack should not re-declare resources already created by homerun-base-stack.
Fix Options
- Remove duplicate resources from
homerun-iot-stack/requirements.yaml and document that it depends on homerun-base-stack being applied first
- Merge both stacks into a single component with optional releases
- Use Flux
dependsOn in the IoT stack's Kustomization to ensure ordering