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
{{ message }}
Repository navigation
Operator helm chart: add option to set operator pod affinity #55262
If we could bump io.quarkiverse.helm:quarkus-helm to 1.5.0 this would become trivial with quarkus.helm.expressions being able to create missing fields.
For fields the generated Deployment doesn't have, a partial Deployment in operator/src/main/kubernetes/kubernetes.yml adds affinity: {} and nodeSelector: {kubernetes.io/os: linux}. Quarkus merges it, so they also show up in the kubectl manifests, and expressions plus quarkus.helm.values-schema types turn them into operator.affinity / operator.nodeSelector values. operator.tolerations is rendered from the same expression, only when set. (An empty nodeSelector: {} or tolerations: [] placeholder gets dropped by the merge, hence that shape.)
helm lint --strict passes; with defaults the Deployment renders the same apart from affinity: {} and the node selector.
If that direction is OK for you, I'll open a PR for both. quarkus-helm 1.5.0 (quarkiverse/quarkus-helm#549) would allow creating those fields without placeholders, so it could be simplified once the BOM ships it.
Activity
linasdev commentedon Nov 17, 2026
If we could bump
io.quarkiverse.helm:quarkus-helmto1.5.0this would become trivial with quarkus.helm.expressions being able to create missing fields.DrFaust92 commentedon Nov 25, 2026
I'd like to work on this, together with #54334 if that's fine, since both need the same thing: values the generated chart can't express today.
Update: this works with the quarkus-helm 1.4.1 that Keycloak already gets from the platform BOM, no version bump needed. I prototyped it locally:
quarkus.helm.expressionsreplace an existing path, soresourcesbecomes{{- toYaml .Values.operator.resources | nindent 12 }}. Same defaults, and--set operator.resources.limits.cpu=nullnow drops the CPU limit (Operator Helm chart: a resource request or limit cannot be removed (e.g. the CPU limit) #54334).operator/src/main/kubernetes/kubernetes.ymladdsaffinity: {}andnodeSelector: {kubernetes.io/os: linux}. Quarkus merges it, so they also show up in the kubectl manifests, and expressions plusquarkus.helm.values-schematypes turn them intooperator.affinity/operator.nodeSelectorvalues.operator.tolerationsis rendered from the same expression, only when set. (An emptynodeSelector: {}ortolerations: []placeholder gets dropped by the merge, hence that shape.)helm lint --strictpasses; with defaults the Deployment renders the same apart fromaffinity: {}and the node selector.If that direction is OK for you, I'll open a PR for both. quarkus-helm 1.5.0 (quarkiverse/quarkus-helm#549) would allow creating those fields without placeholders, so it could be simplified once the BOM ships it.
Render the operator Helm chart's resources and scheduling from values