-
-
Notifications
You must be signed in to change notification settings - Fork 9k
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
[JENKINS-64816] prepare for support of node monitors by JCasC #8629
Conversation
In order that configuration as code plugin can properly support node monitors we need to add databound constructors.
3997d7b
to
ebab8bd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we might be able to get rid of a few #newInstance
as well, but reasonable to consider that out of scope.
public static /*almost final*/ DiskSpaceMonitorDescriptor DESCRIPTOR; | ||
|
||
@Extension @Symbol("diskSpace") | ||
public static class DescriptorImpl extends DiskSpaceMonitorDescriptor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsure whether we want @since
for this. Technically, yes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really see the need for this here.
@Extension | ||
public static final AbstractNodeMonitorDescriptor<Data> DESCRIPTOR = new AbstractAsyncNodeMonitorDescriptor<>() { | ||
@Symbol("responseTime") | ||
public static class DescriptorImpl extends AbstractAsyncNodeMonitorDescriptor<Data> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsure whether we want @since
for this. Technically, yes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dito
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
Hey @mawinter69, would you mind addressing or commenting on the outstanding concerns, please? |
Noting that comments have been addressed by declining. |
/label ready-for-merge This PR is now ready for merge. We will merge it after ~24 hours if there is no negative feedback. |
In order that configuration as code plugin can properly support node monitors we need to add databound constructors.
See JENKINS-64816.
Testing done
No functional changes, verified in the context of jenkinsci/configuration-as-code-plugin#2392 that with this change the node monitors can then be configured via CasC
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
N/A
Before the changes are marked as
ready-for-merge
:Maintainer checklist