When deploying immutable kie-server to OpenShift v4.2.18 using the Operator method (Business Automation v1.4) with the following yaml,
apiVersion: app.kiegroup.org/v2 kind: KieApp metadata: name: rhdm-production-immutable annotations: consoleName: rhdm-production-immutable consoleTitle: DM Production Immutable consoleDesc: Deploys a DM Production Immutable environment spec: environment: rhdm-production-immutable objects: servers: - build: kieServerContainerDeployment: rhdm-kieserver-hellorules=org.openshift.quickstarts:rhdm-kieserver-hellorules:1.5.0-SNAPSHOT gitSource: uri: https://github.com/jboss-container-images/rhdm-7-openshift-image.git reference: master contextDir: quickstarts/hello-rules/hellorules
it fails with the following error in operator's pod.
{ "level": "error", "ts": "2020-05-14T07:02:44.430558521Z", "logger": "kieapp.controller", "msg": "Issue creating object. ImageStream.image.openshift.io \"rhdm-kieserver-rhel8@sha256\" is invalid: metadata.name: Invalid value: \"rhdm-kieserver-rhel8@sha256\": must match \"[a-z0-9]+(?:[._-][a-z0-9]+)*\"", "kind": "ImageStreamTag", "name": "rhdm-kieserver-rhel8@sha256:372d0de47fe02ecacca9f2b48f7ae0f7bfa81f0130eba4f3c6bd8d280c5a9fc1", "from": "registry.redhat.io/rhdm-7/rhdm-kieserver-rhel8@sha256:372d0de47fe02ecacca9f2b48f7ae0f7bfa81f0130eba4f3c6bd8d280c5a9fc1", "namespace": "ope2" } { "level": "error", "ts": "2020-05-14T07:02:44.430576416Z", "logger": "kieapp.controller", "msg": "ImageStream.image.openshift.io \"rhdm-kieserver-rhel8@sha256\" is invalid: metadata.name: Invalid value: \"rhdm-kieserver-rhel8@sha256\": must match \"[a-z0-9]+(?:[._-][a-z0-9]+)*\"" } { "level": "error", "ts": 1589439764.4427147, "logger": "controller-runtime.controller", "msg": "Reconciler error", "controller": "kieapp-controller", "request": "ope2/rhdm-production-immutable", "error": "BuildConfig.build.openshift.io \"rhdm-production-immutable-kieserver\" is invalid: spec.strategy.sourceStrategy.from.name: Invalid value: \"rhdm-kieserver-rhel8@sha256\": invalid name syntax", "stacktrace": "github.com/go-logr/zapr.(*zapLogger).Error\n\t/root/go/src/github.com/kiegroup/kie-cloud-operator/vendor/github.com/go-logr/zapr/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/root/go/src/github.com/kiegroup/kie-cloud-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:218\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/root/go/src/github.com/kiegroup/kie-cloud-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:192\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/root/go/src/github.com/kiegroup/kie-cloud-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:171\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/root/go/src/github.com/kiegroup/kie-cloud-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/root/go/src/github.com/kiegroup/kie-cloud-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/root/go/src/github.com/kiegroup/kie-cloud-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88" }
- is incorporated by
-
KIECLOUD-392 BuildConfig uses hash when leveraging ImageStream due to disconnected mode
- Closed