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

update: add status update on component CR's phase #1394

Draft
wants to merge 1 commit into
base: feature-operator-refactor
Choose a base branch
from

Conversation

zdtsw
Copy link
Member

@zdtsw zdtsw commented Nov 26, 2024

  • watch component resource if status.phase is updated, trigger DSC updates
  • if component is enabled, and phase is Ready, DSC set complete (as-was)
  • if component is enabled, but phase is notready(or anything), DSC set in-progress, notready
  • if component is disabled, do nothing (as-was)

Description

How Has This Been Tested?

Screenshot or short clip

Merge criteria

  • You have read the contributors guide.
  • Commit messages are meaningful - have a clear and concise summary and detailed explanation of what was changed and why.
  • Pull Request contains a description of the solution, a link to the JIRA issue, and to any dependent or related Pull Request.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

- watch component resource if status.phase is updated, trigger DSC updates
  if component is enabled, and phase is Ready, DSC set complete (as-was)
  if component is enabled, but phase is notready(or anything), DSC set in-progress, notready
  if component is disabled, do nothing (as-was)

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
Copy link

openshift-ci bot commented Nov 26, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from zdtsw. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -72,3 +74,11 @@ func (s *componentHandler) Init(platform cluster.Platform) error {

return nil
}

func (s *componentHandler) GetStatus(ctx context.Context, cli client.Client) (components.Status, error) {
k := &componentsv1.Dashboard{}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
k := &componentsv1.Dashboard{}
k := &componentsv1.Kueue{}

Copy link
Member Author

Choose a reason for hiding this comment

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

💤 i was not myself

Copy link
Member

Choose a reason for hiding this comment

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

I know it's still a draft PR and not yet ready for review, but I thought it might be useful to highlight these in case you didn't catch them before making it ready 🙂

Copy link
Member Author

Choose a reason for hiding this comment

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

sure, thanks!
history proves this again: do not eat and work at the same time!

@@ -72,3 +74,10 @@ func (s *componentHandler) NewCRObject(dsc *dscv1.DataScienceCluster) client.Obj
},
})
}
func (s *componentHandler) GetStatus(ctx context.Context, cli client.Client) (components.Status, error) {
m := &componentsv1.Dashboard{}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
m := &componentsv1.Dashboard{}
m := &componentsv1.ModelRegistry{}

@@ -72,3 +74,10 @@ func (s *componentHandler) Init(platform cluster.Platform) error {

return nil
}
func (s *componentHandler) GetStatus(ctx context.Context, cli client.Client) (components.Status, error) {
r := &componentsv1.Dashboard{}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
r := &componentsv1.Dashboard{}
r := &componentsv1.Ray{}

@@ -72,3 +74,10 @@ func (s *componentHandler) Init(platform cluster.Platform) error {

return nil
}
func (s *componentHandler) GetStatus(ctx context.Context, cli client.Client) (components.Status, error) {
t := &componentsv1.Dashboard{}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
t := &componentsv1.Dashboard{}
t := &componentsv1.TrainingOperator{}

@@ -79,3 +81,10 @@ func (s *componentHandler) Init(platform cluster.Platform) error {

return nil
}
func (s *componentHandler) GetStatus(ctx context.Context, cli client.Client) (components.Status, error) {
t := &componentsv1.Dashboard{}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
t := &componentsv1.Dashboard{}
t := &componentsv1.TrustyAI{}

@zdtsw zdtsw removed the request for review from lphiri November 27, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants