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

Invalid image tag for native image

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.3.0.Final
    • None
    • Operator
    • None
    • False
    • False
    • Undefined
    • Hide

      Deploy this CR:

      apiVersion: app.kiegroup.org/v1beta1
      kind: KogitoBuild
      metadata:
        name: process-quarkus-example
      spec:
        gitSource:
          contextDir: process-quarkus-example
          reference: master
          uri: 'https://github.com/kiegroup/kogito-examples'
        native: true
        runtime: quarkus
        type: RemoteSource
      

      Check Kogito operator log

      Show
      Deploy this CR: apiVersion: app.kiegroup.org/v1beta1 kind: KogitoBuild metadata: name: process-quarkus-example spec: gitSource: contextDir: process-quarkus-example reference: master uri: 'https://github.com/kiegroup/kogito-examples' native: true runtime: quarkus type: RemoteSource Check Kogito operator log
    • ---
    • ---

      If user tries to run S2I build with native enabled then native image stream creation causes fail in operator with error:

      2021-02-05T12:44:27.467Z	ERROR	controller	Reconciler error	{"reconcilerGroup": "app.kiegroup.org", "reconcilerKind": "KogitoBuild", "controller": "kogitobuild", "name": "process-quarkus-example", "namespace": "karel-local-cucumber-c8ad", "error": "Error while creating Kogito ImageStreams: ImageStream.image.openshift.io \"custom-Kogito-runtime-native-nightly\" is invalid: [metadata.name: Invalid value: \"custom-Kogito-runtime-native-nightly\": must match \"[a-z0-9]+(?:[._-][a-z0-9]+)*\", spec.tags[latest].from.name: Invalid value: \"quay.io/kiegroup/Kogito-runtime-native-nightly:latest\": repository name must be lowercase] "}
      github.com/go-logr/zapr.(*zapLogger).Error
      	/go/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
      	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:246
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
      	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:218
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker
      	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:197
      k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1
      	/go/pkg/mod/k8s.io/apimachinery@v0.18.8/pkg/util/wait/wait.go:155
      k8s.io/apimachinery/pkg/util/wait.BackoffUntil
      	/go/pkg/mod/k8s.io/apimachinery@v0.18.8/pkg/util/wait/wait.go:156
      k8s.io/apimachinery/pkg/util/wait.JitterUntil
      	/go/pkg/mod/k8s.io/apimachinery@v0.18.8/pkg/util/wait/wait.go:133
      k8s.io/apimachinery/pkg/util/wait.Until
      	/go/pkg/mod/k8s.io/apimachinery@v0.18.8/pkg/util/wait/wait.go:90
      

              ksuta Karel Suta
              ksuta Karel Suta
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: