Skip to content

Commit

Permalink
LOG-2972: Update index templates to make labels/namespace_labels nested
Browse files Browse the repository at this point in the history
  • Loading branch information
jcantrill committed Aug 23, 2022
1 parent e84efa1 commit 0ebb88e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 140 deletions.
48 changes: 8 additions & 40 deletions docs/com.redhat.viaq-openshift-operations.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -585,57 +585,25 @@ type: text
The name of the container in Kubernetes.


==== kubernetes.annotations

'''
[[exported-fields-kubernetes.annotations]]
=== [big]*kubernetes.annotations Fields*
type: nested

Annotations associated with the OpenShift object


==== kubernetes.labels

'''
[[exported-fields-kubernetes.labels]]
=== [big]*kubernetes.labels Fields*

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.



==== kubernetes.labels.deployment

type: keyword

example: logging-kibana-3

The deployment associated with this Kubernetes object


==== kubernetes.labels.deploymentconfig

type: keyword

example: logging-kibana

The deploymentconfig associated with this Kubernetes object


==== kubernetes.labels.component

type: keyword

example: kibana

The component associated with this Kubernetes object
type: nested

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

==== kubernetes.labels.provider

type: keyword
==== kubernetes.namespace_labels

example: openshift
type: nested

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



Expand Down
48 changes: 8 additions & 40 deletions docs/com.redhat.viaq-openshift-project.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -585,57 +585,25 @@ type: text
The name of the container in Kubernetes.


==== kubernetes.annotations

'''
[[exported-fields-kubernetes.annotations]]
=== [big]*kubernetes.annotations Fields*
type: nested

Annotations associated with the OpenShift object


==== kubernetes.labels

'''
[[exported-fields-kubernetes.labels]]
=== [big]*kubernetes.labels Fields*

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.



==== kubernetes.labels.deployment

type: keyword

example: logging-kibana-3

The deployment associated with this Kubernetes object


==== kubernetes.labels.deploymentconfig

type: keyword

example: logging-kibana

The deploymentconfig associated with this Kubernetes object


==== kubernetes.labels.component

type: keyword

example: kibana

The component associated with this Kubernetes object
type: nested

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

==== kubernetes.labels.provider

type: keyword
==== kubernetes.namespace_labels

example: openshift
type: nested

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



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@
},
"kubernetes": {
"properties": {
"annotations": {
"type": "nested"
},
"container_name": {
"doc_values": false,
"fields": {
Expand Down Expand Up @@ -375,36 +378,7 @@
"type": "keyword"
},
"labels": {
"properties": {
"component": {
"doc_values": true,
"index": true,
"type": "keyword"
},
"deployment": {
"doc_values": true,
"index": true,
"type": "keyword"
},
"deploymentconfig": {
"doc_values": true,
"fields": {
"raw": {
"doc_values": true,
"ignore_above": 64,
"index": true,
"type": "keyword"
}
},
"index": true,
"type": "keyword"
},
"provider": {
"doc_values": true,
"index": true,
"type": "keyword"
}
}
"type": "nested"
},
"master_url": {
"doc_values": true,
Expand All @@ -417,6 +391,9 @@
"norms": true,
"type": "keyword"
},
"namespace_labels": {
"type": "nested"
},
"namespace_name": {
"doc_values": true,
"index": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@
},
"kubernetes": {
"properties": {
"annotations": {
"type": "nested"
},
"container_name": {
"doc_values": false,
"fields": {
Expand Down Expand Up @@ -374,36 +377,7 @@
"type": "keyword"
},
"labels": {
"properties": {
"component": {
"doc_values": true,
"index": true,
"type": "keyword"
},
"deployment": {
"doc_values": true,
"index": true,
"type": "keyword"
},
"deploymentconfig": {
"doc_values": true,
"fields": {
"raw": {
"doc_values": true,
"ignore_above": 64,
"index": true,
"type": "keyword"
}
},
"index": true,
"type": "keyword"
},
"provider": {
"doc_values": true,
"index": true,
"type": "keyword"
}
}
"type": "nested"
},
"master_url": {
"doc_values": true,
Expand All @@ -416,6 +390,9 @@
"norms": true,
"type": "keyword"
},
"namespace_labels": {
"type": "nested"
},
"namespace_name": {
"doc_values": true,
"index": true,
Expand Down

0 comments on commit 0ebb88e

Please sign in to comment.