Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-7402

Stop calling the discovery client on every lookup call in hub templates

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • GRC
    • GRC Sprint 2023-17, GRC Sprint 2023-18
    • No

      The Policy Propagator's use of go-template-utils leads to the discovery client being called on every `lookup` template function. This is very expensive and is not needed. A similar approach should be taken to the dependency watch library:
      https://github.com/stolostron/kubernetes-dependency-watches/pull/8

              mprahl Matthew Prahl
              mprahl Matthew Prahl
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: