Skip to content

Commit

Permalink
feat(onboarding): add staging configuration
Browse files Browse the repository at this point in the history
Add the DEVELOPERS_ITALIA_API_URL env variable to point to the staging
API in the staging deployment.

Also get a different secret in staging based on the name of the
deployment.
  • Loading branch information
bfabio committed Nov 16, 2022
1 parent 635eef7 commit c108db5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion onboarding/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ apiVersion: v1
name: onboarding
description: Tool to register PAs' software repositories on Developers Italia.

version: 0.2.0
version: 0.2.1
2 changes: 2 additions & 0 deletions onboarding/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ spec:
value: "{{ .Values.onboarding.env.onboarding_email_override_recipient_addr }}"
- name: ONBOARDING_EMAIL_SUBJECT
value: "{{ .Values.onboarding.env.onboarding_email_subject }}"
- name: DEVELOPERS_ITALIA_API_URL
value: "{{ .Values.onboarding.env.developers_italia_api_url }}"
- name: ONBOARDING_SMTP_HOSTNAME
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion onboarding/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ spec:
name: {{ template "onboarding.fullname" . }}-azure-kv
dataFrom:
- extract:
key: k8s-secrets-onboarding
key: k8s-secrets-{{ template "onboarding.fullname" . }}
1 change: 1 addition & 0 deletions onboarding/values-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ onboarding:
onboarding_email_bcc: "[email protected]"
onboarding_email_override_recipient_addr: "[email protected]"
onboarding_email_subject: "[staging] Onboarding Developers Italia"
developers_italia_api_url: "https://api-staging.developers.italia.it/v1"

services:
httpPort:
Expand Down
1 change: 1 addition & 0 deletions onboarding/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ onboarding:
onboarding_email_bcc: "[email protected]"
onboarding_email_override_recipient_addr: "[email protected]"
onboarding_email_subject: "Onboarding Developers Italia"
developers_italia_api_url: "https://api.developers.italia.it/v1"

services:
httpPort:
Expand Down

0 comments on commit c108db5

Please sign in to comment.