fluxcd / kustomize-controller

The GitOps Toolkit Kustomize reconciler
https://fluxcd.io
Apache License 2.0
255 stars 182 forks source link

HelmRelease, Kustomization DependsOn #242

Closed fearlesschenc closed 3 years ago

fearlesschenc commented 3 years ago

Currently HelmRelease only allowed to depends on HelmRelease, Kustomization only allowed to depends on Kustomization.

Is it a better solution if we can remove the type restriction ?

stefanprodan commented 3 years ago

Is it a better solution if we can remove the type restriction ?

This implies a hard coupling between the two APIs (Kustomization and HelmRelease), I am not in favour of this.

You can add HelmReleases to the Kustomization heath checks, this way dependsOn can be used to create a dependency graph between HelmReleases and other Kubernetes objects.