Skip to content

Commit 2d1e002

Browse files
Merge pull request #2260 from jcantrill/log2972
LOG-2972: Update index templates to make labels/namespace_labels nested
2 parents e84efa1 + 0ebb88e commit 2d1e002

File tree

4 files changed

+30
-140
lines changed

4 files changed

+30
-140
lines changed

docs/com.redhat.viaq-openshift-operations.asciidoc

Lines changed: 8 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -585,57 +585,25 @@ type: text
585585
The name of the container in Kubernetes.
586586

587587

588+
==== kubernetes.annotations
588589

589-
'''
590-
[[exported-fields-kubernetes.annotations]]
591-
=== [big]*kubernetes.annotations Fields*
590+
type: nested
592591

593592
Annotations associated with the OpenShift object
594593

595594

595+
==== kubernetes.labels
596596

597-
'''
598-
[[exported-fields-kubernetes.labels]]
599-
=== [big]*kubernetes.labels Fields*
600-
601-
Labels attached to the OpenShift object Each label name is a subfield of labels field. Each label name is de-dotted: dots in the name are replaced with underscores.
602-
603-
604-
605-
==== kubernetes.labels.deployment
606-
607-
type: keyword
608-
609-
example: logging-kibana-3
610-
611-
The deployment associated with this Kubernetes object
612-
613-
614-
==== kubernetes.labels.deploymentconfig
615-
616-
type: keyword
617-
618-
example: logging-kibana
619-
620-
The deploymentconfig associated with this Kubernetes object
621-
622-
623-
==== kubernetes.labels.component
624-
625-
type: keyword
626-
627-
example: kibana
628-
629-
The component associated with this Kubernetes object
597+
type: nested
630598

599+
Labels attached to the OpenShift object Each label name is a subfield of labels field.
631600

632-
==== kubernetes.labels.provider
633601

634-
type: keyword
602+
==== kubernetes.namespace_labels
635603

636-
example: openshift
604+
type: nested
637605

638-
The provider associated with this Kubernetes object
606+
Labels attached to the namespace in which the openshift object is deployed Each label name is a subfield of labels field.
639607

640608

641609

docs/com.redhat.viaq-openshift-project.asciidoc

Lines changed: 8 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -585,57 +585,25 @@ type: text
585585
The name of the container in Kubernetes.
586586

587587

588+
==== kubernetes.annotations
588589

589-
'''
590-
[[exported-fields-kubernetes.annotations]]
591-
=== [big]*kubernetes.annotations Fields*
590+
type: nested
592591

593592
Annotations associated with the OpenShift object
594593

595594

595+
==== kubernetes.labels
596596

597-
'''
598-
[[exported-fields-kubernetes.labels]]
599-
=== [big]*kubernetes.labels Fields*
600-
601-
Labels attached to the OpenShift object Each label name is a subfield of labels field. Each label name is de-dotted: dots in the name are replaced with underscores.
602-
603-
604-
605-
==== kubernetes.labels.deployment
606-
607-
type: keyword
608-
609-
example: logging-kibana-3
610-
611-
The deployment associated with this Kubernetes object
612-
613-
614-
==== kubernetes.labels.deploymentconfig
615-
616-
type: keyword
617-
618-
example: logging-kibana
619-
620-
The deploymentconfig associated with this Kubernetes object
621-
622-
623-
==== kubernetes.labels.component
624-
625-
type: keyword
626-
627-
example: kibana
628-
629-
The component associated with this Kubernetes object
597+
type: nested
630598

599+
Labels attached to the OpenShift object Each label name is a subfield of labels field.
631600

632-
==== kubernetes.labels.provider
633601

634-
type: keyword
602+
==== kubernetes.namespace_labels
635603

636-
example: openshift
604+
type: nested
637605

638-
The provider associated with this Kubernetes object
606+
Labels attached to the namespace in which the openshift object is deployed Each label name is a subfield of labels field.
639607

640608

641609

elasticsearch/index_templates/com.redhat.viaq-openshift-operations.template.json

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@
250250
},
251251
"kubernetes": {
252252
"properties": {
253+
"annotations": {
254+
"type": "nested"
255+
},
253256
"container_name": {
254257
"doc_values": false,
255258
"fields": {
@@ -375,36 +378,7 @@
375378
"type": "keyword"
376379
},
377380
"labels": {
378-
"properties": {
379-
"component": {
380-
"doc_values": true,
381-
"index": true,
382-
"type": "keyword"
383-
},
384-
"deployment": {
385-
"doc_values": true,
386-
"index": true,
387-
"type": "keyword"
388-
},
389-
"deploymentconfig": {
390-
"doc_values": true,
391-
"fields": {
392-
"raw": {
393-
"doc_values": true,
394-
"ignore_above": 64,
395-
"index": true,
396-
"type": "keyword"
397-
}
398-
},
399-
"index": true,
400-
"type": "keyword"
401-
},
402-
"provider": {
403-
"doc_values": true,
404-
"index": true,
405-
"type": "keyword"
406-
}
407-
}
381+
"type": "nested"
408382
},
409383
"master_url": {
410384
"doc_values": true,
@@ -417,6 +391,9 @@
417391
"norms": true,
418392
"type": "keyword"
419393
},
394+
"namespace_labels": {
395+
"type": "nested"
396+
},
420397
"namespace_name": {
421398
"doc_values": true,
422399
"index": true,

elasticsearch/index_templates/com.redhat.viaq-openshift-project.template.json

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@
249249
},
250250
"kubernetes": {
251251
"properties": {
252+
"annotations": {
253+
"type": "nested"
254+
},
252255
"container_name": {
253256
"doc_values": false,
254257
"fields": {
@@ -374,36 +377,7 @@
374377
"type": "keyword"
375378
},
376379
"labels": {
377-
"properties": {
378-
"component": {
379-
"doc_values": true,
380-
"index": true,
381-
"type": "keyword"
382-
},
383-
"deployment": {
384-
"doc_values": true,
385-
"index": true,
386-
"type": "keyword"
387-
},
388-
"deploymentconfig": {
389-
"doc_values": true,
390-
"fields": {
391-
"raw": {
392-
"doc_values": true,
393-
"ignore_above": 64,
394-
"index": true,
395-
"type": "keyword"
396-
}
397-
},
398-
"index": true,
399-
"type": "keyword"
400-
},
401-
"provider": {
402-
"doc_values": true,
403-
"index": true,
404-
"type": "keyword"
405-
}
406-
}
380+
"type": "nested"
407381
},
408382
"master_url": {
409383
"doc_values": true,
@@ -416,6 +390,9 @@
416390
"norms": true,
417391
"type": "keyword"
418392
},
393+
"namespace_labels": {
394+
"type": "nested"
395+
},
419396
"namespace_name": {
420397
"doc_values": true,
421398
"index": true,

0 commit comments

Comments
 (0)