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

Proper context usage in configurationpolicy

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Critical Critical
    • ACM 2.16.0
    • None
    • GRC
    • None
    • Quality / Stability / Reliability
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • None

      There are two major places we can use contexts better:

      1. In API calls, especially ones inside a reconcile
      2. Throughout controller code to have a consistent logger

      In addition, we need to ensure that the context passed to Reconcile has a reasonable deadline, to help prevent Reconcile calls from getting stuck. A deadline, plus ensuring all API calls use that context, may help protect us against issues like  https://issues.redhat.com/browse/ACM-24652 and https://issues.redhat.com/browse/ACM-21901 .

       

              Unassigned Unassigned
              jkulikau@redhat.com Justin Kulikauskas
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: