refactor: move host-crontab generation into cron plugin

Host-crontab generation for `app.json` cron tasks now lives in the `cron` plugin, gated by a new `scheduler-uses-host-cron` trigger that the `docker-local` scheduler answers true while self-managed schedulers such as `k3s` answer false. This lets any host-cron scheduler participate in normal `app.json` cron without coupling to `scheduler-docker-local` or duplicating the crontab writer, while the `k3s` scheduler continues to manage its own in-cluster cron jobs.

Closes #8862.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-07-22 08:35:11 -04:00
1 parent e3687a62ed
commit c6b4ea75c1
24 files changed
+441 -259

No files matched your search

+11
View File
@@ -637,6 +637,17 @@ func TriggerSchedulerIsDeployed(scheduler string, appName string) error {
return fmt.Errorf("App %s is not deployed", appName)
}
// TriggerSchedulerUsesHostCron reports that the k3s scheduler does not use the
// host crontab; it manages its own in-cluster CronJobs
func TriggerSchedulerUsesHostCron(scheduler string) error {
if scheduler != "k3s" {
return nil
}
fmt.Println("false")
return nil
}
// TriggerSchedulerEnter enters a container for a given application
func TriggerSchedulerEnter(scheduler string, appName string, processType string, podName string, args []string) error {
if scheduler != "k3s" {