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

opa-openshift matcher keys missing from cache key

XMLWordPrintable

    • Log Storage - Sprint 272, Log Storage - Sprint 273

      Description of problem:

      In https://github.com/observatorium/opa-openshift/pull/32 we introduced the flag that modified the matchers that are returned to obs/api. Now the problem is that OPA does caching but it wasn't taking into consideration the matcher because before that was static. Now that it changes depending on the request this makes it so that we have to also add it to the cache key otherwise you could ask for matcher for k8s_namespace_name but get kubernetes_namespace_name

      Version-Release number of selected component (if applicable):

      Logging 6.3.0

      How reproducible:

      Always

      Steps to Reproduce:

      Make request for one kubernetes_namespace_name and then quickly make one for k8s_namespace_name

      Actual results:

      Expected results:

      Additional info:

              jmarcal@redhat.com Joao Marcal
              jmarcal@redhat.com Joao Marcal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: