You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "yelijing18 (via GitHub)" <gi...@apache.org> on 2024/08/01 10:46:04 UTC
[I] [Bug] [Helm] env `DEFAULT_TENANT_ENABLED` is not taking effect. [dolphinscheduler]
yelijing18 opened a new issue, #16410:
URL: https://github.com/apache/dolphinscheduler/issues/16410
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The env variable for worker "DEFAULT_TENANT_ENABLED" is not taking effect.
Worker 的 env 配置 "DEFAULT_TENANT_ENABLED" 不生效。
https://github.com/apache/dolphinscheduler/blob/aabda868daabe938e4894f1886d56def9401651c/deploy/kubernetes/dolphinscheduler/values.yaml#L691
https://github.com/apache/dolphinscheduler/blob/aabda868daabe938e4894f1886d56def9401651c/deploy/kubernetes/dolphinscheduler/README.md?plain=1#L310
### What you expected to happen
The Bootstrap User is used as the execution user.
启动用户会被用作执行用户。
### How to reproduce
When deploying via Helm, set worker.env.DEFAULT_TENANT_ENABLED to true, and use 'default' as the tenant to trigger the workflow, then observe whether the Bootstrap User is used as the execution user.
在通过 Helm 部署时设置 worker.env.DEFAULT_TENANT_ENABLED 为 true,并使用 default 作为租户触发工作流,观察是否使用 Bootstrap User 作为执行用户。
### Anything else
The purpose of this environment variable configuration is to override the Spring configuration item at https://github.com/apache/dolphinscheduler/blob/aabda868daabe938e4894f1886d56def9401651c/dolphinscheduler-worker/src/main/resources/application.yaml#L70.
该环境变量配置的目的是覆盖 /dolphinscheduler-worker/src/main/resources/application.yaml#L70 的 Spring 配置项。
According to the Spring Externalized Configuration documentation, the environment variable should be named WORKER_TENANT_CONFIG_DEFAULT_TENANT_ENABLED rather than the current DEFAULT_TENANT_ENABLED.
根据 Spring Externalized Configuration 文档的说明,该环境变量应该命名为 `WORKER_TENANT_CONFIG_DEFAULT_TENANT_ENABLED` 而非目前的 `DEFAULT_TENANT_ENABLED`。
ref:
https://docs.spring.io/spring-boot/reference/features/external-config.html#features.external-config.typesafe-configuration-properties.relaxed-binding.environment-variables
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Helm] env `DEFAULT_TENANT_ENABLED` is not taking effect. [dolphinscheduler]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #16410:
URL: https://github.com/apache/dolphinscheduler/issues/16410#issuecomment-2262729979
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The env variable for worker "DEFAULT_TENANT_ENABLED" is not taking effect.
Worker 的 env 配置 "DEFAULT_TENANT_ENABLED" 不生效。
https://github.com/apache/dolphinscheduler/blob/aabda868daabe938e4894f1886d56def9401651c/deploy/kubernetes/dolphinscheduler/values.yaml#L691
https://github.com/apache/dolphinscheduler/blob/aabda868daabe938e4894f1886d56def9401651c/deploy/kubernetes/dolphinscheduler/README.md?plain=1#L310
### What you expected to happen
The Bootstrap User is used as the execution user.
启动用户会被用作执行用户。
### How to reproduce
When deploying via Helm, set worker.env.DEFAULT_TENANT_ENABLED to true, and use 'default' as the tenant to trigger the workflow, then observe whether the Bootstrap User is used as the execution user.
在通过 Helm 部署时设置 worker.env.DEFAULT_TENANT_ENABLED 为 true,并使用 default 作为租户触发工作流,观察是否使用 Bootstrap User 作为执行用户。
### Anything else
The purpose of this environment variable configuration is to override the Spring configuration item at https://github.com/apache/dolphinscheduler/blob/aabda868daabe938e4894f1886d56def9401651c/dolphinscheduler-worker/src/main/resources/application.yaml#L70.
该环境变量配置的目的是覆盖 /dolphinscheduler-worker/src/main/resources/application.yaml#L70 的 Spring 配置项。
According to the Spring Externalized Configuration documentation, the environment variable should be named WORKER_TENANT_CONFIG_DEFAULT_TENANT_ENABLED rather than the current DEFAULT_TENANT_ENABLED.
根据 Spring Externalized Configuration 文档的说明,该环境变量应该命名为 `WORKER_TENANT_CONFIG_DEFAULT_TENANT_ENABLED` 而非目前的 `DEFAULT_TENANT_ENABLED`。
ref:
https://docs.spring.io/spring-boot/reference/features/external-config.html#features.external-config.typesafe-configuration-properties.relaxed-binding.environment-variables
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Helm] env `DEFAULT_TENANT_ENABLED` is not taking effect. [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS closed issue #16410: [Bug] [Helm] env `DEFAULT_TENANT_ENABLED` is not taking effect.
URL: https://github.com/apache/dolphinscheduler/issues/16410
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org