Skip to content

[abctl] local install fails: Helm patch Deployment error due to env var order mismatch ($setElementOrder) #60918

@ayanguas

Description

@ayanguas

What happened?

When running abctl local install to update my local Airbyte deployment (on a kind Kubernetes cluster), the installation fails during the Helm upgrade step. The process correctly detects the existing cluster and resources, but the Helm chart fails to patch the airbyte-abctl-workload-api-server Deployment.

The error is related to an environment variable patch list not matching the expected $setElementOrder. The debug output also shows that some environment variables (e.g., AB_JWT_SIGNATURE_SECRET) appear twice in the patch list.

Environment: I'm running the upgrade process on an EC2 instance of type m6a.2xlarge.

Steps to reproduce the problem:

  1. Set up a local Airbyte cluster previously using abctl local init and abctl local deploy.
  2. Run abctl local install to upgrade to the latest version (v1.6.2).
  3. Wait for Helm to apply the chart.
  4. Observe that the process fails when patching airbyte-abctl-workload-api-server.

What did you expect to happen?

I expected abctl local install to successfully upgrade the local Airbyte deployment to the newest version without errors, properly applying the Helm chart and updating all relevant Kubernetes resources — including the airbyte-abctl-workload-api-server Deployment — without encountering conflicts or patch ordering issues.

Abctl Version

Details
$ abctl version
(version: v0.25.0)

Docker Version

Details
$ docker version
Client:
 Version:           25.0.5
 API version:       1.44
 Go version:        go1.22.5
 Git commit:        5dc9bcc
 Built:             Wed Aug 21 00:00:00 2024
 OS/Arch:           linux/amd64
 Context:           default

Server:
 Engine:
  Version:          25.0.6
  API version:      1.44 (minimum version 1.24)
  Go version:       go1.22.5
  Git commit:       b08a51f
  Built:            Wed Aug 21 00:00:00 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.22
  GitCommit:        7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c
 runc:
  Version:          1.1.14
  GitCommit:        2c9f5602f0ba3d9da1c2596322dfc4e156844890
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

OS Version

Details
# On Linux:
$ cat /etc/os-release
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023.6.20241010"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/amazon-linux-2023/"
DOCUMENTATION_URL="https://docs.aws.amazon.com/linux/"
SUPPORT_URL="https://aws.amazon.com/premiumsupport/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
VENDOR_NAME="AWS"
VENDOR_URL="https://aws.amazon.com/"
SUPPORT_END="2028-03-15"

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions