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 statusoutputsSecret
(string) name of secret to update with outputsoutputsToInclude
oroutputsToOmit
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 aname
and optionalkey
to an existing ConfigMap to mount as a volume to use as the terraform moduleterraformModuleInline
(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 toTFO_MAIN_MODULE_ADDONS
. -
The crd item
spec.terraformModule.address
is now justspec.terraformModule
-
The crd item
spec.sources
has changed tospec.resourceDownloads
.- The former
spec.sources.extras
field is removed inspec.resourceDownloads
spec.resourceDownloads.path
(string) has been added to define the path to add the file or directory from the downloaded resourcespec.resourceDownloads.useAsVar
(bool) has been added to use the downloaded file as atfvar
in the terraform execution.
- The former
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