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

validation: when setting telemetry.type to Mixer, 2.0 control planes don't deploy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • maistra-2.0.7
    • operator
    • False
    • False
    • undefined

      Consider the following SMCP:

      apiVersion: maistra.io/v2
      kind: ServiceMeshControlPlane
      metadata:
        name: base
      spec:
        version: v2.0
        tracing:
          type: Mixer
      

      It is accepted by the ValidatingWebhook, but it never deploys. The operator logs the error "unknown tracer type":

      {"level":"info","ts":1629887831.374332,"logger":"servicemeshcontrolplane-controller","msg":"Reconciling ServiceMeshControlPlane","ServiceMeshControlPlane":"cp/base","Status":{"conditions":[{"type":"Installed","status":"False","reason":"ResourceCreated","message":"Installing mesh generation 1","lastTransitionTime":"2021-08-25T10:35:46Z"},{"type":"Reconciled","status":"False","reason":"ReconcileError","message":"Error rendering helm charts: error: Unknown tracer type: Mixer","lastTransitionTime":"2021-08-25T10:35:46Z"},{"type":"Ready","status":"False","reason":"ReconcileError","message":"Error rendering helm charts: error: Unknown tracer type: Mixer","lastTransitionTime":"2021-08-25T10:35:46Z"}]}}
      
      

      We should make sure the validation catches this.

            Unassigned Unassigned
            dgrimm@redhat.com Daniel Grimm
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: