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
"webhook.enabled" means "webhook disabled" #39
Comments
hmm, I see, what would you suggest solving the situation, and save many people a lot of debug time? |
For example: rename .Values.scaling.webhook.enabed to .Values.scaling.webhook.disabled in values.yaml and in _helpers.tpl By the way, test webhooks are not affected by this setting. Only production webhooks are. So a more descriptive name might be: .Values.scaling.productionWebhook.disabled. But that's more a matter of taste. |
This has a few flaws. Every service has the notation service.enabled. This is used here and is practice in other charts. It is also advised to do the same in general programming It is also not backwards compatible Any other ideas? |
This is only 50% a view of this topic. Because when you set .Values.scaling.webhook.enabled you disable Webhooks from Main process. So you are true, this disables the processing on this instance. This is completely optional, so you don't need to activate this scaling feature and process the webhooks on main instance. |
Alright, I see. Then I think a simple comment in values.yaml would be sufficient and shouldn't do any harm :) Edit: Sorry, I didn't intend to close the issue. |
thanks for the positive discussion and resolution. I updated the values file referencing this discussion and @swarnat explanation and impact. |
Hello,
in line 264 values.yaml: https://github.com/8gears/n8n-helm-chart/blob/master/values.yaml
.Values.scaling.webhook.enabed is set to false:
However, in line 95-97 _helpers.tpl: https://github.com/8gears/n8n-helm-chart/blob/master/templates/_helpers.tpl
the environment variable N8N_DISABLE_PRODUCTION_MAIN_PROCESS is set to true, if .Values.scaling.webhook.enabled is set to true:
Description of N8N_DISABLE_PRODUCTION_MAIN_PROCESS:
so seemlingly "enabling" webhooks actually disables them for production use. Debugging this caused us hours of headache.
The text was updated successfully, but these errors were encountered: