Closed valx closed 3 years ago
the problem was due to wrong quote char in my command. the error message was misleading
FWIW i am also getting this suddenly, I now see my own error but agreed that the error is misleading
@aprettyloner can you clarify the issue you were running into?
Also, if this issue is related to the job-upgrade-db.yaml
file, please note that this will be removed in 8.5.0
of the chart, and replaced with a deployment, see PR: https://github.com/airflow-helm/charts/pull/345
@thesuperzapper the root issue was that in my CD pipeline (via GCP cloudbuild), the substitution variable ${_TAG}
was mistakenly set to ""
so it caused downstream issues, but I got the same error as OP. The upgrade-db was unrelated.
/builder/helm/helm upgrade --install ${_NAME} \
-f values.yaml \
-f helm/$(echo $PROJECT_ID | cut -d'-' -f3).yaml \
--timeout=5m0s \
--namespace=${_NAMESPACE} \
--set=DOMAIN_SUFFIX=${_DOMAIN_SUFFIX} \
--set=airflow.scheduler.replicas=${_SCHEDULER_REPLICAS} \
--set=airflow.serviceAccount.name=${_KSA_NAME} \
--set=airflow.serviceAccount.annotations."iam\.gke\.io/gcp-service-account"="${_KSA_EMAIL}" \
--set=airflow.airflow.image.repository=gcr.io/${PROJECT_ID}/${_IMAGE} \
--set=airflow.airflow.image.tag=${_TAG} \
{...some other set values...}
.
What is the bug?
When running
helm install
command, I get the error:Error: YAML parse error on airflow/templates/jobs/job-upgrade-db.yaml: error converting YAML to JSON: yaml: line 26: mapping values are not allowed in this context
The
helm install
command I run is:What version of the chart are you using?:
chart 8.4.1
What is your Kubernetes Version?:
What is your Helm version?:
Please copy your custom Helm values file: