diff --git a/helm_deploy/hmpps-component-dependencies/templates/_envs.tpl b/helm_deploy/hmpps-component-dependencies/templates/_envs.tpl index d7f3da2..9d62470 100644 --- a/helm_deploy/hmpps-component-dependencies/templates/_envs.tpl +++ b/helm_deploy/hmpps-component-dependencies/templates/_envs.tpl @@ -10,9 +10,9 @@ env: name: {{ template "app.name" . }} key: APPINSIGHTS_INSTRUMENTATIONKEY - - name: APPINSIGHTS_INSTRUMENTATIONKEY - value: "InstrumentationKey=$(APPINSIGHTS_INSTRUMENTATIONKEY);IngestionEndpoint=https://northeurope-0.in.applicationinsights.azure.com/;LiveEndpoint=https://northeurope.livediagnostics.monitor.azure.com/" - + - name: APPINSIGHTS_INSTRUMENTATIONKEY + value: "InstrumentationKey=$(APPINSIGHTS_INSTRUMENTATIONKEY);IngestionEndpoint=https://northeurope-0.in.applicationinsights.azure.com/;LiveEndpoint=https://northeurope.livediagnostics.monitor.azure.com/" + {{range .Values.appinsightEnvs }} - name: {{ . }}_APPINSIGHTS_ID valueFrom: diff --git a/src/run.ts b/src/run.ts index ade5de8..0d7a5d0 100644 --- a/src/run.ts +++ b/src/run.ts @@ -40,7 +40,7 @@ const run = async () => { logger.info(`Starting to publish dependency info`) const data = Object.fromEntries(componentDependencies) - await redisService.write({ lastUpdated: new Date().toISOString(), ...data }) + await redisService.write(data) logger.info(`Finished publishing dependency info`)