<#C01AHCD885S|ask-ai> I'm migrating from helm char...
# ask-ai
j
#ask-ai I'm migrating from helm chart version "0.492.0" to "0.654.0". When rendering the DATABASE_USER key, it seems the new version is breaking the key in a new line. Do you know something about it?
Copy code
- name: DATABASE_USER
          valueFrom:
            secretKeyRef:
              name: airbyte-config-secrets
              key: 
                database-user
k
Yes, this is a known issue that has been reported by multiple users when upgrading Airbyte Helm charts. Specifically, in certain versions (including around 1.0.0 and 1.1.0), the generated YAML for secrets such as
DATABASE_USER
,
DATABASE_PASSWORD
,
AWS_ACCESS_KEY_ID
, and
AWS_SECRET_ACCESS_KEY
can contain extra newlines, causing the
key:
field to be rendered incorrectly on a new line. This results in invalid YAML and deployment failures, as you observed:
Copy code
yaml - name: DATABASE_USER   valueFrom:     secretKeyRef:       name: airbyte-config-secrets       key:          database-user
This issue is documented in GitHub issues [#46329](https://github.com/airbytehq/airbyte/issues/46329) and [#47212](https://github.com/airbytehq/airbyte/issues/47212), where users reported YAML parse errors due to this formatting problem. The error typically looks like:
Copy code
YAML parse error on airbyte/charts/server/templates/deployment.yaml: error converting YAML to JSON: yaml: line XXX: could not find expected ':'
A workaround mentioned by users is to ensure you use the correct secret key names and, if possible, try changing
storageSecretName
and
secretsManagerSecretName
to
secretName
in your values file, as this resolved the issue for some users. However, the root cause is a bug in the Helm chart template that mishandles indentation or newlines for these keys. If you are still experiencing this issue in your target version (0.654.0), you may need to manually patch the generated YAML or adjust your values file as described above. If the problem persists, consider checking for updates or open issues in the Airbyte Helm chart repository for a permanent fix. References: - [helm] Storage AWS Credentials with custom secret name does not work - [helm] Extra newlines in generated YAML for some secrets