From 534e861aebe1042eab441f5025705e519f4bc3fa Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 2 Nov 2023 12:24:05 +0100 Subject: [PATCH] Point to Trusty instance via an environment variable (#1401) To make sure we're talking to the right trusty instance through the k8s service name. --- deployment/helm/templates/deployment.yaml | 2 ++ deployment/helm/values.yaml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/deployment/helm/templates/deployment.yaml b/deployment/helm/templates/deployment.yaml index 3b2bc89da8..640f124d19 100644 --- a/deployment/helm/templates/deployment.yaml +++ b/deployment/helm/templates/deployment.yaml @@ -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 diff --git a/deployment/helm/values.yaml b/deployment/helm/values.yaml index 423a925949..561a61308e 100644 --- a/deployment/helm/values.yaml +++ b/deployment/helm/values.yaml @@ -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: