Skip to content

Delete app label from Deployment

Vladimir Zemtsov requested to merge vzemtsov/gitlab-agent:main into main

Delete label with name app from Deployment

Why? If you try send logs from gitlab-agent (in kubernetes) to ElasticSearch, you have mapping in Elastic Index like:

kubernetes:
  pod_labels:
    app:
      kubernetes:
        io/version: (string type)
        io/name: (string type)

In this case kubernetes.labels.app - has object type

But if you have label with name app, you have mapping struct like:

kubernetes:
  pod_labels:
    app:
      kubernetes:
        io/version: (string type)
        io/name: (string type)
    app: (string type)

in this case app has 2 types - object and string. But it's imposible and Elastic response with error:

dropping the request. reason="error type: illegal_argument_exception, reason: can't merge a non object mapping [kubernetes.pod_labels.app] with an object mapping"
Edited by Vladimir Zemtsov

Merge request reports

Loading