srfrnk / jabos

Just Another Boring Ops System - Jabos attempts to be a fully automated K8s GitOps framework.
MIT License
3 stars 1 forks source link

Support post deployment test integration #42

Open srfrnk opened 2 years ago

srfrnk commented 2 years ago

Add support for following use case: Jabos Use Cases - Post deployment test integration + single commit flow

srfrnk commented 2 years ago

Things the post deployment step might need to do:

srfrnk commented 2 years ago
srfrnk commented 2 years ago

available options

srfrnk commented 2 years ago

After some research

It looks like there is no standard. Many solutions are available some more automated than others. All solutions require lots or scripting to integrate with other solutions and CI/CD frameworks.

Thus a solution here must include

1) Waiting for pre-condition 1) Triggering a custom workload (with any testing solution preferred) 1) Waiting for testing workload to complete 1) Determining outcome and configuring status accordingly

pre-condition, completion-condition and outcome-condition

1) Time since ??? 1) Readiness of ??? 1) Annotation check 1) Label check 1) Status check

All of these may be possible using jq or yq given a resource definition.

Custom workload

1) Container 1) Pods 1) Jobs/Deployments 1) More complex setups - e.g. services/roles etc...

While being under permissive is not desired - over complicating the setup may also be counter productive. Allowing a Pod definition might be a good comromise.