Skip to content

Commit

Permalink
fix: webhooks-processor environment variables are misplaced
Browse files Browse the repository at this point in the history
  • Loading branch information
42atomys committed Jul 1, 2022
1 parent 0560693 commit 408748f
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions deploy/app/webhooks-processor/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ spec:
args: [ '--config', '/config/stud42.yaml', jobs, webhooks ]
command: [ stud42cli ]
env:
- name: DEBUG
value: "true"
- name: GO_ENV
value: production
- name: APP_VERSION
Expand All @@ -24,8 +26,6 @@ spec:
secretKeyRef:
key: 'WEBHOOKS_PROCESSOR_DSN'
name: 'sentry-dsns'
- name: DATABASE_URL
value: postgresql://$(DATABASE_USERNAME):$(DATABASE_PASSWORD)@$(DATABASE_HOST):5432/$(DATABASE_NAME)?sslmode=disable
- name: DATABASE_HOST
value: primary-postgres
- name: DATABASE_USERNAME
Expand All @@ -37,8 +37,8 @@ spec:
name: primary-postgres-credentials
- name: DATABASE_NAME
value: s42
- name: AMQP_URL
value: amqp://$(AMQP_USERNAME):$(AMQP_PASSWORD)@$(AMQP_HOST):$(AMQP_PORT)/
- name: DATABASE_URL
value: postgresql://$(DATABASE_USERNAME):$(DATABASE_PASSWORD)@$(DATABASE_HOST):5432/$(DATABASE_NAME)?sslmode=disable
- name: AMQP_USERNAME
valueFrom:
secretKeyRef:
Expand All @@ -59,6 +59,19 @@ spec:
secretKeyRef:
key: port
name: prod-primary-rabbitmq-default-user
- name: AMQP_URL
value: amqp://$(AMQP_USERNAME):$(AMQP_PASSWORD)@$(AMQP_HOST):$(AMQP_PORT)
- name: FORTY_TWO_CLIENT_ID
valueFrom:
secretKeyRef:
key: FORTY_TWO_CLIENT_ID
name: oauth2-providers
- name: FORTY_TWO_CLIENT_SECRET
valueFrom:
secretKeyRef:
key: FORTY_TWO_CLIENT_SECRET
name: oauth2-providers

volumeMounts:
- name: config
mountPath: /config
Expand Down

0 comments on commit 408748f

Please sign in to comment.