operator-framework / operator-framework/java-operator-sdk
Apply CRDs on startup of operator
オープン
@metacosm がすでに取り組んでいます。
2022年1月13日 から。
help wanted
needs-discussion
- 主要言語
- Java
- スター
- 944
- フォーク
- 242
- 平均マージ
- 1日 4時間
- マージ済み PR(30日)
- 43
説明
CRDs can be generated by using io.fabric8:crd-generator-apt as an annotationProcessor. The CRDs need to be applied manually to the cluster every time they change. This results in a bad development experience.
The quarkus-operator-sdk already deals with both tasks (Generating CRDs, Applying CRDs) and provides a configuration property to enable/disable CRD installation.
Workaround Gradle
A simple workaround could be to create an additional task. The task could be structured like the following (will fail with Kubernetes 1.22+):
task applyCrds(type: Exec) {
commandLine = ["kubectl", "apply", "-f", "$buildDir/classes/java/main/META-INF/fabric8/"]
tasks.compileJava.finalizedBy(tasks.applyCrds)
}
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。