The results of the following PR (tomcat example): https://github.com/java-operator-sdk/java-operator-sdk/pull/659 should be added also to v2. This might not be trivial to do because of recent changes).