refactor(mdapi): use env_suffix variable for hostname configuration

Replace hardcoded staging conditional logic with `env_suffix` template variable

Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
This commit is contained in:
Akashdeep Dhar
2025-08-21 02:53:32 +00:00
parent fc4e1cca02
commit ffbbaa2d68
2 changed files with 1 additions and 2 deletions

View File

@@ -1 +0,0 @@
{% macro load_file(filename) %}{% include filename %}{%- endmacro -%}

View File

@@ -21,7 +21,7 @@ spec:
- name: mdapi
image: registry/mdapi:latest
command: ["/metasource/meta"]
args: ["-location", "/var/tmp", "-loglevel", "info", "dispense", "-hostname", "mdapi{% if env == "staging" %}.stg{% endif %}.fedoraproject.org"]
args: ["-location", "/var/tmp", "-loglevel", "info", "dispense", "-hostname", "mdapi{{ env_suffix }}.fedoraproject.org"]
ports:
- containerPort: 8080
volumeMounts: