-
Notifications
You must be signed in to change notification settings - Fork 9.5k
[bitnami/postgresql] Global postgres fullname override, needed when the fullname needs to be shared across subcharts. #33198
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
[bitnami/postgresql] Global postgres fullname override, needed when the fullname needs to be shared across subcharts. #33198
Conversation
Signed-off-by: Koren Peretz <62677694+KorenP1@users.noreply.github.com> Signed-off-by: Koren Peretz <Koren.Peretz@4castai.com>
Signed-off-by: Koren Peretz <62677694+KorenP1@users.noreply.github.com> Signed-off-by: Koren Peretz <Koren.Peretz@4castai.com>
Signed-off-by: Koren Peretz <62677694+KorenP1@users.noreply.github.com> Signed-off-by: Koren Peretz <Koren.Peretz@4castai.com>
Signed-off-by: Koren Peretz <62677694+KorenP1@users.noreply.github.com> Signed-off-by: Koren Peretz <Koren.Peretz@4castai.com>
Signed-off-by: Koren Peretz <62677694+KorenP1@users.noreply.github.com> Signed-off-by: Koren Peretz <Koren.Peretz@4castai.com>
Signed-off-by: Koren Peretz <62677694+KorenP1@users.noreply.github.com> Signed-off-by: Koren Peretz <Koren.Peretz@4castai.com>
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> Signed-off-by: Koren Peretz <Koren.Peretz@4castai.com>
Signed-off-by: Koren Peretz <Koren.Peretz@4castai.com>
dea8e00
to
3fe7e07
Compare
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Hi @KorenP1 This isn't required, we solve it in other charts by creating a specific helper to get the PostgreSQL fullname. For instance, check the helper below: |
Hi @juan131 |
Hi @KorenP1 I understand in that case you can configure Airflow (and other apps in out catalog) using the You may need to use the fully qualified domain name of the PostgreSQL service for the
In case this is not the solution for you, would you mind providing us with more details? |
Signed-off-by: Koren Peretz <62677694+KorenP1@users.noreply.github.com>
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Hi @gongomgra Again, i cant use the postgresql as subchart of airflow because in some cases i will want to deploy only postgres. |
@juan131 @gongomgra |
Thanks for explaining your use case @KorenP1 The issue here is that one of the sub-charts your chart deploys (Airflow in the example) uses another sub-chart as db backend (PostgreSQL in the example) hence you need to know the svc name where to connect (which is affected by the fullname override). Please correct me if I'm wrong but this can be achieved without using global parameters: (...)
postgresql:
fullnameOverride: pg
airflow:
postgresql:
enabled: false
externalDatabase:
host: pg |
@juan131
|
All right! IMO your is quiet a specific use case, but, given the change doesn't introduce any technical concern I'm okay with accepting it. Thanks for the contribution. |
…he fullname needs to be shared across subcharts. (bitnami#33198)
Description of the change
Added value
global.postgresql.fullnameOverride
.Benefits
Global PostgreSQL fullname override, needed when the fullname needs to be shared across subcharts like the other global PostgreSQL values.
Possible drawbacks
None
Applicable issues
None
Additional information
The function changed to a single ternary operation for compact and read reasons.
Checklist
Chart.yaml
according to semver. This is not necessary when the changes only affect README.md files.README.md
using readme-generator-for-helm