Releases: gruntwork-io/terratest
v0.56.0
✨ New Features
CreateJobFromCronJob and CreateJobFromCronJobE added.
The CreateJobFromCronJob and CreateJobFromCronJobE functions support creating Kubernetes cron jobs in a given namespace. This mirrors the behavior of the kubectl create job ... --from=cronjob/... command and provides a native way to trigger and test CronJob configurations within Terratest.
Special thanks to @Steffas for contributing this feature.
🐛 Bug Fixes
Preserve existing instance metadata in SetMetadata
Updates the newMetadata function to properly copy existing metadata items before applying new key-value pairs. This resolves an issue introduced in v0.55.0 where functions like SetMetadata and AddSshKey were accidentally overwriting all existing instance metadata instead of merging the new values.
Plan output parsing for Terraform 1.14+ fixed
Removes the trailing period requirement from the planWithChangesRegexp regular expression used by GetResourceCount. This resolves parsing failures caused by Terraform 1.14's new Actions feature, which appends additional text (e.g., . Actions: N to invoke.) to the standard plan summary line.
Update CronJob to use the batch/v1 API
Updates the CronJob implementation under the hood to use the stable batch/v1 API instead of batch/v1beta1. This restores compatibility with modern Kubernetes clusters, as the older v1beta1 API was completely removed in Kubernetes 1.25.
📖 Documentation Updates
Homepage examples for Terragrunt updated
Examples relevant to Terragrunt have been fixed in the https://terragrunt.gruntwork.io site.
⚙️ Process Updates
Golang bumped to 1.26
The version of Golang in go.mod has been updated to 1.26.
What's Changed
- feat(k8s): Add function to create job from cronjob by @steffsas in #1658
- chore: Onboarding Travis by @yhakbar in #1654
- fix: Fix SetMetadata to preserve existing GCP instance metadata by @james00012 in #1657
- fix: Fix plan output parsing for Terraform 1.14+ by @james00012 in #1661
- fix: Fix CronJob to use batch/v1 API instead of removed v1beta1 by @james00012 in #1662
- docs: Fixing website links by @yhakbar in #1666
- chore: Bump faraday from 1.0.1 to 2.14.1 in /docs by @dependabot[bot] in #1663
- chore: Bumping Go to
1.26by @yhakbar in #1667
New Contributors
Full Changelog: v0.55.0...v0.56.0
v0.55.0
What's Changed
- docs: add example for skipping test stages by @james00012 in #1629
- fix: remove satori/go.uuid dependency (CVE-2021-3538) by @james00012 in #1630
- Upgrade Go to 1.24.0 and update terragrunt module for CLI redesign by @james00012 in #1633
- Improve Terragrunt + Terratest documentation and deprecate Tg* functions by @james00012 in #1638
- Fix various bugs and cleanup deprecated code by @james00012 in #1646
- Fix GCP test failures by @james00012 in #1647
- Update bitnami/nginx chart version in helm tests by @james00012 in #1648
- Fix failing Kubernetes tests by @james00012 in #1650
- Fix CI test failures by @james00012 in #1651
- Upgrade Kubernetes client libraries to v0.35.0 by @james00012 in #1653
Full Changelog: v0.54.0...v0.55.0
v0.54.0
What's Changed
- Fix TerragruntArgs and TerraformArgs being ignored by @james00012 in #1617
- Simplify terragrunt function names by @james00012 in #1621
- Refactor: Extract formatting utilities to internal/lib by @james00012 in #1620
- Bump golang.org/x/crypto from 0.41.0 to 0.45.0 by @dependabot[bot] in #1625
- Add missing terragrunt commands: ValidateAll, RunAll, FormatAll, OutputListAll by @james00012 in #1622
- Upgrade terragrunt module tests to v0.93.10 by @james00012 in #1627
Full Changelog: v0.53.0...v0.54.0
v0.53.0
What's Changed
- Add independent Go modules for terragrunt and dependencies by @james00012 in #1608
- Bump github.com/ulikunitz/xz from 0.5.10 to 0.5.14 in /modules/terraform by @dependabot[bot] in #1611
- Revert PR #1608: Revert modularization changes by @james00012 in #1614
- Fix typo in docs for
InitAndValidateInputsE()by @particleflux in #1616
Full Changelog: v0.52.0...v0.53.0
v0.52.0
What's Changed
- feat: Add SSH certificate authentication support for Terratest by @james00012 in #1594
- Update golang.org/x/tools to v0.36.0 for Go 1.25+ compatibility by @james00012 in #1593
- fix: prevent segfault in helm.UnmarshalK8SYaml with empty YAML documents by @james00012 in #1597
- Add ExecPod functions to execute commands in Kubernetes pods by @james00012 in #1599
- Add terragrunt run-all helpers and refactor helm module by @james00012 in #1601
- docs: add helm as an entry to package table by @Sacquer in #1604
- Ensuring that multiple dummy servers can use the same handlers by @Malhavok in #1603
- Fix order of ExtraArgs for Output command with non-empty key (fixes #1606) by @dee-kryvenko in #1607
New Contributors
Full Changelog: v0.51.0...v0.52.0
v0.51.0
What's Changed
- Support for
terragrunt stack generateby @james00012 in #1562 - Implement terragrunt stack run support by @james00012 in #1563
- Fixing failing tests and refactoring terragrunt modules for consistency by @james00012 in #1566
- chore(k8s): replace http-echo image and update Deployment for compatibility by @james00012 in #1567
- Refactor terragrunt module and add dedicated test pipeline by @james00012 in #1569
- Implement support for terragrunt stack output command by @james00012 in #1570
- Bump golang.org/x/oauth2 from 0.24.0 to 0.27.0 by @dependabot[bot] in #1572
- Bump nokogiri from 1.18.8 to 1.18.9 in /docs by @dependabot[bot] in #1574
- Fix broken terragrunt stack output functionality and tests by @james00012 in #1578
- feat: Add stdin support for terragrunt run command by @james00012 in #1580
- feat(terragrunt): Separate terragrunt and terraform arguments by @james00012 in #1581
- feat: Add terragrunt stack clean command and improve module by @james00012 in #1582
- feat: Add support for custom OPA command line arguments by @james00012 in #1576
- Bump github.com/ulikunitz/xz from 0.5.10 to 0.5.14 by @dependabot[bot] in #1585
- Upgrade Kubernetes client libraries by @james00012 in #1590
- Bump rexml from 3.3.9 to 3.4.2 in /docs by @dependabot[bot] in #1592
Full Changelog: v0.50.0...v0.51.0
v0.50.0
What's Changed
- add cronjob by @james03160927 in #1553
- fix ResourceGroupExists by @james03160927 in #1552
- allow GOOGLE_OAUTH_ACCESS_TOKEN by @james03160927 in #1555
- Adjust warning patterns by @james03160927 in #1550
- chore: Offboarding Levko by @yhakbar in #1558
- fix: Respect port selection by name by services in ForwardPortE by @s-diez in #1557
- fix: Helm example deployment test by @james03160927 in #1559
- Updated the subnet struct and corresponding function to fetch the subnet CIDR range by @Atchuthmullapudi in #1561
- Implement support for
terragrunt stack initby @james03160927 in #1560
New Contributors
- @Atchuthmullapudi made their first contribution in #1561
Full Changelog: v0.49.0...v0.50.0
v0.49.0
Modules affected
terraformhelmazureawsk8sloggerpacker
What's Changed
- feat: Creating a test for TF_LOG by @james03160927 in #1512
- feat: handle multiple yaml doc by @james03160927 in #1514
- feat: use the new sdk for azure resource group by @james03160927 in #1511
- feat: Stop DynamoDB methods with E Failing Immediately by @robmorgan in #1507
- feat: Get and Put for ECR repo policies by @felixfriedrich in #1519
- feat: include --version in helm upgrade by @jijiechen in #1532
- feat: add mixed vars support by @james03160927 in #1517
- feat: Add helper function for parsing packer-manifest.json by @james03160927 in #1546
- feat: Support a s3:putobject by @james03160927 in #1525
- feat: capture terraform stdout stderr and exitcode separately by @james03160927 in #1530
- feat: add UnmarshalK8SYamlsE by @james03160927 in #1533
- feat: add support for extra arguments by @james03160927 in #1523
- feat: allow --backend-config to use file path by setting the value to nil by @james03160927 in #1539
- feat: Support for ListNamespaces function by @james03160927 in #1543
- feat: K8S fix forward to service port by @james03160927 in #1547
- fix: add test for duplicate key by @james03160927 in #1518
- fix: support custom TG logger settings by @bt-macole in #1509
- docs: Improve README for terraform database example module by @james03160927 in #1515
- chore: adjust fixture to fix broken tests by @james03160927 in #1548
- chore: add RenderTemplateAndGetStdOutErrE & RunHelmCommandAndGetStdOutErrE by @james03160927 in #1526
- chore: Update parseListOfMaps to handle non-map data structures by @james03160927 in #1529
- chore: add test for literal block by @james03160927 in #1535
- chore: Update CODEOWNERS by @james03160927 in #1554
- chore: Adding Terragrunt team to CODEOWNERS by @yhakbar in #1513
- chore(deps): Bump nokogiri from 1.16.5 to 1.18.3 in /docs by @dependabot in #1516
- chore(deps): Bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 by @dependabot in #1527
- chore(deps): Bump golang.org/x/crypto from 0.32.0 to 0.35.0 by @dependabot in #1541
- chore(deps): Bump golang.org/x/net from 0.34.0 to 0.38.0 by @dependabot in #1542
- chore(deps): Bump nokogiri from 1.18.3 to 1.18.8 in /docs by @dependabot in #1545
New Contributors
- @felixfriedrich made their first contribution in #1519
- @jijiechen made their first contribution in #1532
Full Changelog: v0.48.2...v0.49.0
v0.48.2
Modules affected
shellawsgcpterraformk8sazuredatabase
What's Changed
- feat: Add
RunCommandAndGetStdOutErrby @james03160927 - feat: Implement functionality for
S3BucketServerSideEncryptionby @james03160927 - feat: Add an import SSH key for a specific project by @james03160927
- feat: Do not merge
stderrintostdoutby @g7r - feat: Add bucket ownership control by @james03160927
- feat: Add
request-timeoutoptions forkubectlby @james03160927 - feat: Support pagination for
GetAllParametersOfRdsInstanceby @james03160927 - feat: Add support for Azure container apps by @tjololo
- chore(deps): Bump
golang.org/x/cryptofrom 0.29.0 to 0.31.0 by @dependabot - feat: Add support for databases by @james03160927
- chore(deps): Bump
golang.org/x/netfrom 0.31.0 to 0.33.0 by @dependabot - feat: Add a new check for private DNS zones by @johannes-engler-mw
- chore: Update copyright year in README by @ofek
- fix: Use
HasSuffixto check for suffixes by @amangale
New Contributors
- @g7r made their first contribution in #1495
- @tjololo made their first contribution in #1493
- @johannes-engler-mw made their first contribution in #1455
- @ofek made their first contribution in #1506
- @amangale made their first contribution in #1505
Full Changelog: v0.48.1...v0.48.2
v0.48.1
Modules affected
helmazureawsk8s
What's Changed
- feat: Adding release instructions in PR by @yhakbar in #1488
- fix: Fixing the TestRemoteChartRender Unit Test failure by pecifing remote chart version by @james03160927 in #1486
- fix: Fix terraform-azure-aks-example unit test failure. by @james03160927 in #1489
- chore: add function to retrieve latest version of a policy document by @james03160927 in #1490
- fix: honor options.RestConfig in tunnel.ForwardPortE by @jduepmeier in #1464
New Contributors
- @jduepmeier made their first contribution in #1464
Full Changelog: v0.48.0...v0.48.1