Uploaded image for project: 'Maistra'
  1. Maistra
  2. MAISTRA-453

Sidecar not injected if pods created immediately after project

    Details

    • Type: Bug
    • Status: New (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: operator
    • Labels:
      None

      Description

      If you create a new project and deploy pods immediately (e.g. in shell script), the sidecar doesn't get injected.

      This is caused by a race between the operator adding the maistra.io/member-of label to the namespace and the creation of the pods. The operator usually loses the race, requiring the pods to be deleted and recreated.

      The operator should install a mutating webhook for namespaces that will add the label synchronously during the creation of the namespace. The webhook policy can be configured not to fail if the webhook isn't accessible.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mluksa Marko Luksa
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: