Skip to content

Commit

Permalink
add S3 vars to patch files (exactly the same as in #41)
Browse files Browse the repository at this point in the history
  • Loading branch information
becky-gilbert committed Jun 5, 2023
1 parent 64d1528 commit 36cfb54
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,46 @@
key: PIPE_WEBHOOK_KEY
name: lookit-secrets

- op: add
path: /spec/template/spec/containers/1/env/-
value:
name: S3_REGION
valueFrom:
secretKeyRef:
key: S3_REGION
name: lookit-secrets
optional: true

- op: add
path: /spec/template/spec/containers/1/env/-
value:
name: S3_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
key: S3_ACCESS_KEY_ID
name: lookit-secrets
optional: true

- op: add
path: /spec/template/spec/containers/1/env/-
value:
name: S3_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
key: S3_SECRET_ACCESS_KEY
name: lookit-secrets
optional: true

- op: add
path: /spec/template/spec/containers/1/env/-
value:
name: S3_BUCKET
valueFrom:
secretKeyRef:
key: S3_BUCKET
name: lookit-secrets
optional: true

- op: add
path: /spec/template/spec/containers/1/env/-
value:
Expand Down
39 changes: 36 additions & 3 deletions kubernetes/lookit/base/patches_/add-lookit-env-vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,45 @@
key: PIPE_WEBHOOK_KEY
name: lookit-secrets

- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: S3_REGION
valueFrom:
secretKeyRef:
key: S3_REGION
name: lookit-secrets
optional: true

- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: S3_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
key: S3_ACCESS_KEY_ID
name: lookit-secrets
optional: true

- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: S3_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
key: S3_SECRET_ACCESS_KEY
name: lookit-secrets
optional: true




- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: S3_BUCKET
valueFrom:
secretKeyRef:
key: S3_BUCKET
name: lookit-secrets
optional: true

- op: add
path: /spec/template/spec/containers/0/env/-
Expand Down
24 changes: 24 additions & 0 deletions kubernetes/lookit/base/patches_/replace-lookit-env-vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,30 @@
secretKeyRef:
key: PIPE_WEBHOOK_KEY
name: lookit-secrets
- name: S3_REGION
valueFrom:
secretKeyRef:
key: S3_REGION
name: lookit-secrets
optional: true
- name: S3_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
key: S3_ACCESS_KEY_ID
name: lookit-secrets
optional: true
- name: S3_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
key: S3_SECRET_ACCESS_KEY
name: lookit-secrets
optional: true
- name: S3_BUCKET
valueFrom:
secretKeyRef:
key: S3_BUCKET
name: lookit-secrets
optional: true
- name: SECRET_KEY
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit 36cfb54

Please sign in to comment.