Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-61559

Secret controller logger has incorrect output

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.20.0
    • Windows Containers
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 0
    • None
    • None
    • None
    • None
    • WINC - Sprint 277, WINC - Sprint 278
    • 2
    • Done
    • Bug Fix
    • Hide
      * Previously, during secret reconciliations, secret change data was being added to the logs on each reconciliation loop. As a result, this secret change data was persisting, causing the logs to grow in size with unrelated data. With this fix, only the current secret change data is being logged, reducing the size and complexity of the logs. (link:https://issues.redhat.com/browse/OCPBUGS-61559[*OCPBUGS-61559*])
      Show
      * Previously, during secret reconciliations, secret change data was being added to the logs on each reconciliation loop. As a result, this secret change data was persisting, causing the logs to grow in size with unrelated data. With this fix, only the current secret change data is being logged, reducing the size and complexity of the logs. (link: https://issues.redhat.com/browse/OCPBUGS-61559 [* OCPBUGS-61559 *])
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-61122. The following is the description of the original issue:

      Description of problem:

          

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

          

      How reproducible:

          

      Steps to Reproduce:

          1. Cause multiple secret reconciliations
          2. Observe log output
      
          

      Actual results:

       Logs show multiple secret names:
        
       {"level":"info","ts":"2025-08-28T07:43:51Z","logger":"controllers.secret","msg":"updating secret","secret":{"name":"cloud-private-key","namespace":"openshift-windows-machine-config-operator"},"name":"windows-user-data"}

      Expected results:

      Only one secret name should be reported

      Additional info:

          

              rh-ee-ssoto Sebastian Soto
              rh-ee-ssoto Sebastian Soto
              None
              None
              Aharon Rasouli Aharon Rasouli
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: