JobDeployment controller
Working on a controller to manage Job objects
flowchart TD; Deployment -- "manages (through ReplicaSets)" --> Pod; JobDeployment -- manages --> Job;
Problem / Why
- If you change a
batch/v1Job, tools like Helm fail to apply due to immutable fields. - I kinda wish there was a parent object like
Deploymentto recreateJobobjects on changes (similar to howDeploymentsrecreatePods) - Of course, the better solution is often to not use
Jobobjects at all- But sometimes with legacy code in your org this might not be an option, so it’d still be nice to have a better way to deploy them
kubebuilder rocks 😎
- Scaffolds the basics so you can focus on your reconciliation logic