Skip to content

Commit

Permalink
k8s: Add configuration for email variables
Browse files Browse the repository at this point in the history
We have missed email variables in deployment, EMAIL_SENDER
and EMAIL_PASSWORD

Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed Jan 16, 2024
1 parent d9176e8 commit 1e7a0be
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions kube/aks/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@ spec:
secretKeyRef:
name: kernelci-api-secret
key: secret-key
- name: EMAIL_SENDER
valueFrom:
configMapKeyRef:
name: kernelci-api-config
key: email_sender
- name: EMAIL_PASSWORD
valueFrom:
secretKeyRef:
name: kernelci-api-secret
key: email-password
- name: SMTP_HOST
valueFrom:
configMapKeyRef:
name: kernelci-api-config
key: smtp_host
- name: SMTP_PORT
valueFrom:
configMapKeyRef:
name: kernelci-api-config
key: smtp_port
- name: MONGO_SERVICE
valueFrom:
configMapKeyRef:
Expand Down
3 changes: 3 additions & 0 deletions kube/aks/configmap.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ metadata:
data:
redis_host: "redis.kernelci-api.svc.cluster.local"
mongo_service: "MONGOCONNECTSTRING"
email_sender: "[email protected]"
smtp_host: "smtp.gmail.com"
smtp_port: "465"

0 comments on commit 1e7a0be

Please sign in to comment.