-
Notifications
You must be signed in to change notification settings - Fork 158
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
Introduce services.opendatahub.io api group #1389
Introduce services.opendatahub.io api group #1389
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature-operator-refactor #1389 +/- ##
============================================================
Coverage ? 26.37%
============================================================
Files ? 65
Lines ? 5210
Branches ? 0
============================================================
Hits ? 1374
Misses ? 3674
Partials ? 162 ☔ View full report in Codecov by Sentry. |
51e8117
to
9007747
Compare
4c88ef1
to
1d3cf7d
Compare
type ServiceObject interface { | ||
client.Object | ||
WithStatus | ||
} |
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.
Not for this PR, but we can probably move the Status
, WithStatus
, ServiceObject
to a shared packages and reuse it across all our at least internal APIs
object components.ComponentObject, | ||
) (*ComponentReconciler, error) { | ||
// NewReconciler creates a new reconciler for the given type. | ||
func NewReconciler[T client.Object](mgr manager.Manager, name string, object T) (*Reconciler[T], error) { |
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.
do we need generics ?
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.
Maybe we should add a check to allow only ComponentObject and ServiceObject?
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.
if we merge ServiceObject
and ComponentObject
as per #1389 (comment), then we can maybe just use the new type ?
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.
In that case, I will update the PR to merge the 2 objects
Quickly skimmed through the code and beside some minor comments, looks ok |
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.
two questions:
- what is dscmonitorings?
- do we want this service to be created for all ODH+RHOAIs ?
Its same as in components https://github.com/opendatahub-io/opendatahub-operator/blob/feature-operator-refactor/apis/components/v1/dashboard_types.go#L92 . It contains all the fields as exposed in the DSCI spec
The |
0e8c97a
to
bc2bff6
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.
this can be renamed too
Just a small comment, that can be fixed in another branch, but LGTM, @zdtsw ? |
in general, LGTM, but these should be removed:
then renegerate bundle
|
@lburgazzoli @zdtsw Addressed your last comments |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zdtsw The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
970b40b
into
opendatahub-io:feature-operator-refactor
…flux/component-updates/odh-ml-pipelines-scheduledworkflow-v2-v2-17 chore(deps): update odh-ml-pipelines-scheduledworkflow-v2-v2-17 to dda4a87
Description
This PR includes following changes:
ComponentReconcile
r -->Reconciler
components.opendatahub.io/part-of
label -->platform.opendatahub.io/part-of
How Has This Been Tested?
Screenshot or short clip
Merge criteria