-
Notifications
You must be signed in to change notification settings - Fork 145
Types and mocks update for Catalog Source Status #1896
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: manaswinidas <[email protected]>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
|
@mturley OpenAPI spec |
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.
@manaswinidas We also need to update the mod-arch.yaml file as well with status and error for /sources endpoint.
Also @mturley quick question - looking at this PR: : #1870 - we will also have includedModels and excludedModels as well on CatalogSource?
| Name string `json:"name"` | ||
| Enabled *bool `json:"enabled,omitempty"` | ||
| Labels []string `json:"labels"` | ||
| Status *CatalogSourceStatus `json:"status,omitempty"` |
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.
we will also have Error property- we need to add that here. Also need to update the mocks with this
|
@ppadti: changing LGTM is restricted to collaborators In response to this:
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. |
@manaswinidas looking at the spec I think status is an enum and then error is just a string.
@ppadti that's interesting, yeah it looks like we'll have the allow/disallow input values there. I don't think we'll need to use that though since it's also in the configmap |
Description
Added types and mocks for status of a catalog source
Proposed OpenAPI changes PR: #1870
How Has This Been Tested?
Tested using the following

curlcommand while running the BFF in mock mode. I usedmake run PORT=4000 MOCK_K8S_CLIENT=true MOCK_MR_CLIENT=true MOCK_MR_CATALOG_CLIENT=true DEV_MODE=true DEPLOYMENT_MODE=standaloneinbfffolder and rancurl -X GET "http://localhost:4000/api/v1/model_catalog/sources?namespace=kubeflow" \ -H "kubeflow-userid: [email protected]"in another terminal and got the following result with statusMerge criteria:
DCOcheck)ok-to-testhas been added to the PR.If you have UI changes