Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

What is the recommended implementation approach when having multiple CRD versions?#1710

Unanswered
juangon asked this question inQ&A
Discussion options

Hi again!

I am thinking of the approach to follow when having multiple CRD versions. What is the recommended approach? As I think 95% of the code (in reconcilers, etc) can be reused...could I just inherit the Reconcilers so they use the new versions and just change some few lines on some methods? Would that work?

Thanks!

You must be logged in to vote

Replies: 3 comments 3 replies

Comment options

Yes, it can be reused (or should be, not sure if tested), just make sure that the actual reconciles have the@ControllerConfiguration annotation. and the proper custom resource type generics.

You must be logged in to vote
0 replies
Comment options

Let us know if you have any issues, but yes, it should work, provided your reconcilers are properly typed and annotated.

You must be logged in to vote
0 replies
Comment options

This would be a great addition to the website, or a sample.

You must be logged in to vote
3 replies
@csviri
Comment options

@csviri
Comment options

In form of Integration test.

@csviri
Comment options

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
4 participants
@juangon@metacosm@tombentley@csviri

[8]ページ先頭

©2009-2025 Movatter.jp