Repository navigation
Conversation
|
@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 Effect:
postgresql-operator: the 0.7.0 chart still has garage-operator: with a namespace list, the operator very likely stops working after this upgrade. Not tested yet, but from the code:
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. |
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.
0dc0167 to
1c60e9c
Compare
|
@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 |
|
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.
Why
The operator was still on Quarkus 3.35.4. This brings it to Quarkus 4 and updates the other dependencies.
What changed
What Quarkus 4 needed:
quarkus-operator-sdk-bomfor 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.HelmTestimports fromtools.jacksonand usesasString().[~]placeholders insrc/main/kubernetes/kubernetes.ymlfailed 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, soimagePullSecrets,volumesandvolumeMountsare nowquarkus.helm.expressions.src/main/helm/values.yamlstays for their[]defaults: aquarkus.helm.valuesentry 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 ofimagePullSecrets.use-deprecated-v1-crd-generator, has noKubernetesClientObjectMapperCustomizerand no native build.InformerEventSourceno longer takes the context, so its type arguments are written out.Also:
HelmTestno longer expectstemplates/clusterrolebinding.yaml.Review notes
*-crd-role-binding.yamltemplates are left. This came with Quarkus 3.40 already and is the same on 4.0.1.Test scope
./gradlew :operator:testpassed locally on this branch with Quarkus 4.0.1: 203 tests, against K3s and a real Garage node.🤖 Generated with Claude Code