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

Refactor reconciler logic #100

Merged

Conversation

vaibhavjainwiz
Copy link
Member

@vaibhavjainwiz vaibhavjainwiz commented Oct 11, 2023

Description

I had refactor the all reconciliation loops of odh-model-controller by following below guideline:
https://docs.google.com/document/d/1Q7ziQa_DtqtHnP9oWKNVgWNboYL0LhkdsHXl43QtXqI/edit?usp=sharing

Refactoring would fix the #86 issue.

How Has This Been Tested?

---
kind: DataScienceCluster
apiVersion: datasciencecluster.opendatahub.io/v1
metadata:
  labels:
    app.kubernetes.io/created-by: opendatahub-operator
    app.kubernetes.io/instance: default
    app.kubernetes.io/managed-by: kustomize
    app.kubernetes.io/name: datasciencecluster
    app.kubernetes.io/part-of: opendatahub-operator
  name: default
spec:
  components:
    kserve:
      managementState: Managed
      devFlags:
        manifests:
          - contextDir: config
            sourcePath: overlays/odh
            uri: https://github.com/opendatahub-io/kserve/tarball/master
          - contextDir: config
            uri: https://github.com/vaibhavjainwiz/odh-model-controller/tarball/fix_reconciler_manifest
    modelmeshserving:
      managementState: Managed
      devFlags:
        manifests:
          - contextDir: config
            sourcePath: overlays/odh
            uri: https://github.com/opendatahub-io/modelmesh-serving/tarball/main
          - contextDir: config
            uri: https://github.com/vaibhavjainwiz/odh-model-controller/tarball/fix_reconciler_manifest

If everything work as mentioned in above step then we are good to go :)

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • 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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 11, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@vaibhavjainwiz
Copy link
Member Author

/test all

@vaibhavjainwiz vaibhavjainwiz linked an issue Oct 12, 2023 that may be closed by this pull request
@vaibhavjainwiz vaibhavjainwiz marked this pull request as ready for review October 12, 2023 21:41
Copy link
Member

@spolti spolti left a comment

Choose a reason for hiding this comment

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

There are some files missing the license headers while others have.
Do we want to keep it aligned?

@vaibhavjainwiz
Copy link
Member Author

There are some files missing the license headers while others have. Do we want to keep it aligned?

done

Signed-off-by: Vaibhav Jain <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 19, 2023

@vaibhavjainwiz: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/fvt 1b3a31c link true /test fvt

Full PR test history. Your PR dashboard.

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 kubernetes/test-infra repository. I understand the commands that are listed here.

@spolti
Copy link
Member

spolti commented Oct 19, 2023

before merge we might need to fix the failing test

@spolti spolti removed the approved label Oct 19, 2023
@spolti
Copy link
Member

spolti commented Oct 19, 2023

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 19, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: davidesalerno, spolti, vaibhavjainwiz

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

@Jooho
Copy link
Contributor

Jooho commented Oct 19, 2023

@spolti @davidesalerno could you please share how you test this? I followed the description and it failed to deploy odh-model-controller image. Moreover, it used a stable image, not the image built for this PR.

@vaibhavjainwiz
Copy link
Member Author

@spolti @davidesalerno could you please share how you test this? I followed the description and it failed to deploy odh-model-controller image. Moreover, it used a stable image, not the image built for this PR.

@davidesalerno has faced the similiar issue. DSCInitialization settings are not picked by v2 operator automatically so we have to apply manifest manually and then it works.

@openshift-ci openshift-ci bot merged commit 5aed94d into opendatahub-io:main Oct 23, 2023
6 checks passed
@Jooho
Copy link
Contributor

Jooho commented Oct 24, 2023

@vaibhavjainwiz @spolti i couldnt test this pr. @spolti please do not leave lgtm before testing. Openshif ci will merge if there is A lgtm on the PR.
@vaibhavjainwiz please update description for test steps properly.

@vaibhavjainwiz
Copy link
Member Author

@vaibhavjainwiz @spolti i couldnt test this pr. @spolti please do not leave lgtm before testing. Openshif ci will merge if there is A lgtm on the PR. @vaibhavjainwiz please update description for test steps properly.

@Jooho I had updated the description for test. Please let me know if you are facing any issue to setup env.

@vaibhavjainwiz vaibhavjainwiz deleted the refactor_reconciler branch December 1, 2023 09:44
dtrifiro pushed a commit that referenced this pull request Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error on reconciliation of odh-model-controller
4 participants