hi folks, i’m trying to deploy airbyte using the h...
# troubleshooting
t
hi folks, i’m trying to deploy airbyte using the helm chart. i keep getting the following error:
Copy code
Error: template: airbyte/charts/airbyte/templates/worker/deployment.yaml:60:23: executing "airbyte/charts/airbyte/templates/worker/deployment.yaml" at <include "airbyte.database.secret.name" .>: error calling include: template: airbyte/charts/airbyte/templates/_helpers.tpl:78:50: executing "airbyte.database.secret.name" at <.Subcharts.postgresql>: nil pointer evaluating interface {}.postgresql
(more details in thread)
my Chart.yaml looks like this:
Copy code
apiVersion: v2
name: airbyte
type: application
version: 0.1.0
appVersion: "0.35.66-alpha"
dependencies:
  - name: airbyte
    version: 0.3.1
    repository: <file://subcharts/airbyte>
and my values.yaml is:
Copy code
airbyte:
  nameOverride: airbyte
  webapp:
    ingress:
      annotations:
        <http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>: internal-nginx
      hosts:
        - <http://airbyte.staging.example.com|airbyte.staging.example.com>
  postgresql:
    enabled: true
    existingSecret: airbyte-db-secret
i can see that the offending value (
airbyte.database.secret.name
) is defined in the airbyte chart as:
Copy code
{{- define "airbyte.database.secret.name" -}}
{{- if .Values.postgresql.enabled -}}
    {{ template "postgresql.secretName" .Subcharts.postgresql }}
{{- else }}
    {{- if .Values.externalDatabase.existingSecret -}}
        {{- printf "%s" .Values.externalDatabase.existingSecret -}}
    {{- else -}}
        {{ printf "%s-%s" (include "common.names.fullname" .) "secrets" }}
    {{- end -}}
{{- end -}}
{{- end -}}
has anyone else run into this, or something similar?