Repository navigation
feat(mecak8s): add scheduler.enabled chart value - #2427
Merged
Merged
Conversation
Render --no-scheduler when scheduler.enabled is false. The default stays true, so existing installs are unchanged. Document that disabling the scheduler also stops manual fires (FireNow returns scheduler_not_running), correcting the scheduled-tasks page that said they keep working. Co-Authored-By: Claude Opus 5.5 <[email protected]>
rdimitrov
force-pushed
the
rdimitrov/mecak8s-scheduler-flag
branch
from
October 22, 2026 12:22
34b3b04 to
58537d5
Compare
Merged
2 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
scheduler.enabledvalue to themecak8schart (stacklok/stacklok-enterprise-platform#4848). It defaults totrue, so existing installs render the same Deployment. Withscheduler.enabled: false, the chart passes--no-schedulerto the agent. Until now the only way to turn the scheduler off wasextraArgs.The values comment and docs also state what turning it off means: schedules can still be created, listed, inspected, paused, resumed, and deleted, but nothing fires them.
FireNowreturnsscheduler_not_running(FAILED_PRECONDITION).user-docs/features/sessions/scheduled-tasks.mdused to say manual fires keep working with--no-scheduler. They don't (scheduleManager.FireNowneeds the in-process scheduler), so that page is corrected too. The--no-schedulerhelp text incmd/mecak8sandcmd/mecatedmakes the same claim. Changing it would regenerate the server CLI reference, so it's left for a separate change.Not related to #2426. The two PRs can merge in either order.
Testing
TestMecak8sHelmChart_SchedulerEnabled: the default render has no--no-scheduler, andscheduler.enabled=falserenders it.TestMecak8sHelmChart_NewValuesAreSchemaValidatednow rejects a non-booleanscheduler.enabledand unknownscheduler.*keys.task deploy:helm-unittestpass (71 tests).golangci-lintreports 0 issues on the chart package.task docsis clean.mecatl-dev, 2 replicas): afterhelm upgrade --set scheduler.enabled=false, the new pods no longer logscheduler: enabled.CreateScheduleandListSchedulesstill work, andFireNowreturnsFailedPrecondition: scheduler is not running. Setting it back totruerestores leader election.API compatibility
extraArgs: [--no-scheduler]keeps working.🤖 Generated with Claude Code