Uploaded image for project: 'Multiple Architecture Enablement'
  1. Multiple Architecture Enablement
  2. MULTIARCH-5642

Removal of unprocessed Enoexecevents on uninstall of MTO

XMLWordPrintable

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

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In the ENoExecEvent reconciler it is possible that an error could occur which would result in the ENoExecEvent CR to not be deleted. During the uninstall/disabling of the execFormatErrorMontior plugin these left over CR will prevent the removal of the deployment. 

      When an ENoExecEvent fails to reconcile, it will now be labeled as an error, and a Kubernetes Event will be created on the source pod for visibility. The cleanup logic for the execFormatErrorMontior will now bypass these errored CRs when the plugin is disabled, ensuring a clean shutdown. A full operator uninstall will remove all remaining ENoExecEvent resources, regardless of their state.

      https://github.com/outrigger-project/multiarch-tuning-operator/blob/7cddb5b12b6be11516d662971cd1dee837501b9b/controllers/enoexecevent/handler/enoexecevent_controller.go#L66

              tzivkovi@redhat.com Tori Zivkovic
              tzivkovi@redhat.com Tori Zivkovic
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: