Skip to content

Commit 7c32a47

Browse files
committed
xAdding conditional Log Detective variables to configuration templates
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
1 parent 9c26fd5 commit 7c32a47

File tree

5 files changed

+23
-0
lines changed

5 files changed

+23
-0
lines changed

secrets/packit/prod/packit-service.yaml.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2370,3 +2370,10 @@ enabled_projects_for_fedora_ci:
23702370
- https://src.fedoraproject.org/rpms/yt-dlp
23712371
- https://src.fedoraproject.org/rpms/zathura-pdf-mupdf
23722372
- https://src.fedoraproject.org/rpms/zeal
2373+
2374+
# Log Detective interface server URL and token
2375+
{% if logdetective_enabled %}
2376+
logdetective_enabled: {{ logdetective_enabled }}
2377+
logdetective_url: {{ logdetective_url }}
2378+
logdetective_token: {{ logdetective_token }}
2379+
{% endif %}

secrets/packit/stg/packit-service.yaml.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,10 @@ enabled_projects_for_fedora_ci:
154154
- https://src.fedoraproject.org/rpms/python-scikit-build-core
155155
- https://src.fedoraproject.org/rpms/python-specfile
156156
- https://src.fedoraproject.org/rpms/spglib
157+
158+
# Log Detective interface server URL and token
159+
{% if logdetective_enabled %}
160+
logdetective_enabled: {{ logdetective_enabled }}
161+
logdetective_url: {{ logdetective_url }}
162+
logdetective_token: {{ logdetective_token }}
163+
{% endif %}

vars/packit/dev_template.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,6 @@ push_dev_images: true
8181
distgit_url: https://src.stg.fedoraproject.org/
8282

8383
pushgateway_address: ""
84+
85+
# Log Detective is disabled by default
86+
logdetective_enabled: false

vars/packit/prod_template.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,6 @@ tokman:
100100
limits:
101101
memory: "160Mi"
102102
cpu: "50m"
103+
104+
# Log Detective is disabled by default
105+
logdetective_enabled: false

vars/packit/stg_template.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,6 @@ workers_all_tasks: 0
8787
workers_short_running: 1
8888
workers_long_running: 1
8989
# pushgateway_address: http://pushgateway
90+
91+
# Log Detective is disabled by default
92+
logdetective_enabled: false

0 commit comments

Comments
 (0)