Skip to content

Commit

Permalink
Merge pull request #42 from lookit/add-s3-env-vars-staging
Browse files Browse the repository at this point in the history
Add S3 env vars to patch and secrets files - remove spaces from var definitions
  • Loading branch information
becky-gilbert authored Jun 5, 2023
2 parents 918ad4d + 36cfb54 commit c3b2f0a
Show file tree
Hide file tree
Showing 9 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
Binary file not shown.
Binary file not shown.
Binary file modified kubernetes/lookit/environments/production/lookit-secrets.env.enc
Binary file not shown.
Binary file not shown.
Binary file modified kubernetes/lookit/environments/staging/googleAppCreds.json.enc
Binary file not shown.
Binary file modified kubernetes/lookit/environments/staging/lookit-secrets.env.enc
Binary file not shown.

0 comments on commit c3b2f0a

Please sign in to comment.