nforgeio / neonKUBE

Public NeonKUBE Kubernetes distribution related projects
https://neonkube.io
Apache License 2.0
76 stars 13 forks source link

neon-cluster-operator: wrap-up issues #1901

Closed jefflill closed 2 months ago

jefflill commented 2 months ago

I've verified that cluster stabilization works and I've coded the neon-cluster-operator job but couldn't test that due to: https://github.com/nforgeio/neonKUBE/issues/1900

jefflill commented 2 months ago

The other thing that's a bit odd with the current design is that the job classes all reference CronJob as the base class to pick up the Name, Group, and Type properties as well as the AddToSchedulerAsync() and DeleteFromSchedulerAsync() methods. The current design has us create job instances that are never actually executed but instead are used for managing job schedules.

This seems like a bit of anti-pattern and in fact, I added TerminatedPodGcDelayMilliseconds and TerminatedPodGcThresholdMinutes properties to the TerminatedPodGcJob and set those on the global job, thinking that instance was going to be executed. After playing with Quartz a bit, I see that Quartz constructs a new job instance every time a job is executed, so TerminatedPodGcDelayMilliseconds/TerminatedPodGcThresholdMinutes will never be set the way I coded things.

jefflill commented 2 months ago

DONE