-
Notifications
You must be signed in to change notification settings - Fork 75
Add .Values.config.postgresPoolMaxSize #247
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
Add .Values.config.postgresPoolMaxSize #247
Conversation
Remove hardcoded value for DBCONNECTOR_POSTGRES_POOL_MAX_SIZE with value: "100".
Remove hardcoded value from deployment_workflows.yaml for DBCONNECTOR_POSTGRES_POOL_MAX_SIZE with value: "100".
Update chart version
rather than requiring users to supply a value, we probably want to leave 100 as a default while allowing users to override it, like we do for |
That is a good suggestion. I will add a condition where if it is set in the values.yml, then it won't get set here. |
Add a condition on DBCONNECTOR_POSTGRES_POOL_MAX_SIZE being set
Add condition for when DBCONNECTOR_POSTGRES_POOL_MAX_SIZE is set
corrected for linting error around using haskey with environmentVariables
Fix condition using has key with values.environmentVariables
Add catch for if .Values.environmentVariables is nil
Add catch for Values.environmentVariables being nil
@golfdish, I keep getting this error from the tests about "nil pointer evaluating interface {}.environmentVariables". Maybe there is a type issue that I am running into, or I need to approach this differently to check if the value is being set in ".Values.environmentVariables" or ".Values.env" |
@taylormusolf I actually found a better example of how it could be done elsewhere: retool-helm/charts/retool/templates/deployment_dbconnector.yaml Lines 85 to 86 in 415fb24
this takes a config value from the |
@golfdish The problem I am running into is that this is used in all of the templates where it blanket applies the env and environmentVariables. Technically, the same double variable issue would happen in dbconnector as well if they were to both set the env variable and set the config variable. I am trying to apply that fixed variable only if the user doesn't use it in env or environmentVariables values. I mean I could create a new special variable in values.yml that only applies the variable to the retool-backend and have the customer only set that going forward and then leave everything else as it originally was. |
create postgresPoolMaxSize variable to be used in deployment_backend.yaml
add DBCONNECTOR_POSTGRES_POOL_MAX_SIZE variable to deployment_backend
@golfdish , I revised my approach and went off of your idea to just add a new variable to values.yaml. I left everything alone for workflows with the hardcoded values and instead created a new variable in the values.yaml config to be used similarly to the dbconnector config variable that is used for the standalone dbconnector setup, and that variable is being used in the deployment_backend template. |
ah, I missed the wrinkle of possibly double-applying the config and env values. I feel like maybe that could be avoided on the user's end? but I'll trust the testing you've done. ooc, does the current change achieve your goal of raising the dbconnector pool max size for workflows? |
@golfdish The issue was that they needed to apply it to the backend container, and they were trying to do that via setting it in the environmentVariables, but that led to the issue with it being double-applied in workflows since those variables get blanket added to all containers. |
Remove hardcoded value for DBCONNECTOR_POSTGRES_POOL_MAX_SIZE with value: "100" in both _workers.tpl and deployment_workflows.yaml. With this update users will need to set DBCONNECTOR_POSTGRES_POOL_MAX_SIZE in the values.yaml for it to get applied to workflows.