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

MGMT-19057: Add OpenShift AI skeleton #6872

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jhernand
Copy link
Contributor

@jhernand jhernand commented Oct 7, 2024

This patch adds the skeleton for the new OpenShift AI monitored operator. With this it is possible to install the operator, but without dependencies or configuration. That will be added in later patches.

List all the issues related to this PR

Related: https://issues.redhat.com/browse/MGMT-19057

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Tested manually installing a cluster and checking that the operator is installed.

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see CONTRIBUTING guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Oct 7, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Oct 7, 2024

@jhernand: This pull request references MGMT-19057 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.18.0" version, but no target version was set.

In response to this:

This patch adds the skeleton for the new OpenShift AI monitored operator. With this it is possible to install the operator, but without dependencies or configuration. That will be added in later patches.

List all the issues related to this PR

Related: https://issues.redhat.com/browse/MGMT-19057

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Tested manually installing a cluster and checking that the operator is installed.

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see CONTRIBUTING guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Oct 7, 2024
@openshift-ci openshift-ci bot added the api-review Categorizes an issue or PR as actively needing an API review. label Oct 7, 2024
Copy link

openshift-ci bot commented Oct 7, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jhernand

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 7, 2024
}
return
}
minVersion, err := version.NewVersion(o.config.MinOpenShiftVersion)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need validate here and in featureSupport as well ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't have a good answer for that, will check.

Copy link

codecov bot commented Oct 7, 2024

Codecov Report

Attention: Patch coverage is 69.38776% with 75 lines in your changes missing coverage. Please review.

Project coverage is 68.74%. Comparing base (cd37030) to head (a416d79).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
internal/operators/oai/oai_operator.go 60.92% 51 Missing and 8 partials ⚠️
internal/operators/oai/manifest.go 72.97% 5 Missing and 5 partials ⚠️
internal/featuresupport/features_olm_operators.go 71.42% 4 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #6872    +/-   ##
========================================
  Coverage   68.73%   68.74%            
========================================
  Files         249      252     +3     
  Lines       37439    37683   +244     
========================================
+ Hits        25734    25905   +171     
- Misses       9405     9464    +59     
- Partials     2300     2314    +14     
Files with missing lines Coverage Δ
internal/cluster/statemachine.go 99.64% <100.00%> (+<0.01%) ⬆️
internal/cluster/validation_id.go 92.30% <100.00%> (ø)
internal/featuresupport/feature_support_level.go 96.49% <ø> (ø)
internal/host/statemachine.go 100.00% <100.00%> (ø)
internal/host/validation_id.go 90.90% <100.00%> (ø)
internal/operators/builder.go 100.00% <100.00%> (ø)
internal/operators/oai/test_utils.go 100.00% <100.00%> (ø)
internal/featuresupport/features_olm_operators.go 86.74% <71.42%> (-2.22%) ⬇️
internal/operators/oai/manifest.go 72.97% <72.97%> (ø)
internal/operators/oai/oai_operator.go 60.92% <60.92%> (ø)

... and 3 files with indirect coverage changes

@jhernand jhernand force-pushed the add_rhoai_operator branch 2 times, most recently from c5e8234 to 6fcf9a3 Compare October 7, 2024 19:19
@danmanor
Copy link
Contributor

danmanor commented Oct 8, 2024

@jhernand Do we want to add a CI test for testing it ?

@jhernand
Copy link
Contributor Author

jhernand commented Oct 8, 2024

@jhernand Do we want to add a CI test for testing it ?

Yes, I think eventually we will want to have CI tests. But I think is too soon for that; I think it is better to wait till we have the dependencies and the configuration, which will go in other patches.

@jhernand
Copy link
Contributor Author

jhernand commented Oct 8, 2024

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 8, 2024
@jhernand jhernand force-pushed the add_rhoai_operator branch 3 times, most recently from e1ad504 to 2b26d19 Compare October 8, 2024 12:56
Copy link
Contributor

@CrystalChun CrystalChun left a comment

Choose a reason for hiding this comment

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

Looks good to me! Will wait for Dan's comments

@CrystalChun
Copy link
Contributor

Maybe one suggestion is to add doc for this? At least the requirements for it and maybe how to specify in a cluster that you want this operator?

@danmanor
Copy link
Contributor

danmanor commented Oct 9, 2024

/retest

@jhernand jhernand force-pushed the add_rhoai_operator branch 3 times, most recently from fd53bee to a97be0b Compare October 9, 2024 09:15
@jhernand
Copy link
Contributor Author

jhernand commented Oct 9, 2024

Maybe one suggestion is to add doc for this? At least the requirements for it and maybe how to specify in a cluster that you want this operator?

Yes @CrystalChun, that makes sense. I added a section to the operators document in the user guide. Easier to read here: https://github.com/jhernand/assisted-service/blob/add_rhoai_operator/docs/user-guide/additional-operator-notes.md#openshift-ai

@jhernand jhernand force-pushed the add_rhoai_operator branch 2 times, most recently from 3460c6f to 3b1ad36 Compare October 9, 2024 09:19
This patch adds the skeleton for the new _OpenShift AI_ monitored
operator. With this it is possible to install the operator, but without
dependencies or configuration. That will be added in later patches.

Related: https://issues.redhat.com/browse/MGMT-19057
Signed-off-by: Juan Hernandez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-review Categorizes an issue or PR as actively needing an API review. approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants