Keegan Haukaas
07/09/2025, 4:45 PMvalue is not emptykapa.ai
07/09/2025, 4:45 PMunable to install airbyte chart: unable to install helm: cannot patch "airbyte-abctl-workload-api-server" with kind Deployment: The order in patch list: ... doesn't match $setElementOrder list: ... This issue has been reported multiple times in the Airbyte community and GitHub issues. It is typically caused by: - Duplicate environment variable entries (e.g., AB_JWT_SIGNATURE_SECRET appears twice). - The order of environment variables in the patch list not matching the expected $setElementOrder in the Kubernetes resource, which causes Helm to fail when applying the patch. Key points from the knowledge sources: - This is a known bug, and the Airbyte team is working on a fix. The problem is especially prevalent when upgrading or re-installing with abctl or via Helm, and when custom environment variables are set in your values.yaml file or through other means [[source](https://github.com/airbytehq/airbyte/issues/60918)]. - Users have reported that removing custom env_vars from their values.yaml (especially those not strictly required) can sometimes resolve the issue [[source](https://github.com/airbytehq/airbyte/issues/62519)]. - There are also reports of duplicate environment variable definitions in the Helm chart templates themselves, which can cause this error. For example, AB_JWT_SIGNATURE_SECRET was found twice in the workload API server deployment template, and a PR was submitted to fix this [[source](https://github.com/airbytehq/airbyte/issues/58591)]. - The Airbyte documentation acknowledges this as a "Status: Fixing" issue, and there is no official workaround yet other than waiting for a patch or manually editing your deployment manifests to remove duplicates or unnecessary customizations [[source](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy#failed-to-create-patch-order-in-patch-list)]. What you can try: 1. Check for duplicate environment variables in your values.yaml or any overlays you are using, and remove any unnecessary or duplicate entries. 2. Remove custom environment variables (especially those related to metrics or JWT secrets) from your configuration and try the upgrade again. 3. If you are using ArgoCD or another GitOps tool, ensure that your manifests do not introduce additional environment variable entries or override the order. 4. If you are blocked and need an immediate workaround, you may need to manually patch the deployment or use a tool like Kustomize to ensure the environment variable order matches what Kubernetes expects, as suggested by some users in the GitHub issues [[source](https://github.com/airbytehq/airbyte/issues/58591)]. Summary: This is a known and currently unresolved issue with Airbyte upgrades involving Helm and environment variable ordering. The best immediate steps are to check for and remove duplicate or unnecessary environment variables in your configuration. If the problem persists, you may need to wait for an official fix from the Airbyte team. If you need more detailed, step-by-step guidance, please provide your values.yaml or any custom configuration you are using, and I can help review it for problematic entries.