Open osmman opened 5 years ago
I used earlier this approach. for sending emails but camel-mail component checks the credential username and password
during the pod deployment health check if it's not there then deployment was failing. So I made it optional by using custom email component.
I don't really understand the reason why you don't have these pieces of information on startup. Use Kubernetes Secrets or ConfigMap to inject custom configuration like email credentials.
Please, use camel-mail component for sending emails because creating your own implementation is totally unnecessary.
https://camel.apache.org/components/latest/mail-component.html