digitalocean / container-blueprints

DigitalOcean Kubernetes(DOKS) Solution Blueprints
92 stars 46 forks source link

[create-doks-with-terraform-flux] Make sure TF providers constrain minimum allowed versions #20

Open v-ctiutiu opened 2 years ago

v-ctiutiu commented 2 years ago

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

  1. Flux CD TF provider needs an update to the latest minor version available (0.8.1):
flux = {
  source  = "fluxcd/flux"
  version = "~> 0.8.1"
}
  1. Remove the ~> which is a little bit too restrictive, and go with minimum allowed versions instead, via >= for all providers.
v-ctiutiu commented 2 years ago

This issue must be treated as part of the Starter Kit DOKS 1.22 release support, and applies for the Flux CD automation chapter.