-
Bug
-
Resolution: Done
-
Minor
-
7.9.0.GA
-
None
-
OpenShift 4.5
BA Operator 7.9.0
RHBA Images 7.9.0 CR1
RHDM and RHPAM
-
False
-
False
-
CR1
-
-
-
-
-
-
CR2
-
Undefined
-
Workaround Exists
-
-
-
The operator crashes with:
E1022 13:06:33.599339 1 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference) goroutine 2308 [running]: k8s.io/apimachinery/pkg/util/runtime.logPanic(0x18b66c0, 0x2b0cf50) /tmp/scripts/builder/src/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:74 +0xa3 k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0) /tmp/scripts/builder/src/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:48 +0x82 panic(0x18b66c0, 0x2b0cf50) /usr/lib/golang/src/runtime/panic.go:679 +0x1b2 github.com/kiegroup/kie-cloud-operator/pkg/controller/kieapp/defaults.configureSSO(0xc0007af180, 0xc001632300, 0x0, 0x0) /tmp/scripts/builder/src/pkg/controller/kieapp/defaults/auth.go:69 +0xa0 github.com/kiegroup/kie-cloud-operator/pkg/controller/kieapp/defaults.configureAuth(0xc0007af180, 0xc001632300, 0x1, 0x1) /tmp/scripts/builder/src/pkg/controller/kieapp/defaults/auth.go:48 +0xe4 github.com/kiegroup/kie-cloud-operator/pkg/controller/kieapp/defaults.getEnvTemplate(0xc0007af180, 0xc0007af450, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /tmp/scripts/builder/src/pkg/controller/kieapp/defaults/defaults.go:253 +0x2fd
Looking at the source code, auth.go:
if cr.Status.Applied.Objects.Console.SSOClient != nil {
Therefore, the issue is happening when we don't configure the SSOClient in the console and the SSOClient is configured for the servers (kie servers).