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

Fix audit-logs container to properly handle SIGTERM

XMLWordPrintable

    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

          Audit-logs container was adjusted previously to handle SIGTERM using a trap and cleanup function. However due to behavior described here https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#container-v1-core the `$$` used to grab PID is not properly interpreted. This issue is to fix the script to handle this behavior correctly and make the cleanup be consistent with the changes to apply-bootstrap container for a similar ignored SIGTERM issue.

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

          

      How reproducible:

          

      Steps to Reproduce:

          1. Create a hypershift cluster with auditing enabled
          2. Delete apiserver pods and observe the script does not correctly handle sigterm.
          3.
          

      Actual results:

          

      Expected results:

          

      Additional info:

          

              Unassigned Unassigned
              jahayes@redhat.com Jared Hayes
              XiuJuan Wang XiuJuan Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: