airbyte-platform icon indicating copy to clipboard operation
airbyte-platform copied to clipboard

ASRE-550: Fix WORKLOAD_API_BEARER_TOKEN issue

Open sho-equativ opened this issue 11 months ago • 1 comments
trafficstars

What

This change updates the WORKLOAD_API_BEARER_TOKEN to use a dynamic value by referencing bearerToken in the workload-api and workload-api-server sections from the Helm values file.

How

This modification uses Helm's index function to dynamically fetch the bearerToken values from .Values.workload-api and .Values.workload-api-server, ensuring that the correct token is used for authentication. The tokens are now quoted properly for use in Kubernetes configurations.

Before: WORKLOAD_API_BEARER_TOKEN: {{ index ".Values.workload-api.bearerToken" | quote }} After: WORKLOAD_API_BEARER_TOKEN: {{ index .Values "workload-api-server" "bearerToken" | quote }}

Can this PR be safely reverted and rolled back?

  • [X ] YES 💚
  • [ ] NO ❌

sho-equativ avatar Dec 06 '24 18:12 sho-equativ