Skip to content

Commit

Permalink
Expose Sentry related env vars in dashboard pod
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarcziova committed May 23, 2024
1 parent 42b8655 commit 6c0e2a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/deployment/secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ In both cases you have to do some tweaks before using them:
- `extra-vars.yml`
- would be nice to use your tokens/api keys in `packit_service.authentication`, but it's not crucial since it's for staging instances
- `sentry.dsn`: just empty it to not send your devel bugs to Sentry
- `sentry.auth_token`: used only for dashboard Sentry integration, applies same as for dsn
- `fedora_messaging`: replace with a new generated (`uuidgen`) one (if you'll run [fedmsg](https://github.com/packit/packit-service-fedmsg))
- `copr`: would be nice to use [your own token](https://copr.fedorainfracloud.org/api/) if you're planning to build in Copr
- `id_ed25519[.pub]`: replace with your ssh keys
Expand Down
4 changes: 4 additions & 0 deletions openshift/dashboard.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spec:
env:
- name: DEPLOYMENT
value: {{ deployment }}
- name: SENTRY_AUTH_TOKEN
valueFrom: {secretKeyRef: {name: sentry, key: auth_token}}
- name: VITE_SENTRY_DSN
valueFrom: {secretKeyRef: {name: sentry, key: dsn}}
resources:
requests:
memory: "128Mi"
Expand Down
1 change: 1 addition & 0 deletions openshift/secret-sentry.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ metadata:
type: Opaque
data:
dsn: "{{ vault.sentry.dsn | b64encode }}"
auth_token: "{{ vault.sentry.auth_token | b64encode }}"

0 comments on commit 6c0e2a4

Please sign in to comment.