Skip to content

Commit

Permalink
Added Env in api and auth service
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshampaliwal committed Dec 13, 2024
1 parent 6febed0 commit bcb2b6e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion charts/cdefense/templates/api/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ data:
STATISTIC_WEBHOOK_URL: "https://discord.com/api/webhooks/1121016075799253063/6dAOW8JvKo3rHudlcwtcNFR0gMfLvfIWFFTAQTXxORwML7Y58RzDBjfjztqa9DZ6WmXw"
CLOUDDEFENSE_SENDGRID_EMAIL: "[email protected]"
MICRONAUT_ENVIRONMENTS: {{ .Values.api.environment | default "dev" }}
ALERT_SERVICE_URL: "http://alertservice"
ALERT_SERVICE_URL: "http://alertservice"
CUSTOM_ALLOWED_ORIGIN: "https://cdefense.clouddefenseai.com"
5 changes: 5 additions & 0 deletions charts/cdefense/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ spec:
configMapKeyRef:
name: scan-server-config
key: API_SCAN_DOCKER_IMAGE
- name: CUSTOM_ALLOWED_ORIGIN
valueFrom:
configMapKeyRef:
name: scan-server-config
key: CUSTOM_ALLOWED_ORIGIN
- name: FULL_SCAN_DOCKER_IMAGE
valueFrom:
configMapKeyRef:
Expand Down
3 changes: 2 additions & 1 deletion charts/cdefense/templates/authservice/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ metadata:
data:
AUTH_DEPLOYMENT_MODE_DOCKER: "true"
NEW_RELIC_APP_NAME: cdefense
DOMAIN: "cdefense.clouddefenseai.com"
DOMAIN: "cdefense.clouddefenseai.com"
CUSTOM_ALLOWED_ORIGIN: "https://cdefense.clouddefenseai.com"
5 changes: 5 additions & 0 deletions charts/cdefense/templates/authservice/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ spec:
configMapKeyRef:
name: authservice-config
key: NEW_RELIC_APP_NAME
- name: CUSTOM_ALLOWED_ORIGIN
valueFrom:
configMapKeyRef:
name: authservice-config
key: CUSTOM_ALLOWED_ORIGIN
- name: CLOUDDEFENSE_EMAIL_SENDGRID_KEY
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit bcb2b6e

Please sign in to comment.