container-blueprints
container-blueprints copied to clipboard
[create-doks-with-terraform-flux] Make sure TF providers constrain minimum allowed versions
Description
Current version for the Flux CD
provider from the main TF module is a little bit too old (0.2.x). Because of this, some of the Flux CD
components deployed by the module are not functioning properly or not detected at all - e.g. kustomization/flux-system
.
Another thing to take into consideration is that the CLI counterpart gets updated really frequent as well. So, the TF provider and the flux CLI counterpart need to be not too distant, when talking about the version.
Solution
- Flux CD TF provider needs an update to the latest minor version available (0.8.1):
flux = {
source = "fluxcd/flux"
version = "~> 0.8.1"
}
- Remove the
~>
which is a little bit too restrictive, and go with minimum allowed versions instead, via>=
for all providers.
This issue must be treated as part of the Starter Kit DOKS 1.22 release support, and applies for the Flux CD automation chapter.