Skip to content

Commit

Permalink
Point to Trusty instance via an environment variable (#1401)
Browse files Browse the repository at this point in the history
To make sure we're talking to the right trusty instance through the
k8s service name.
  • Loading branch information
jhrozek authored Nov 2, 2023
1 parent 0ec2861 commit 534e861
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deployment/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ spec:
value: "/secrets/auth/token_key_passphrase"
- name: "MEDIATOR_IDENTITY_SERVER_CLIENT_SECRET_FILE"
value: "/secrets/identity/identity_client_secret"
- name: "MEDIATOR_UNSTABLE_TRUSTY_ENDPOINT"
value: "{{ .Values.trusty.endpoint }}"

# ko will always specify a digest, so we don't need to worry about
# CRI image caching
Expand Down
3 changes: 3 additions & 0 deletions deployment/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ hostname: "mediator.example.com"
db:
host: "postgres.postgres"

trusty:
endpoint: "http://pi.pi:8000"

# NOTE: we are migrating from AWS-specific annotations to a "pre-create the service account" model.
# If serviceAccounts.migrate or serviceAccount.server are set, these values will be ignored.
aws:
Expand Down

0 comments on commit 534e861

Please sign in to comment.