Skip to content

Commit 195d475

Browse files
committed
need separate templates for .operations and project.
1 parent 5685b58 commit 195d475

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

templates/openshift/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
TEMPLATE_NAME = com.redhat.viaq-openshift
2-
31
.PHONY: all clean
42

53
all:
6-
python ../../scripts/generate_template.py template.yml ../../namespaces/
4+
python ../../scripts/generate_template.py template-project.yml ../../namespaces/
5+
python ../../scripts/generate_template.py template-operations.yml ../../namespaces/
76

87
clean:
98
rm *.template.json
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
skeleton_path: ../skeleton.json
2+
skeleton_index_pattern_path: ../skeleton-index-pattern.json
3+
4+
elasticsearch_template:
5+
name: com.redhat.viaq-openshift-operations
6+
index_pattern: ".operations.*"
7+
order: 10
8+
9+
namespaces:
10+
- rsyslog.yml
11+
- systemd.yml
12+
- kubernetes.yml
13+
- docker.yml
14+
- pipeline_metadata.yml
15+
- ovirt.yml
16+
- aushape.yml
17+
- tlog.yml
18+
# - openshift/app_log.yml

templates/openshift/template.yml renamed to templates/openshift/template-project.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ skeleton_path: ../skeleton.json
22
skeleton_index_pattern_path: ../skeleton-index-pattern.json
33

44
elasticsearch_template:
5-
name: com.redhat.viaq-openshift
6-
index_pattern: "*"
5+
name: com.redhat.viaq-openshift-project
6+
index_pattern: "project.*"
77
order: 10
88

99
namespaces:

0 commit comments

Comments
 (0)