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

Operator generates "Object 'Kind' is missing in 'null'" error messages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • maistra-2.0.3
    • None
    • None
    • None
    • Sprint 2

      Note the information below references the 2.1 configuration, not 2.0, however the change and test is being pulled across to the 2.0 stream for completeness.

       

      The error and reproducer are listed below. We might want to check the 2.0 version of the operator to ensure it doesn't suffer from the same issue.

      Error
      {
          "level": "error",
          "ts": 1616691655.0895722,
          "logger": "controller-runtime.controller",
          "msg": "Reconciler error",
          "controller": "servicemeshcontrolplane-controller",
          "request": "ossm/basic",
          "error": "Object 'Kind' is missing in 'null'",
          "errorCauses": [
              {
                  "error": "Object 'Kind' is missing in 'null'"
              },
              {
                  "error": "Object 'Kind' is missing in 'null'"
              }
          ],
          "stacktrace":
      "github.com/go-logr/zapr.(*zapLogger).Error
          /builddir/build/BUILD/servicemesh-operator-2.1.0/vendor/github.com/go-logr/zapr/zapr.go: 128
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
          /builddir/build/BUILD/servicemesh-operator-2.1.0/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go: 258
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
          /builddir/build/BUILD/servicemesh-operator-2.1.0/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go: 232
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker
          /builddir/build/BUILD/servicemesh-operator-2.1.0/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go: 211
      k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1
          /builddir/build/BUILD/servicemesh-operator-2.1.0/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go: 155
      k8s.io/apimachinery/pkg/util/wait.BackoffUntil
          /builddir/build/BUILD/servicemesh-operator-2.1.0/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go: 156
      k8s.io/apimachinery/pkg/util/wait.JitterUntil
          /builddir/build/BUILD/servicemesh-operator-2.1.0/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go: 133
      k8s.io/apimachinery/pkg/util/wait.Until
          /builddir/build/BUILD/servicemesh-operator-2.1.0/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go: 90"
      }
      
      Reproducer
      apiVersion: maistra.io/v2
      kind: ServiceMeshControlPlane
      metadata: 
        name: basic
        namespace: ossm
      spec: 
        runtime: 
          defaults: 
            container: 
              imagePullPolicy: Always
              imageRegistry: quay.io/bison
              imageTag: dev
          components: 
            pilot: 
              container: 
                imagePullPolicy: Always
                imageRegistry: quay.io/bison
                imageName: pilot
                imageTag: dev
        addons: 
          grafana: 
            enabled: false
          jaeger: 
            install: 
              storage: 
                type: Memory
          kiali: 
            enabled: false
          prometheus: 
            enabled: false
        # policy: 
        #   type: Istiod
        profiles: 
        - default
        # telemetry: 
        #   type: Istiod
        tracing: 
          sampling: 10000
          type: Jaeger
        version: v2.1
      

            rcernich1 Rob Cernich
            rcernich1 Rob Cernich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: