Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-2388

Preserve k8s Common Labels



    • Preserve K8s Common Labels
    • False
    • False
    • Green
    • NEW
    • To Do
    • OBSDA-150 - Do not flatten pod labels that are in an Allow List
    • Impediment
    • OBSDA-150Do not flatten pod labels that are in an Allow List
    • 100
    • 100% 100%


      What is the problem that your customer is facing?

      As an operator we would like to enable our customers to filter the operator logs based on some of the pod labels.

      These are the labels we would like to be parsed as separate fields and not flattened:

      • app_kubernetes_io/component
      • app_kubernetes_io/managed-by
      • app_kubernetes_io/part-of
      • app_kubernetes_io/version

        What is the business impact, if any, if this request will not be made

      Without this feature it is very hard to effectively filter the operators logs and its sub components.

      What are your expectations for this feature

      This is an important feature for operators and we would like to have it as soon as possible. 
      We had some internal discussions and it seems that adding an allow list with the specific labels would be the best and most secure way of implementing this.

      Have you done this before and/or outside of support and if yes, how?

      <<Please add any information on how you have done that so far or any ideas
      you'd like to share with us.>>

      Acceptance Criteria

      • Verify all labels are included in "kubernetes.labels" for non-Elasticsearch output types
      • Verify only kubernetes common labels are included in "kubernetes.labels" for Elasticsearch output types
      • Verify when using fluentd "kubernetes.flatten_labels" with all labels exists for all output types
      • Verify labels are presented as-is with no de dotting


        Issue Links



              jcantril@redhat.com Jeffrey Cantrill
              rhn-engineering-aconway Alan Conway
              Giriyamma Karagere Ramaswamy Giriyamma Karagere Ramaswamy (Inactive)
              0 Vote for this issue
              4 Start watching this issue