Skip to content
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

Helm chart: externalDatabase.password has no effect as it still retrieves from the secret #9979

Closed
jsrcodes opened this issue Feb 1, 2022 · 1 comment

Comments

@jsrcodes
Copy link
Contributor

jsrcodes commented Feb 1, 2022

Environment

  • Airbyte version: example is 0.22.0-alpha
  • OS Version / Instance: AWS EKS
  • Deployment: Kubernetes deploy env
  • Severity: Low
  • Step where error happened: Deploy

Current Behavior

externalDatabase.password has no effect as it still retrieves from the secret

Expected Behavior

When externalDatabase.password is set, the template should use it instead of retrieving from a secret.

Root cause:

https://github.com/airbytehq/airbyte/blob/master/charts/airbyte/templates/bootloader/pod.yaml#L33
This if-else condition needs to be fixed, as it uses password from the secrets for the external DB.

        {{- if .Values.postgresql.enabled }}
        - name: DATABASE_PASSWORD
          valueFrom:
            configMapKeyRef:
              name: airbyte-env
              key: DATABASE_PASSWORD
        {{- else }}
        - name: DATABASE_PASSWORD
          valueFrom:
            secretKeyRef:
              name: {{ include "airbyte.postgresql.secretName" . }}
              key: {{ include "airbyte.database.existingsecret.key" . }}
        {{- end }}

Steps to Reproduce

  1. Use the helm chart as follows for externalDatabase section
        externalDatabase:
          host: HOST
          user: USER
          password: {{ requiredEnv "STAGING_DB_PWD" | quote }}
          existingSecret: false
          database: db-airbyte
          port: 5432
  1. deploy on K8s
@evantahler
Copy link
Contributor

This should have been fixed by #14794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants