Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: @ControllerConfiguration annotation is optional #2412

Merged
merged 8 commits into from
Jun 21, 2024

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented May 28, 2024

No description provided.

@csviri csviri requested a review from metacosm May 28, 2024 10:23
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 28, 2024
@csviri csviri linked an issue May 28, 2024 that may be closed by this pull request
@csviri csviri marked this pull request as ready for review May 29, 2024 08:20
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 29, 2024
@openshift-ci openshift-ci bot requested review from adam-sandor and andreaTP May 29, 2024 08:20
@csviri csviri self-assigned this Jun 11, 2024
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 17, 2024
@csviri csviri force-pushed the optional-controller-config branch from 7f552c9 to 613e61a Compare June 18, 2024 07:32
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 18, 2024
@csviri csviri force-pushed the optional-controller-config branch 2 times, most recently from 6916ca4 to 2804b62 Compare June 18, 2024 07:36
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 21, 2024
csviri added 5 commits June 21, 2024 15:18
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
@csviri csviri force-pushed the optional-controller-config branch from 2804b62 to 0b78047 Compare June 21, 2024 13:33
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 21, 2024
csviri and others added 3 commits June 21, 2024 15:42
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
try {
if (controllerConfiguration == null) {
return (T) io.javaoperatorsdk.operator.api.reconciler.ControllerConfiguration.class
.getDeclaredMethod(defaultMethodName).getDefaultValue();
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a little dangerous since it references method names directly and they can change… That said that approach is more or less used in QOSDK as well so 🤷🏼

@csviri csviri merged commit 576e7a5 into next Jun 21, 2024
19 of 20 checks passed
@csviri csviri deleted the optional-controller-config branch June 21, 2024 14:48
metacosm added a commit that referenced this pull request Jul 8, 2024

Signed-off-by: Attila Mészáros <csviri@gmail.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
metacosm added a commit that referenced this pull request Jul 9, 2024

Signed-off-by: Attila Mészáros <csviri@gmail.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
metacosm added a commit that referenced this pull request Jul 12, 2024

Signed-off-by: Attila Mészáros <csviri@gmail.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
csviri added a commit that referenced this pull request Aug 8, 2024

Signed-off-by: Attila Mészáros <csviri@gmail.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
csviri added a commit that referenced this pull request Aug 15, 2024

Signed-off-by: Attila Mészáros <csviri@gmail.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
metacosm added a commit that referenced this pull request Aug 29, 2024

Signed-off-by: Attila Mészáros <csviri@gmail.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
csviri added a commit that referenced this pull request Sep 20, 2024

Signed-off-by: Attila Mészáros <csviri@gmail.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
metacosm added a commit that referenced this pull request Oct 10, 2024
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
metacosm added a commit that referenced this pull request Nov 5, 2024
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
metacosm added a commit that referenced this pull request Nov 6, 2024
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
csviri added a commit that referenced this pull request Nov 13, 2024
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
metacosm added a commit that referenced this pull request Nov 19, 2024
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
metacosm added a commit that referenced this pull request Nov 20, 2024
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
metacosm added a commit that referenced this pull request Nov 27, 2024
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
csviri added a commit that referenced this pull request Dec 6, 2024
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
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.

Make the ControllerConfiguration annotation optional
3 participants