argoproj / argoproj/argo-workflows

CRON_WORKFLOWS_DISABLED env flag for blue/green clusters

Open
#16,614 1 comment 0 reactions 0 assignees View on GitHub
solution/workaround
Dominant language
Go
Stars
17k
Forks
3.7k
Avg merge
1d 20h
Merged PRs (30d)
138

Description

# Summary

I am planning a blue-green k8s setup, where I would have 2 k8s clusters at same time, existing workflows on cluster1 should be allowed to finish, and new workflows should only start on cluster2. Trouble I see is both would be starting same cronworkflows. Unless there could be a single controller level flag CRON_WORKFLOWS_DISABLED to allow cluster1 crons to be disabled while cluster2 crons are enabled.

## Use Cases

blue/green k8s clusters. otherwise I need to have 2 repos of cron manifests and suspend many cron yamls on one repo which is a lot more complex. thinking further also want to disable sensors starting new workflows on cluster1 so maybe need a broader NEW_WORKFLOWS_DISABLED flag too

---

**Message from the maintainers**:

Love this feature request? Give it a 👍. We prioritise the proposals with the most 👍.

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Start by locating the controller-level handling for CronWorkflows and sensors, then clarify whether CRON_WORKFLOWS_DISABLED or the broader NEW_WORKFLOWS_DISABLED is required; done means preventing new starts on one cluster while allowing existing workflows to finish.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
backend, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.