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 Feb 22, 2023
1 parent 2185d28 commit e66a211
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
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
value: "{{ .Values.onboarding.env.onboarding_smtp_hostname }}"
- name: ONBOARDING_SMTP_USERNAME
Expand Down
8 changes: 4 additions & 4 deletions onboarding/templates/secretproviderclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ spec:
objects: |
array:
- |
objectName: k8s-secrets-onboarding-smtp-password
objectName: k8s-secrets-{{ template "onboarding.fullname" . }}-smtp-password
objectType: secret
- |
objectName: k8s-secrets-paseto-key
objectName: k8s-secrets-{{ template "onboarding.fullname" . }}-paseto-key
objectType: secret
tenantId: f7f7d6c7-92de-488e-b37e-8963207c7b86
secretObjects:
- data:
- key: smtp-password
objectName: k8s-secrets-onboarding-smtp-password
objectName: k8s-secrets-{{ template "onboarding.fullname" . }}-smtp-password
- key: paseto-key
objectName: k8s-secrets-paseto-key
objectName: k8s-secrets-{{ template "onboarding.fullname" . }}-paseto-key
secretName: {{ template "onboarding.fullname" . }}-azure-kv
type: Opaque
1 change: 1 addition & 0 deletions onboarding/values-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ onboarding:
onboarding_email_subject: "[staging] Onboarding Developers Italia"
onboarding_smtp_hostname: smtp.eu.mailgun.org
onboarding_smtp_username: [email protected]
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 @@ -24,6 +24,7 @@ onboarding:
onboarding_email_subject: "Onboarding Developers Italia"
onboarding_smtp_hostname: smtp.eu.mailgun.org
onboarding_smtp_username: [email protected]
developers_italia_api_url: "https://api.developers.italia.it/v1"

services:
httpPort:
Expand Down

0 comments on commit e66a211

Please sign in to comment.