-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Provide a way to set default Workflow options that will apply to all workflows #1923
Comments
I would be happy to make a contribution and work on this. I have looked over the code base a bit but don't understand how the workflow-controller-configmap is parsed/ handled by the controller. Could some one point me in the right direction, where I can understand the logic for this? Thanks for the help! |
We also need this for PodGC. |
I have read more of the code base, and as I understand the workflow-controller-configmap is parsed by the config_controller. As I understand the workflowControllerConfig is parsed here: I see the following updates needed:
Alternatives on how to handle the configmap
|
@simster7 do you have some feedback on this? :) |
We would have to go with option 1. However, we would also need to come up with a spec of how to declare default options on the config map. Do you have any ideas/suggestions for this? |
Cool, thanks for the feedback @simster7.
I suggest we add the following: # TTLStrategy defines the default time to live for workflows depending on how they complete
TTLStrategyDefault:
secondsAfterCompleted: -1 # Default time to live after workflow is completed, replaces ttlSecondsAfterFinished
secondsAfterSuccess: -1 # Default time to live after workflow is successful
secondsAfterFailed: -1 # Default time to live after workflow fails
I am not sure if we should add secondsAfterCompleted since it will be deprecated. What are your thoughts? |
I it is fine that I start to work on it, could you please assign me to the issue? |
@NikeNano Sorry, we've been rather busy with the upcoming 2.5 RC launch. I feel like we will need to have an internal discussion about this feature, which is not likely to happen until we ship the 2.5 RC launch. However, feel free to make a proof of concept for this however you'd think it's best... if it's good it might drive our discussion in its favor. Just know that if you get started on this we might ask you to change it in the future :) I will assign you the issue. |
@simster7 Why do we go with option 1 here? Agree with the @NikeNano 's comment below: |
Fixed in #2331 |
Summary
Provide a way to set default Workflow options that will apply to all workflows.
Motivation
Users have asked for a way to set particular Workflow options once in the
worfklow-controller-cm
that will apply to all new Workflows as a convenience feature.See: #1827 (comment) #1790
Proposal
We should add a way to allow users to set an arbitrary number of default Workflow options.
The text was updated successfully, but these errors were encountered: