-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Proposal] Custom AppSet generator - Schedules generator #16215
Comments
I think it's a cool idea. What would be the syntax? You could probably do it today with a plugin. Pass the plugin some unique key (app name maybe) and a cron schedule, have the plugin pass back the unique key and a |
Won't that require having my plugin's code deployed somewhere? I believe that would fit better in the applicationset_controller code base. It can look something like that, we can adjust afterward:
|
Yep, it would need to be deployed separately. I'm not opposed to having it in the main code, but there is a maintenance cost tradeoff. Given the current 400 PR backlog, it might be prudent to start with a plugin. |
I will write it in Go so in the future I can add to this proposal. |
Perhaps this could be done with a scale-to-zero feature as proposed in #6430? If we could scale an |
@blakepettersson This issue is more general then the other one since in this one we're looking at not generating the "Application" at all to begin within which means no having the create any sub-k8s resources that the "Application" was supposed to generate. |
@Aym3nTN this could also/or be implemented on the |
Hmm, thinking a bit more about this it would probably be a better approach to extend There's overlap with #16063, where the issue is to protect an Then it'd be possible to have an |
Summary
I'm suggesting to create an AppSet generator to un-apply/delete an Application using Cron expressions.
Motivation
My motivation is about cost savings, in my case, I have multiple applications that each uses an Ingress that is responsible for creating an AWS ALB (using AWS ALB Controller plugin) and alb costs money; therefore I'd like to automate shutting down my dev/stg environment when not needed like weekends or after work hours.
What do you think about that? The idea is similar to KubeGreen but acts on Argo Application resource level rather than Deployments resources.
The text was updated successfully, but these errors were encountered: