Skip to content

Commit

Permalink
Kustomize: Set up S3 state config variables (#22537)
Browse files Browse the repository at this point in the history
Kustomize charts are missing this today. OSS users are running into this and complaining.

Application logic fixed in #22191.

This PR fixes the Kustomize deployments.
  • Loading branch information
davinchia authored Feb 8, 2023
1 parent ddcdcbb commit 4180b57
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kube/overlays/dev/.env
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ GCS_LOG_BUCKET=
STATE_STORAGE_MINIO_BUCKET_NAME=airbyte-dev-logs
STATE_STORAGE_MINIO_ENDPOINT=http://airbyte-minio-svc:9000

STATE_STORAGE_S3_REGION=
STATE_STORAGE_S3_BUCKET_NAME=

# Docker Resource Limits
JOB_MAIN_CONTAINER_CPU_REQUEST=
JOB_MAIN_CONTAINER_CPU_LIMIT=
Expand Down
2 changes: 2 additions & 0 deletions kube/overlays/dev/.secrets
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ AWS_SECRET_ACCESS_KEY=minio123
GOOGLE_APPLICATION_CREDENTIALS=
STATE_STORAGE_MINIO_ACCESS_KEY=minio
STATE_STORAGE_MINIO_SECRET_ACCESS_KEY=minio123
STATE_STORAGE_S3_ACCESS_KEY=
STATE_STORAGE_S3_SECRET_ACCESS_KEY=
3 changes: 3 additions & 0 deletions kube/overlays/stable-with-resource-limits/.env
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ GCS_LOG_BUCKET=
STATE_STORAGE_MINIO_BUCKET_NAME=airbyte-dev-logs
STATE_STORAGE_MINIO_ENDPOINT=http://airbyte-minio-svc:9000

STATE_STORAGE_S3_REGION=
STATE_STORAGE_S3_BUCKET_NAME=

# Docker Resource Limits
JOB_MAIN_CONTAINER_CPU_REQUEST=
JOB_MAIN_CONTAINER_CPU_LIMIT=
Expand Down
2 changes: 2 additions & 0 deletions kube/overlays/stable-with-resource-limits/.secrets
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ AWS_SECRET_ACCESS_KEY=minio123
GOOGLE_APPLICATION_CREDENTIALS=
STATE_STORAGE_MINIO_ACCESS_KEY=minio
STATE_STORAGE_MINIO_SECRET_ACCESS_KEY=minio123
STATE_STORAGE_S3_ACCESS_KEY=
STATE_STORAGE_S3_SECRET_ACCESS_KEY=
3 changes: 3 additions & 0 deletions kube/overlays/stable/.env
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ GCS_LOG_BUCKET=
STATE_STORAGE_MINIO_BUCKET_NAME=airbyte-dev-logs
STATE_STORAGE_MINIO_ENDPOINT=http://airbyte-minio-svc:9000

STATE_STORAGE_S3_REGION=
STATE_STORAGE_S3_BUCKET_NAME=

# Docker Resource Limits
JOB_MAIN_CONTAINER_CPU_REQUEST=
JOB_MAIN_CONTAINER_CPU_LIMIT=
Expand Down
2 changes: 2 additions & 0 deletions kube/overlays/stable/.secrets
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ AWS_SECRET_ACCESS_KEY=minio123
GOOGLE_APPLICATION_CREDENTIALS=
STATE_STORAGE_MINIO_ACCESS_KEY=minio
STATE_STORAGE_MINIO_SECRET_ACCESS_KEY=minio123
STATE_STORAGE_S3_ACCESS_KEY=
STATE_STORAGE_S3_SECRET_ACCESS_KEY=
20 changes: 20 additions & 0 deletions kube/resources/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,26 @@ spec:
secretKeyRef:
name: airbyte-secrets
key: STATE_STORAGE_MINIO_SECRET_ACCESS_KEY
- name: STATE_STORAGE_S3_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: airbyte-secrets
key: STATE_STORAGE_S3_SECRET_ACCESS_KEY
- name: STATE_STORAGE_S3_ACCESS_KEY
valueFrom:
secretKeyRef:
name: airbyte-secrets
key: STATE_STORAGE_S3_ACCESS_KEY
- name: STATE_STORAGE_S3_REGION
valueFrom:
configMapKeyRef:
name: airbyte-env
key: STATE_STORAGE_S3_REGION
- name: STATE_STORAGE_S3_BUCKET_NAME
valueFrom:
configMapKeyRef:
name: airbyte-env
key: STATE_STORAGE_S3_BUCKET_NAME
ports:
- containerPort: 8001
volumeMounts:
Expand Down
20 changes: 20 additions & 0 deletions kube/resources/worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,26 @@ spec:
secretKeyRef:
name: airbyte-secrets
key: STATE_STORAGE_MINIO_SECRET_ACCESS_KEY
- name: STATE_STORAGE_S3_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: airbyte-secrets
key: STATE_STORAGE_S3_SECRET_ACCESS_KEY
- name: STATE_STORAGE_S3_ACCESS_KEY
valueFrom:
secretKeyRef:
name: airbyte-secrets
key: STATE_STORAGE_S3_ACCESS_KEY
- name: STATE_STORAGE_S3_REGION
valueFrom:
configMapKeyRef:
name: airbyte-env
key: STATE_STORAGE_S3_REGION
- name: STATE_STORAGE_S3_BUCKET_NAME
valueFrom:
configMapKeyRef:
name: airbyte-env
key: STATE_STORAGE_S3_BUCKET_NAME
- name: CONTAINER_ORCHESTRATOR_ENABLED
valueFrom:
configMapKeyRef:
Expand Down

0 comments on commit 4180b57

Please sign in to comment.