I'm trying to upgrade from Airbyte Self-Managed Co...
# ask-ai
k
I'm trying to upgrade from Airbyte Self-Managed Community version 1.3.1 to Airbyte Self-Managed Community version 1.4.0 and I'm receiving the error: unable to install airbyte chart: unable to install helm: cannot patch "airbyte-abctl-workload-launcher" with kind Deployment: Deployment.apps "airbyte-abctl-workload-launcher" is invalid: spec.template.spec.containers[0].env[30].valueFrom: Invalid value: "": may not be specified when
value
is not empty
k
The error you're encountering during the upgrade from Airbyte Self-Managed Community version 1.3.1 to 1.4.0—specifically, `spec.template.spec.containers[0].env[30].valueFrom: Invalid value: "": may not be specified when value is not empty`—is related to how environment variables are templated in the Helm chart for Airbyte. This issue has been reported by other users upgrading to 1.4.0, and it appears to be caused by changes in how image pull secrets and environment variables are handled in the Helm chart. In particular, if both
global.imagePullSecrets
and
global.jobs.kube.main_container_image_pull_secret
are set, or if certain values are missing, the chart can generate invalid or duplicate environment variable entries, leading to errors like the one you see. Key points and workarounds: - In version 1.4.0, the Helm chart was changed to use
global.imagePullSecrets
for job pods, and having both
global.imagePullSecrets
and
global.jobs.kube.main_container_image_pull_secret
set can cause issues. The recommended approach is to remove
global.jobs.kube.main_container_image_pull_secret
from your
values.yaml
and use only
global.imagePullSecrets
if you need to specify image pull secrets. This should resolve issues with duplicate or missing environment variables in the generated manifests. - Several users confirmed that removing
main_container_image_pull_secret
and relying solely on
global.imagePullSecrets
allowed the upgrade to proceed successfully, and the secrets were still applied to job pods as expected. - This issue was specific to version 1.4.0 and was fixed in later versions (1.5.0 and above). If possible, consider upgrading directly to a newer version to avoid this and other related issues. References: - [Helm chart environment variable and image pull secret handling in 1.4.0](https://github.com/airbytehq/airbyte/issues/52034) - [User confirmation and workaround](https://github.com/airbytehq/airbyte/issues/52034) Summary of recommended action: - Remove
global.jobs.kube.main_container_image_pull_secret
from your
values.yaml
. - Use only
global.imagePullSecrets
if you need to specify image pull secrets. - If possible, upgrade to Airbyte 1.5.0 or later, where this issue is resolved. If you continue to encounter issues after making these changes, please provide your
values.yaml
(with sensitive data redacted) for further troubleshooting.