-
Notifications
You must be signed in to change notification settings - Fork 148
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
Initialize Internal APIs for components #1304
Initialize Internal APIs for components #1304
Conversation
DeleteFunc: func(e event.DeleteEvent) bool { | ||
labelList := e.Object.GetLabels() | ||
if value, exist := labelList[labels.ODH.Component(ComponentNameUpstream)]; exist && value == "true" { | ||
return true | ||
} | ||
return false | ||
}, |
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 want apply label on Dashboard CR as well just like all the other resources we are doing now?
(cherry picked from commit 086fe25)
Co-authored-by: Wen Zhou <wenzhou@redhat.com>
LGTM |
/hold |
The option is deprecated by opendatahub-io#1304 Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
} | ||
} | ||
|
||
if rr.DSCI.Spec.DevFlags != nil { |
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.
Remove that, deprecated by coming #1307
components.Component `json:""` | ||
} | ||
|
||
func (d *Dashboard) Init(ctx context.Context, platform cluster.Platform) 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.
This is should not be reverted, it is sort of regression.
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.
Updated
return nil | ||
} | ||
|
||
func CreateDashboardInstance(dsc *dscv1.DataScienceCluster) *componentsv1.Dashboard { |
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.
It just allocates a structure with some predefined fields. Can it be named less dramatic :) ? NewDashboard() or something?
…ogging setup (cherry picked from commit 3a8f265)
4b40c43
to
af2c1b3
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.
I haven't gotten all of the way through this yet, but leaving some minor comments from this pass.
Again, I'm very rusty when it comes to Go and operators currently, so please excuse any comments that don't make sense! 🙂
controller: true | ||
domain: opendatahub.io | ||
group: components | ||
kind: Kserve |
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.
kind: Kserve | |
kind: KServe |
I guess this might be slightly preferred? I don't know what the implications of one over the other are though.
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 am not sure either. I defined the crd Kserve
to be consistent with current component spec https://github.com/opendatahub-io/opendatahub-operator/blob/incubation/apis/datasciencecluster/v1/datasciencecluster_types.go#L68
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 dont see it is a big problem, we are using Kserve in most of the places from Operator, even the current DSC.components.
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.
some small bits as comments
// Include status changes as we need to determine the component | ||
// readiness by observing the status of the deployments | ||
Watches(&appsv1.Deployment{}, componentEventHandler, builder.WithPredicates(componentLabelPredicate)). | ||
// Ignore status changes |
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 sure i understand this comment on Route?
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.
The route status can change, but that should not trigger a reconcile loop
feat(dashboard): configure watched resources event filter (cherry picked from commit c9ef475) Update predicate for create event Fix: Update manifests map in initialization Update controllers/components/dashboard/dashboard_controller.go Co-authored-by: Wen Zhou <wenzhou@redhat.com> Update controllers/components/dashboard/dashboard_controller.go Co-authored-by: Wen Zhou <wenzhou@redhat.com> Update pkg/metadata/annotations/annotations.go Co-authored-by: Wen Zhou <wenzhou@redhat.com> Update controllers/datasciencecluster/kubebuilder_rbac.go Co-authored-by: Wen Zhou <wenzhou@redhat.com> Update apis/components/component.go Co-authored-by: Wen Zhou <wenzhou@redhat.com> Update controllers/components/dashboard/dashboard_controller.go Co-authored-by: Wen Zhou <wenzhou@redhat.com> Update bundle
3e2e580
to
72d34b2
Compare
/unhold |
Co-authored-by: Wen Zhou <wenzhou@redhat.com>
lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lburgazzoli 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 |
6db3f70
into
opendatahub-io:feature-operator-refactor
Description
This PR includes following changes. Some of the items are yet to be completed:
How Has This Been Tested?
CatalogSource: quay.io/vhire/opendatahub-operator-catalog:v2.19.4
Dashboard
CR is createdScreenshot or short clip
Merge criteria