Skip to content

Feat/pre deploy job#191

Open
davidechiarelli wants to merge 7 commits intomainfrom
feat/pre-deploy-job
Open

Feat/pre deploy job#191
davidechiarelli wants to merge 7 commits intomainfrom
feat/pre-deploy-job

Conversation

@davidechiarelli
Copy link

What this PR is for?

This PR is intended to enhance the deploy command adding the execution of Jobs marked as pre-deploy jobs before the main deployment pipeline.
This feature allows you to run initialization or validation tasks (such as database migrations, secret provisioning,
or health checks) prior to deploying your main workloads.

- Introduced a new pre-deploy filter to handle jobs annotated for pre-deploy execution.
- Added multiple test cases to validate the filtering logic for pre-deploy jobs.
- Created example ConfigMap and Deployment resources for testing purposes.
- Implemented various pre-deploy job configurations, including optional and failing jobs.
- Enhanced the test suite with comprehensive tests for pre-deploy job extraction and filtering.
@davidechiarelli davidechiarelli requested a review from a team as a code owner March 3, 2026 10:21
…ces based on annotations

- Deleted the predeployfilter.go and predeployfilter_test.go files, which contained logic for filtering pre-deploy jobs based on annotations.
- Removed associated test data files for pre-deploy jobs, including optional and custom annotation jobs.
- Added comprehensive tests for filtering and executing pre-deploy jobs in predeployjob_test.go, ensuring correct behavior for various scenarios.
…tered job, to make this feature more extendible
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.

1 participant