-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[Bug] [deploy on k8s] SPRING_DATASOURCE_DRIVER_CLASS_NAME need add in templates/_helpers.tpl #10103
Comments
add in values.yaml; add in templates/_helpers.tpl ;
|
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
|
Hi @zwZjut, I don't think we need to Here is the reason. You can see this define the And when you build the Docker image, will run the The And Then you can see the |
I have checked the yaml about Api || Matset || Worker || Alert-Server || tools, and they are two bugs.
When you change the data source to
|
And I have another question about running the Docker image.
Do we need to config The reason please look commented above WDYT @SbloodyS @caishunfeng |
Yes. It's needed. |
|
@liqingwang please add a profile dolphinscheduler/dolphinscheduler-tools/src/main/resources/application.yaml Lines 39 to 46 in e2fac21
---
spring:
config:
activate:
on-profile: postgresql
datasource:
driver-class-name: org.postgresql.Driver |
I agree. If we don't need to specify the So this code doesn't need? @kezhenxu94 |
Yes, we'd better keep the configurations minimal whenever they can be specified automatically, so users won't be overwhelming by so many configurations. |
And we can't delete |
Is my understanding of the driver set automatically correct? #10103 (comment) |
This is right |
Hi @liqingwang , you don't need to delete |
Yes, but only one difference, we don't define SPRING_DATASOURCE_DRIVER_CLASS_NAME in Kubernetes config file, but I define the database. And |
right |
I will follow the previous design pattern to change the code. So here is another question. Pls see this #10128 (comment) , the active profile is to choose the database config, when we define the active profiles, and tools module can't change driver automatically. This is a bug. @SbloodyS |
Yes. |
As I said here #10103 (comment), can you update this in #10128 and see whether that satisfy your requirement? |
I'll have a try, thx @kezhenxu94 |
I am not sure If I use |
It will be overridden |
I used |
Search before asking
What happened
[Bug] [deploy on k8s] SPRING_DATASOURCE_DRIVER_CLASS_NAME need add in templates/_helpers.tpl
What you expected to happen
[Bug] [deploy on k8s] SPRING_DATASOURCE_DRIVER_CLASS_NAME need add in templates/_helpers.tpl
How to reproduce
[Bug] [deploy on k8s] SPRING_DATASOURCE_DRIVER_CLASS_NAME need add in templates/_helpers.tpl
Anything else
[Bug] [deploy on k8s] SPRING_DATASOURCE_DRIVER_CLASS_NAME need add in templates/_helpers.tpl
Version
dev
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: