Skip to content

Conversation

@steffsas
Copy link

Description

This PR introduces the functionality to create Kubernetes Jobs from an already applied CronJob. This function is similar to the command kubectl create job xyz --from=cronjob/xyz (see https://kubernetes.io/docs/reference/kubectl/generated/kubectl_create/kubectl_create_job/#synopsis). As the documentation of Kubernetes already implies, this functionality is mainly used for testing CronJobs, so it would perfectly align with terratest's mission.

TODOs

Read the Gruntwork contribution guidelines.

  • Update the docs.
  • Run the relevant tests successfully, including pre-commit checks.
  • Ensure any 3rd party code adheres with our license policy or delete this line if its not applicable.
  • Include release notes. If this PR is backward incompatible, include a migration guide.
  • Make a plan for release of the functionality in this PR. If it delivers value to an end user, you are responsible for ensuring it is released promptly, and correctly. If you are not a maintainer, you are responsible for finding a maintainer to do this for you.

Release Notes (draft)

Added functionality to create Kubernetes Jobs from an existing CronJob.

Migration Guide

There is no migration guide needed.

@steffsas steffsas force-pushed the feat/cronjob-to-job-support branch from 7c5f4dd to 57b58c6 Compare January 29, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants