Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Sets LOG_LEVEL and SESSION_SECRET env vars for dshop backends (#4484)
Browse files Browse the repository at this point in the history
* sets LOG_LEVEL env var for dshop rinkeby backend

* sets SESSION_SECRET for dshop backend rinkeby

* sets mainnet env vars
  • Loading branch information
mikeshultz authored Jul 8, 2020
1 parent a862c4e commit 4153cb9
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ metadata:
type: Opaque
data:
ENCRYPTION_KEY: {{ required "Set a .Values.dshopBackendMainnetEncryptionKey" .Values.dshopBackendMainnetEncryptionKey | b64enc | quote}}
SESSION_SECRET: {{ required "Set a .Values.dshopBackendMainnetSessionSecret" .Values.dshopBackendMainnetSessionSecret | b64enc | quote}}
DATABASE_URL: {{ required "Set a .Values.dshopBackendMainnetDatabaseURL" .Values.dshopBackendMainnetDatabaseURL | b64enc | quote}}
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,22 @@ spec:
secretKeyRef:
name: {{ template "dshopBackendMainnet.fullname" . }}
key: ENCRYPTION_KEY
- name: SESSION_SECRET
valueFrom:
secretKeyRef:
name: {{ template "dshopBackendMainnet.fullname" . }}
key: SESSION_SECRET
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: {{ template "dshopBackendMainnet.fullname" . }}
key: DATABASE_URL
- name: REDIS_URL
value: redis://localhost:6379/0
value: "redis://{{ template "dshopRedisMainnet.fullname" . }}-0.{{ template "dshopRedisMainnet.fullname" . }}.experimental.svc.cluster.local:6379/0"
- name: DSHOP_CACHE
value: /data/dshop
- name: LOG_LEVEL
value: {{ default "INFO" .Values.dshopBackendMainnetLogLevel }}
volumeMounts:
- name: "{{ template "dshopBackendMainnet.fullname" . }}-dshop-cache"
mountPath: /data/dshop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ metadata:
type: Opaque
data:
ENCRYPTION_KEY: {{ required "Set a .Values.dshopBackendRinkebyEncryptionKey" .Values.dshopBackendRinkebyEncryptionKey | b64enc | quote}}
SESSION_SECRET: {{ required "Set a .Values.dshopBackendRinkebySessionSecret" .Values.dshopBackendRinkebySessionSecret | b64enc | quote}}
DATABASE_URL: {{ required "Set a .Values.dshopBackendRinkebyDatabaseURL" .Values.dshopBackendRinkebyDatabaseURL | b64enc | quote}}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ spec:
secretKeyRef:
name: {{ template "dshopBackendRinkeby.fullname" . }}
key: ENCRYPTION_KEY
- name: SESSION_SECRET
valueFrom:
secretKeyRef:
name: {{ template "dshopBackendRinkeby.fullname" . }}
key: SESSION_SECRET
- name: DATABASE_URL
valueFrom:
secretKeyRef:
Expand All @@ -41,6 +46,8 @@ spec:
value: "redis://{{ template "dshopRedisRinkeby.fullname" . }}-0.{{ template "dshopRedisRinkeby.fullname" . }}.experimental.svc.cluster.local:6379/0"
- name: DSHOP_CACHE
value: /data/dshop
- name: LOG_LEVEL
value: {{ default "INFO" .Values.dshopBackendRinkebyLogLevel }}
volumeMounts:
- name: "{{ template "dshopBackendRinkeby.fullname" . }}-dshop-cache"
mountPath: /data/dshop
Expand Down
Binary file modified devops/kubernetes/values/origin-experimental/secrets-dshop.enc
Binary file not shown.
1 change: 1 addition & 0 deletions devops/kubernetes/values/origin-experimental/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dshopBackendMainnetRedisURL: redis://localhost:6379/0
dshopBackendRinkebyHost: rinkebyapi.ogn.app
dshopBackendRinkebyDBInstance: origin-214503:us-west1:dshop-rinkeby0
dshopBackendRinkebyRedisURL: redis://localhost:6379/0
dshopBackendRinkebyLogLevel: DEBUG

0 comments on commit 4153cb9

Please sign in to comment.