✨ 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