Skip to content

Commit

Permalink
Allow state storage to be cross-cloud configurable in helm
Browse files Browse the repository at this point in the history
Currently this is hardcoded to work w/ minio only which breaks optimal gcp and aws setups.  I believe this is enough to get everything working end-to-end.
  • Loading branch information
michaeljguarino committed Feb 2, 2023
1 parent bb7af73 commit 8610fd2
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 4 deletions.
41 changes: 41 additions & 0 deletions charts/airbyte-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ spec:
configMapKeyRef:
name: {{ .Release.Name }}-airbyte-env
key: S3_MINIO_ENDPOINT
- name: WORKER_STATE_STORAGE_TYPE
valueFrom:
configMapKeyRef:
name: {{ .Release.Name }}-airbyte-env
key: WORKER_STATE_STORAGE_TYPE
- name: STATE_STORAGE_MINIO_BUCKET_NAME
valueFrom:
configMapKeyRef:
Expand All @@ -190,11 +195,47 @@ spec:
secretKeyRef:
name: {{ .Release.Name }}-airbyte-secrets
key: STATE_STORAGE_MINIO_SECRET_ACCESS_KEY
{{- if eq .Values.global.state.storage.type "MINIO" }}
- name: STATE_STORAGE_MINIO_ENDPOINT
valueFrom:
configMapKeyRef:
name: {{ .Release.Name }}-airbyte-env
key: STATE_STORAGE_MINIO_ENDPOINT
{{- end }}
- name: STATE_STORAGE_S3_BUCKET_NAME
valueFrom:
configMapKeyRef:
name: {{ .Release.Name }}-airbyte-env
key: S3_LOG_BUCKET
- name: STATE_STORAGE_S3_ACCESS_KEY
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-airbyte-secrets
key: AWS_ACCESS_KEY_ID
- name: STATE_STORAGE_S3_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-airbyte-secrets
key: AWS_SECRET_ACCESS_KEY
{{- if eq .Values.global.state.storage.type "S3" }}
- name: STATE_STORAGE_S3_REGION
valueFrom:
configMapKeyRef:
name: {{ .Release.Name }}-airbyte-env
key: S3_LOG_BUCKET_REGION
{{- end }}
- name: STATE_STORAGE_GCS_APPLICATION_CREDENTIALS
valueFrom:
configMapKeyRef:
name: {{ .Release.Name }}-airbyte-env
key: GOOGLE_APPLICATION_CREDENTIALS
{{- if eq .Values.global.state.storage.type "GCS" }}
- name: STATE_STORAGE_GCS_BUCKET_NAME
valueFrom:
configMapKeyRef:
name: {{ .Release.Name }}-airbyte-env
key: GCS_LOG_BUCKET
{{- end }}
- name: S3_PATH_STYLE_ACCESS
valueFrom:
configMapKeyRef:
Expand Down
36 changes: 36 additions & 0 deletions charts/airbyte-worker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,47 @@ spec:
secretKeyRef:
name: {{ .Release.Name }}-airbyte-secrets
key: STATE_STORAGE_MINIO_SECRET_ACCESS_KEY
{{- if eq .Values.global.state.storage.type "MINIO" }}
- name: STATE_STORAGE_MINIO_ENDPOINT
valueFrom:
configMapKeyRef:
name: {{ .Release.Name }}-airbyte-env
key: STATE_STORAGE_MINIO_ENDPOINT
{{- end }}
- name: STATE_STORAGE_S3_BUCKET_NAME
valueFrom:
configMapKeyRef:
name: {{ .Release.Name }}-airbyte-env
key: S3_LOG_BUCKET
- name: STATE_STORAGE_S3_ACCESS_KEY
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-airbyte-secrets
key: AWS_ACCESS_KEY_ID
- name: STATE_STORAGE_S3_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-airbyte-secrets
key: AWS_SECRET_ACCESS_KEY
{{- if eq .Values.global.state.storage.type "S3" }}
- name: STATE_STORAGE_S3_REGION
valueFrom:
configMapKeyRef:
name: {{ .Release.Name }}-airbyte-env
key: S3_LOG_BUCKET_REGION
{{- end }}
- name: STATE_STORAGE_GCS_APPLICATION_CREDENTIALS
valueFrom:
configMapKeyRef:
name: {{ .Release.Name }}-airbyte-env
key: GOOGLE_APPLICATION_CREDENTIALS
{{- if eq .Values.global.state.storage.type "GCS" }}
- name: STATE_STORAGE_GCS_BUCKET_NAME
valueFrom:
configMapKeyRef:
name: {{ .Release.Name }}-airbyte-env
key: GCS_LOG_BUCKET
{{- end }}
- name: INTERNAL_API_HOST
valueFrom:
configMapKeyRef:
Expand Down
8 changes: 4 additions & 4 deletions charts/airbyte/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ dependencies:
repository: https://airbytehq.github.io/helm-charts/
version: 0.43.22
- name: server
repository: https://airbytehq.github.io/helm-charts/
repository: file://../airbyte-server
version: 0.43.22
- name: worker
repository: https://airbytehq.github.io/helm-charts/
repository: file://../airbyte-worker
version: 0.43.22
- name: pod-sweeper
repository: https://airbytehq.github.io/helm-charts/
Expand All @@ -29,5 +29,5 @@ dependencies:
- name: connector-builder-server
repository: https://airbytehq.github.io/helm-charts/
version: 0.43.22
digest: sha256:3f86ccd42c1eb353dd2d45237b21706c6d8a1d564dc8babb26c0fd961c56ed9d
generated: "2023-01-25T02:03:57.511452543Z"
digest: sha256:cd0bc2180d518dc292c8d02e62e87f2150e9b6c81d48424cb7c216f0569b8d0c
generated: "2023-02-01T23:26:15.204239-05:00"

0 comments on commit 8610fd2

Please sign in to comment.