Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-493

Kogito CLI fails to create custom CRs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 0.6.0
    • None
    • Operator
    • Operator SDK controller-runtime client

    • High
    • Hide

      Deploy a new Kogito service with the kogito CLI in the master branch:

      kogito deploy example https://github.com/kiegroup/kogito-examples --context-dir jbpm-quarkus-example -p kogito -v
      
      Show
      Deploy a new Kogito service with the kogito CLI in the master branch: kogito deploy example https: //github.com/kiegroup/kogito-examples --context-dir jbpm-quarkus-example -p kogito -v
    • 2019 Week 41-43 (from Okt 7), 2019 Week 44-46 (from Okt 28)

      After upgrading to Operator SDK 0.11.0, the Kogito CLI can't create custom resources anymore.

      While trying to deploy an app, the following error occurs:

      Error while creating a new KogitoApp in the context: v1.CreateOptions is not suitable for converting to "app.kiegroup.org/v1alpha1" in scheme "pkg/runtime/scheme.go:101"
      

      The Kogito CLI should rely on client-go instead of customizing the same client used by the operator:
      https://github.com/kubernetes/client-go/blob/master/examples/out-of-cluster-client-configuration/main.go

              rhn-support-zanini Ricardo Zanini
              rhn-support-zanini Ricardo Zanini
              Tristan Radisson Tristan Radisson (Inactive)
              Tristan Radisson Tristan Radisson (Inactive)
              Xieshen Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: