Skip to content

Commit

Permalink
add the S3 env vars to patch files (same as in #41), remove spaces fr…
Browse files Browse the repository at this point in the history
…om lookit-secrets.env
  • Loading branch information
becky-gilbert committed Jun 5, 2023
2 parents f2c8978 + 918ad4d commit 3ed617a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,46 +392,6 @@
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: 3 additions & 36 deletions kubernetes/lookit/base/patches_/add-lookit-env-vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -392,45 +392,12 @@
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: 0 additions & 24 deletions kubernetes/lookit/base/patches_/replace-lookit-env-vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,30 +209,6 @@
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 3ed617a

Please sign in to comment.