Closed matthijsvanderloos closed 1 year ago
Same bug is at datahub-system-update-job CronJob
@MioOgbeni indeed!
I see that all the duplicates are coming from this template {{- include "datahub.upgrade.env" . | nindent nn}}
from here in all the Jobs
and CronJobs
wherever it is included
xxx-nocode-migration-job
xxx-datahub-cleanup-job-template
xxx-datahub-restore-indices-job-template
xxx-datahub-system-update-job
There are other non-EBEAN* duplicates as well to be removed as reported in this comment Is there any issue to address that?
Describe the bug The following
EBEAN_*
environment variables are duplicated on the datahub-restore-indices-job-templateCronJob
:EBEAN_DATASOURCE_USERNAME
EBEAN_DATASOURCE_PASSWORD
EBEAN_DATASOURCE_HOST
EBEAN_DATASOURCE_URL
EBEAN_DATASOURCE_DRIVER
To Reproduce Run
helm template
on the Datahub chart with default values. The output for theCronJob
is (note duplicated env vars):Expected behavior
EBEAN_*
environment variables should only appear once.Additional context Relevant code: https://github.com/acryldata/datahub-helm/blob/d68bf2c87c263e0d97446432b812df5cc561d21e/charts/datahub/templates/datahub-upgrade/datahub-restore-indices-job-template.yml#L75-L93