mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
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:
@@ -1 +0,0 @@
|
||||
{% macro load_file(filename) %}{% include filename %}{%- endmacro -%}
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user