You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~$ minikube version
minikube version: v1.31.1
commit: fd3f3801765d093a485d255043149f92ec0a695f
$ Mention java-operator-sdk version from pom.xml file
12:36:46.710 [Quarkus Main Thread] INFO i.q.o.runtime.OperatorProducer - Quarkus Java Operator SDK extension 6.1.0 (commit: f79f1b6 on branch: f79f1b6ffcb49e453b697f37aebc27b34d45482c) built on Thu May 25 00:28:33 CEST 2023
12:36:47.110 [Quarkus Main Thread] INFO i.javaoperatorsdk.operator.Operator - Operator SDK 4.3.5 (commit: 7341433) built on Tue Apr 04 10:16:12 CEST 2023 starting...
12:36:47.110 [Quarkus Main Thread] INFO i.javaoperatorsdk.operator.Operator - Client version: 6.6.2
$ java -version
openjdk version "20.0.1" 2023-04-18
OpenJDK Runtime Environment Homebrew (build 20.0.1)
OpenJDK 64-Bit Server VM Homebrew (build 20.0.1, mixed mode, sharing)
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
What did you do?
I had a custom operator running in the
default
namespace.I've create a
test
namespace and a custom resource, that is reconciled by the operator.Then I deleted the custom resource and the namespace directly after each other:
What did you expect to see?
I expected the operator to handle the cleanup and finalizer removal gracefully without errors.
What did you see instead? Under which circumstances?
I saw a
NullPointerException
in theReconciliationDispatcher
:Environment
Kubernetes cluster type:
Vanilla K8s running locally in Docker via:
$ Mention java-operator-sdk version from pom.xml file
$ java -version
$ kubectl version
Possible Solution
I'll provide a PR with a possible solution.
Additional context
I was only able to reproduce this once, but the stacktrace was clear enough to figure out a possible root cause.
The text was updated successfully, but these errors were encountered: