Skip to content

fix: align the Kubernetes ConfigMap with the Spring Boot 4 properties - #2158

Merged
netomi merged 1 commit into
mainfrom
fix/k8s-configmap-spring-boot-4
Sep 4, 2026
Merged

fix: align the Kubernetes ConfigMap with the Spring Boot 4 properties#2158
netomi merged 1 commit into
mainfrom
fix/k8s-configmap-spring-boot-4

Conversation

@netomi

@netomi netomi commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #2157

deploy/kubernetes/ was added in #1792, after the other deployment descriptors, and the two commits that realigned those afterwards left it behind: 46459f4 (Spring Boot 4 base configuration) and fbdd4bd (springdoc alignment) both updated deploy/docker, deploy/openshift and server/src/dev but skipped deploy/kubernetes.

Three keys in the ConfigMap therefore no longer bind to anything:

Key Before After
jobrunr block org.jobrunr.* jobrunr.*
spring.autoconfigure.exclude org.springframework.boot.actuate.autoconfigure.tracing.zipkin.ZipkinAutoConfiguration org.springframework.boot.zipkin.autoconfigure.ZipkinAutoConfiguration
spring.thymeleaf enabled: false check-template-location: false
  • JobRunr dropped the org. prefix in version 7 — jobrunr-spring-boot-4-starter:8.6.1 declares the group name jobrunr in its spring-configuration-metadata.json. Nothing bound, so both the job scheduler and the background job server silently ran with their defaults, which is what @nh60211as observed in Kubernetes Deployment Example Seems Outdated #2157.
  • ZipkinAutoConfiguration moved packages in Spring Boot 4; spring-boot-zipkin:4.0.8 only carries org/springframework/boot/zipkin/autoconfigure/ZipkinAutoConfiguration.class, so the exclude matched no class.
  • spring.thymeleaf.enabled is gone; check-template-location is what suppresses the missing template location now.

The springdoc keys the other two deployments already carry are added as well, so the swagger-ui served from the Kubernetes example behaves the same.

After the change the embedded application.yml differs from deploy/openshift/application.yml only in the intentional Kubernetes-specific bits: secret-backed DB credentials, commented-out GitHub OAuth, management.health.redis.enabled: false (no Redis in this example and bucket4j is off), and no ovsx.registry.version placeholder since the image tag carries it.

🤖 Generated with Claude Code

The Kubernetes manifests were added after the other deployment
descriptors, and the two commits that realigned those afterwards left
them behind: 46459f4 (Spring Boot 4 base configuration) and fbdd4bd
(springdoc alignment) both skipped deploy/kubernetes.

Three of the keys therefore no longer bind to anything:

- JobRunr dropped the org. prefix in version 7, so the whole block under
  org.jobrunr was ignored and both the job scheduler and the background
  job server silently ran with their defaults.
- ZipkinAutoConfiguration moved to org.springframework.boot.zipkin
  .autoconfigure in Spring Boot 4, so the exclude no longer matched a
  class.
- spring.thymeleaf.enabled is gone; check-template-location is what
  suppresses the missing template location now.

Also add the springdoc keys the other deployments already carry, so the
swagger-ui served from the Kubernetes example behaves the same.

Fixes #2157

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The updated Kubernetes ConfigMap properties match the repo’s existing Spring Boot 4 configuration patterns (docker/openshift/dev) and resolve the reported non-binding keys without introducing new risk.

Pull request overview

This PR updates the Kubernetes deployment example’s ConfigMap application configuration to match the Spring Boot 4 / springdoc / JobRunr property keys already used by the other deployment descriptors and server/src/dev, fixing config keys that no longer bind.

Changes:

  • Update spring.autoconfigure.exclude to the Spring Boot 4 ZipkinAutoConfiguration class location.
  • Replace deprecated spring.thymeleaf.enabled with spring.thymeleaf.check-template-location.
  • Align jobrunr.* and add the missing springdoc.* keys so the Kubernetes example matches other deployment configs.
File summaries
File Description
deploy/kubernetes/configmap.yaml Align embedded application.yml keys with Spring Boot 4 / springdoc / JobRunr property names used elsewhere in the repo
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@netomi
netomi merged commit 89e5035 into main Sep 4, 2026
6 checks passed
@netomi
netomi deleted the fix/k8s-configmap-spring-boot-4 branch September 4, 2026 08:24
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.

Kubernetes Deployment Example Seems Outdated

2 participants