Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-680

Make sure ovn-operator doesn't call bash -c unnecessarily as entry points

XMLWordPrintable

    • Networking; Neutron

      This is generally discouraged because of the waste of a pid (and its memory). Entry points should directly call to binaries.

       

      As for the time of writing, the following cases of bash calls are present in the operator code:

       

      pkg/ovncontroller/daemonset.go:                                                         "/bin/bash", "-c",
      pkg/ovndbcluster/statefulset.go:        args := []string{"--single-child", "--", "/bin/bash", "-c"}

            rodolfo_alonso Rodolfo Alonso
            ihrachys Ihar Hrachyshka
            rhos-dfg-networking-squad-neutron
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: