github GalleyBytes/terraform-operator v0.5.0
v0.5.0 release

latest releases: v0.17.1, v0.17.1-beta1, v0.17.0...
2 years ago

Changes in v0.5.0 since v0.4.0

Changes

  • Terraform "outputs" can now be saved. The options now are saving the outputs to a secret or the terraform-resouce's status.
    • writeOutputsToStatus (bool) saves the status to the terraform-resource's status
    • outputsSecret (string) name of secret to update with outputs
    • outputsToInclude or outputsToOmit are whitelist and blacklist keys from the terraform module's outputs to write to the secret/terraform-resource
  • Created two new ways for defining a terraform module;
    • terraformModuleConfigMap (map) uses a name and optional key to an existing ConfigMap to mount as a volume to use as the terraform module
    • terraformModuleInline (string) allows the user to write terraform as a string value which is used to create a module .tf file to use as the terraform module
  • The setup runner is now a standalone container and not part of the init container anymore. Setup will run prior to all other runners.
  • The exportRepo has now been changed to run as a runner. Formerly, this function used the controller pod to format tfvars and push to the confiugred git repo. Now it gets run as part of the terraform workflow by the aptly named "export-runner". The "export-runner" runs in parallel after "setup-runner" has been completed.

Breaking Changes

  • Users who have pinned the any of the Runners will need to update to the following:

    • Runner Type Image Tag
      Terraform Execution docker.io/isaaguilar/tf-runner-v5beta1 <terraformVersion>
      Setup docker.io/isaaguilar/setup-runner 1.1.2
      Scripts docker.io/isaaguilar/script-runner 1.0.0
  • Environment variables (in runners) has changed; TFO_DOWNLOADS is now changed to TFO_MAIN_MODULE_ADDONS.

  • The crd item spec.terraformModule.address is now just spec.terraformModule

  • The crd item spec.sources has changed to spec.resourceDownloads.

    • The former spec.sources.extras field is removed in spec.resourceDownloads
    • spec.resourceDownloads.path (string) has been added to define the path to add the file or directory from the downloaded resource
    • spec.resourceDownloads.useAsVar (bool) has been added to use the downloaded file as a tfvar in the terraform execution.

Related Release:

The official helm-chart for v0.5.0 is released at https://github.com/isaaguilar/helm-charts/releases/tag/terraform-operator-v0.2.0

Don't miss a new terraform-operator release

NewReleases is sending notifications on new releases.