-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[helm] workload-api-server chart uses inconsistent GCS secret logic from server/worker/workload-launcher #44525
Comments
Running into this as well while trying to spin up the airbyte chart with GCS. It seems like this is at direct odds with Airbyte's deployment docs at https://docs.airbyte.com/deploying-airbyte/integrations/secrets. This chart just doesn't work? |
@Scalahansolo What version are you running? The chart was fixed in another thread here - airbytehq/airbyte-platform#355 I've just upgraded to 1.2.0 recently |
I was using 1.3.0. The chart doesn't even have |
I tend not to refer to the documentation as it seems to go out of date very quickly unfortunately, instead I download the helm chart here and debug locally. https://airbytehq.github.io/helm-charts/index.yaml My values for GCS creds are here:
I'm not using a secret manager. Instead I provide a base64 encoded JSON key which then gets created as a secret by the Helm chart. This isn't ideal of course, having secrets in source control (albeit obfuscated). Though it's worked for me so far (I recently did an upgrade from a version 9 months old to 1.2.0). I expect there is a better way to do it now, though not had a chance to explore it yet. The Helm charts have been quite buggy, the Airbyte team have been making quite a lot of changes to them. Though I did start using it prior to the V1 release so it is not surprising |
Hello, looks like it properly works using |
Helm Chart Version
0.445.3
What step the error happened?
Upgrading the Platform or Helm Chart
Relevant information
Problem
I'm attempting to set up my OSS Airbyte deployment to use GCS logging. Relevant chart values are below (from a FluxCD patch):
gcs-credentials-ext
was created externally to the Helm chart deployment, as I wanted to avoid having my base64 encoded credentials held in source control atglobal.storage.gcs.credentialsJson
Analysis
When I run the helm install, the pod for
airbyte-workload-api-server
gets stuck in theContainerCreating
state, with the following error:Warning FailedMount 3s (x4 over 6s) kubelet MountVolume.SetUp failed for volume "gcs-log-creds-volume" : secret "airbyte-gcs-log-creds" not found
Upon analysis of the workload API server template, this is due to the
secretName
defaulting toreleasename-gcs-log-creds
because it is looking for a value.Values.global.credVolumeOverride
). See - https://github.com/airbytehq/airbyte-platform/blob/f8146bdc352726509bc5bbd8870052e666178944/charts/airbyte-workload-api-server/templates/deployment.yaml#L202This is at odds with the other components that refer to the same secret (they all use
Values.global.storage.storageSecretName
):Proposal
I propose that this line https://github.com/airbytehq/airbyte-platform/blob/f8146bdc352726509bc5bbd8870052e666178944/charts/airbyte-workload-api-server/templates/deployment.yaml#L202, be changed from:
secretName: {{ ternary (printf "%s-gcs-log-creds" ( .Release.Name )) (.Values.global.credVolumeOverride) (eq .Values.global.deploymentMode "oss") }}
to:
secretName: {{ ternary (printf "%s-gcs-log-creds" ( .Release.Name )) .Values.global.storage.storageSecretName (not ((.Values.global.storage).storageSecretName)) }}
Relevant log output
No response
The text was updated successfully, but these errors were encountered: