Skip to content

update Quarkus to 4.0.1, Gradle to 9.9.3 and the dependencies - #19

Open
stplasim wants to merge 3 commits into
mainfrom
update-dependencies
Open

stplasim wants to merge 3 commits into
mainfrom
update-dependencies

Conversation

@stplasim

@stplasim stplasim commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Why

The operator was still on Quarkus 3.35.4. This brings it to Quarkus 4 and updates the other dependencies.

What changed

Dependency From To
Quarkus 3.35.4 4.0.1
Quarkus Operator SDK 7.x, from the Quarkus platform 8.0.0
Quarkiverse Helm 1.4.0 2.0.0
Gradle Wrapper 9.9.1 9.9.3
Axion Release Plugin 1.21.1 1.21.5
JSpecify 1.0.0 1.0.1
Error Prone 2.49.0 2.53.0
NullAway 0.13.4 0.14.4
AWS SDK (test) 2.55.3 2.59.16
Datafaker (test) 2.5.4 3.0.0

What Quarkus 4 needed:

  • Operator SDK BOM: the Quarkus platform has not published quarkus-operator-sdk-bom for 4.0.1. The build uses the BOM of the extension itself, io.quarkiverse.operatorsdk:quarkus-operator-sdk-bom:8.0.0, which is built for Quarkus 4.0.1 and brings Quarkiverse Helm 2.0.0.
  • Jackson 3: HelmTest imports from tools.jackson and uses asString().
  • List placeholders: the [~] placeholders in src/main/kubernetes/kubernetes.yml failed the build, because ~ is now read as a string. They are gone: since Quarkus Helm 1.5.0 (quarkiverse/quarkus-helm#549) an expression creates a missing field, so imagePullSecrets, volumes and volumeMounts are now quarkus.helm.expressions. src/main/helm/values.yaml stays for their [] defaults: a quarkus.helm.values entry creates a field only with a default value, and the Quarkus configuration cannot express an empty list. The generated chart is the same, apart from the position of imagePullSecrets.
  • Operator SDK 8.0.0 breaking changes: none of the others apply here. The build is on Java 25, sets no use-deprecated-v1-crd-generator, has no KubernetesClientObjectMapperCustomizer and no native build.
  • InformerEventSource no longer takes the context, so its type arguments are written out.

Also:

  • HelmTest no longer expects templates/clusterrolebinding.yaml.
  • The README documents the new RBAC with a namespace list: which permissions the operator then lacks, and how to bind the ClusterRoles of the controllers cluster-wide by hand. See the review notes.

Review notes

  • The RBAC of the generated Helm chart changes. The Quarkus Operator SDK no longer puts the unconditional ClusterRoleBindings of the controllers into the chart (quarkiverse/quarkus-operator-sdk#1393). Only the per-controller *-crd-role-binding.yaml templates are left. This came with Quarkus 3.40 already and is the same on 4.0.1.
    • Default, all namespaces: still a ClusterRoleBinding per controller, under a different name.
    • A namespace list: the operator gets RoleBindings in the listed namespaces only. Before, it was cluster-wide either way. We accept the new behaviour, as decided in the comments below, and the README documents it. The mode itself is not tested.
  • Once the Quarkus platform publishes its Operator SDK BOM for Quarkus 4, the build can go back to it, as in the PostgreSQL operator.
  • Not updated: the Garage image, AssertJ 4 (only a milestone exists) and Checkstyle, which backport the Error Prone setup and the OCI Helm chart from the PostgreSQL operator #20 removes.
Test scope
  • ./gradlew :operator:test passed locally on this branch with Quarkus 4.0.1: 203 tests, against K3s and a real Garage node.
  • Checkstyle did not run locally: the GitHub Packages registry answered 401 for the local credentials.

🤖 Generated with Claude Code

@stplasim

stplasim commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@ThoSap while upgrading to Quarkus 3.40 I ran into an RBAC change in the generated Helm chart. The postgresql-operator got the same change with 0.8.0.

What changed: the Quarkus Operator SDK no longer puts the unconditional ClusterRoleBindings of the controllers into the chart (quarkiverse/quarkus-operator-sdk#1393). Only the per-controller *-crd-role-binding.yaml templates are left, and they depend on the QUARKUS_OPERATOR_SDK_CONTROLLERS_<X>_NAMESPACES value.

Effect:

  • Default, all namespaces: still a ClusterRoleBinding per controller, only under a different name.
  • A namespace list: the operator now gets RoleBindings in the listed namespaces only. Before, it was cluster-wide either way.

postgresql-operator: the 0.7.0 chart still has <reconciler>-cluster-role-binding in clusterrolebinding.yaml, the 0.8.3 chart only has the crd-validating ones. It came in with the Quarkus upgrade in aboutbits/postgresql-operator#85. HelmTest did not catch it because the file still exists.

garage-operator: with a namespace list, the operator very likely stops working after this upgrade. Not tested yet, but from the code:

  • The duplicate checks list resources with inAnyNamespace(), for example GarageClusterService.requireNotManagedElsewhere(). A RoleBinding cannot authorize that.
  • The cleanup reads the cluster-scoped namespaces resource.
  • An adminSecretRef in a namespace outside the list is no longer readable.

Question: do we accept the new behaviour and document it, or do we add our own cluster-wide binding back to the chart? Whatever we pick should probably be the same in both operators.

@ThoSap

ThoSap commented Dec 4, 2026

Copy link
Copy Markdown
Member

Question: do we accept the new behaviour and document it, or do we add our own cluster-wide binding back to the chart? Whatever we pick should probably be the same in both operators.

We accept the new bahviour.

@stplasim stplasim changed the title Update Quarkus to 3.40.2, Gradle to 9.9.3 and the dependencies Update Quarkus to 4.0.1, Gradle to 9.9.3 and the dependencies Dec 4, 2026
The Quarkus platform has no Operator SDK BOM for Quarkus 4 yet, so the
build uses the BOM of the extension itself.

Since Quarkus 3.40, the Helm chart has no unconditional ClusterRoleBindings
for the controllers. With a namespace list, the operator gets RoleBindings
in the listed namespaces only. The README says how to keep the
cluster-wide permissions.
@stplasim
stplasim force-pushed the update-dependencies branch from 0dc0167 to 1c60e9c Compare December 4, 2026 12:12
@stplasim stplasim changed the title Update Quarkus to 4.0.1, Gradle to 9.9.3 and the dependencies update Quarkus to 4.0.1, Gradle to 9.9.3 and the dependencies Dec 4, 2026
@ThoSap

ThoSap commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

@stplasim see https://github.com/quarkiverse/quarkus-helm/releases/tag/1.5.0 which now allows us to create fields -> quarkiverse/quarkus-helm#549

So we can cleanup the workaround.

And for Quarkus 4.0.X+ we need https://github.com/quarkiverse/quarkus-helm/releases/tag/2.0.0

@ThoSap

ThoSap commented Dec 4, 2026

Copy link
Copy Markdown
Member

And see the breaking changes of https://github.com/quarkiverse/quarkus-operator-sdk/releases/tag/8.0.0 which is required for Quarkus 4.0.X+

Quarkus Helm 1.5.0 creates a missing field for an expression, so the
null placeholders in kubernetes.yml are no longer needed. The generated
chart is the same, apart from the position of imagePullSecrets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants