Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-12355

Unable to upgrade from 1.8 to 1.9.100-20191202 because of change in syndesis CR

XMLWordPrintable

      When deploying a 1.8 community version with some addon enabled, for example todo, the enabled value must be quoted:

      spec:
        addons:
          todo:
            enabled: "true"
      

      Then, when trying to deploy a 1.9.x version operator, it doesn't start the upgrade process, because it expects the field to be treated as boolean, so without quotes:

      {"level":"info","ts":1575285948.8660946,"logger":"cmd","msg":"Go Version: go1.12"}
      {"level":"info","ts":1575285948.866179,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
      {"level":"info","ts":1575285948.8661835,"logger":"cmd","msg":"Version of operator-sdk: v0.10.0+git"}
      {"level":"info","ts":1575285948.8661864,"logger":"cmd","msg":"Syndesis Operator Version: 0.0.1"}
      {"level":"info","ts":1575285948.8689482,"logger":"leader","msg":"Trying to become the leader."}
      {"level":"info","ts":1575285948.984798,"logger":"leader","msg":"No pre-existing lock was found."}
      {"level":"info","ts":1575285948.990997,"logger":"leader","msg":"Became the leader."}
      {"level":"info","ts":1575285949.0315266,"logger":"cmd","msg":"registering resource schemes."}
      {"level":"info","ts":1575285949.0336852,"logger":"kubebuilder.controller","msg":"Starting EventSource","controller":"syndesis-controller","source":"kind source: /, Kind="}
      E1202 11:25:49.105701       1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:126: Failed to list *v1alpha1.Syndesis: v1alpha1.SyndesisList.Items: []v1alpha1.Syndesis: v1alpha1.Syndesis.Spec: v1alpha1.SyndesisSpec.Addons: v1alpha1.AddonsSpec.Todo: v1alpha1.AddonSpec.Enabled: ReadBool: expect t or f, but found ", error found in #10 byte of ...|enabled":"true"}},"c|..., bigger context ...|163e748b89"},"spec":{"addons":{"todo":{"enabled":"true"}},"components":{"db":{"resources":{}},"grafa|...
      
      

            lgarciaac Luis GarcĂ­a Acosta
            avano@redhat.com Andrej Vano
            Andrej Vano Andrej Vano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: