-
Notifications
You must be signed in to change notification settings - Fork 67
WIP: Add DataScienceCluster resource for RHOAI operator #1583
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
Conversation
|
Report bugs in Issues The following are automatically added:
Available user actions:
Supported /retest check runs
Supported labels
|
|
|
||
| def __init__( | ||
| self, | ||
| name=None, |
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.
name, client and yaml_file should be removed (should be passed as part of kwargs)
| """ | ||
| DataScienceCluster Resource for RHOAI operator | ||
| https://access.redhat.com/documentation/en-us/red_hat_openshift_ai_self-managed/2.5/html/installing_and_uninstalling_openshift_ai_self-managed/index |
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 a link to Installing and uninstalling OpenShift AI Self-Managed, you need to replace it with link to the resource definition.
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.
@myakove I didn't find any direct link to this resource, it is part of installation guide of data science product.
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.
please add also https://github.com/opendatahub-io/opendatahub-operator/blob/incubation/apis/datasciencecluster/v1/datasciencecluster_types.go
and https://github.com/opendatahub-io/opendatahub-operator/blob/a6eb73af559f9ba7438c529420f6e55c83b045af/config/crd/bases/datasciencecluster.opendatahub.io_datascienceclusters.yaml
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.
Thanks, will update!
ocp_resources/resource.py
Outdated
| COORDINATION_K8S_IO = "coordination.k8s.io" | ||
| DATA_IMPORT_CRON_TEMPLATE_KUBEVIRT_IO = "dataimportcrontemplate.kubevirt.io" | ||
| DISCOVERY_K8S_IO = "discovery.k8s.io" | ||
| DATASCIENCE_CLUSTER = "datasciencecluster.opendatahub.io" |
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.
should be ordered alphabetic
| codeflare_state=ManagementState.REMOVED, | ||
| dashboard_state=ManagementState.MANAGED, | ||
| datasciencepipelines_state=ManagementState.REMOVED, | ||
| kserve_state=ManagementState.REMOVED, | ||
| modelmeshserving_state=ManagementState.REMOVED, | ||
| ray_state=ManagementState.REMOVED, | ||
| trustyai_state=ManagementState.REMOVED, | ||
| workbenches_state=ManagementState.REMOVED, |
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 not set defaults; either the api has defaults and if the user does not provide - do not set in the code or they are mandatory and the user must provide them
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.
checking if there are defaults
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 there is no values passed for either one of the components, then DSC still getting created, without ManagemantState, see example. Removing the default values
spec:
components:
codeflare:
devFlags: {}
managementState: Removed
dashboard:
devFlags: {}
managementState: Managed
datasciencepipelines:
devFlags: {}
managementState: Removed
kserve:
devFlags: {}
managementState: Removed
modelmeshserving:
devFlags: {}
managementState: Removed
ray:
devFlags: {}
managementState: Removed
trustyai:
devFlags: {}
managementState: Removed
workbenches: ## >>>> NO State passed for this component <<<<<<
devFlags: {}
| """ | ||
| DataScienceCluster Resource for RHOAI operator | ||
| https://access.redhat.com/documentation/en-us/red_hat_openshift_ai_self-managed/2.5/html/installing_and_uninstalling_openshift_ai_self-managed/index |
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.
please add also https://github.com/opendatahub-io/opendatahub-operator/blob/incubation/apis/datasciencecluster/v1/datasciencecluster_types.go
and https://github.com/opendatahub-io/opendatahub-operator/blob/a6eb73af559f9ba7438c529420f6e55c83b045af/config/crd/bases/datasciencecluster.opendatahub.io_datascienceclusters.yaml
0c54611 to
a93a8b7
Compare
a93a8b7 to
bf9f192
Compare
bf9f192 to
19451e6
Compare
|
moving back to WIP, adding DSC specific Conditions |
19451e6 to
b3a7a93
Compare
for more information, see https://pre-commit.ci
|
Closing this PR, no need to add this resource. |
Short description: Add DataScienceCluster resource for RHOAI operator usage
More details:
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for reviewer:
Bug: