logrus: add deployment channel as field to the logs

This commit is contained in:
Florian Schüller 2024-08-01 18:04:06 +02:00 committed by Florian Schüller
parent 2da3a73308
commit 9006836afc
5 changed files with 80 additions and 11 deletions

View file

@ -126,6 +126,8 @@ objects:
optional: true
- name: DISTRO_ALIASES
value: ${DISTRO_ALIASES}
- name: CHANNEL
value: ${CHANNEL}
ports:
- name: composer-api
protocol: TCP
@ -341,3 +343,9 @@ parameters:
- description: Distro name aliases
name: DISTRO_ALIASES
value: "rhel-7=rhel-7.9,rhel-8=rhel-8.10,rhel-9=rhel-9.4,rhel-10=rhel-10.0"
- name: CHANNEL
value: "local"
description: >
Channel where this pod is deployed.
This is appended to the logs. Usually something like
"local", "staging" or "production".