Spring Native support

オープン
#1,350 コメント 10 件 リアクション 4 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@kamalcis がすでに取り組んでいます。

2026年6月7日 から。

  • #2247 @kamalcis による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
活発
技術スタック
java, kubernetes, spring, spring-boot

調査の方向性

No files or tests are named. Start by reproducing the reported native build with spring-cloud-kubernetes-fabric8-leader and review its Spring Native configuration, reflection registration, and Kubernetes client creation; done means documenting a supported configuration and resolving or clearly describing the reported runtime errors.

索引モデルが issue の本文から書いたものです。

説明

waiting-for-triage

I could not find any documentation about configuring spring-cloud components on Spring Native applications. I've tried using spring-cloud-kubernetes-fabric8-leader with no luck.

  • I've got java.lang.ClassNotFoundException: io.fabric8.kubernetes.client.impl.KubernetesClientImpl, fixed it by registring this class with @RegisterReflectionForBinding
  • then - No constructor or factory method candidate found for Root bean: class [org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties] - fixed it by using older version (2022.0.1)
  • After that, I found out, that KubernetesClient bean is not being created, so I set spring.main.cloud-platform property to KUBERNETES, assuming it is failing to detect coud platform at runtime. This resulted in:
Fatal error: com.oracle.svm.core.util.VMError$HostedError: com.oracle.svm.core.util.VMError$HostedError: New Method or Constructor found as reachable after static analysis: public java.time.Duration org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties.maxWaitForRestart()
主要言語
Java
スター
3.5k
フォーク
1k
平均マージ
2日 10時間
マージ済み PR(30日)
16

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

spring-cloud/spring-cloud-kubernetes のほかの issue

spring-cloud/spring-cloud-kubernetes の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。