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

Set the volume mount's readonly annotation based on the ISVC annotation #388

Closed

Conversation

hdefazio
Copy link

@hdefazio hdefazio commented Jul 22, 2024

What this PR does / why we need it:
Fixes kserve#3687
https://issues.redhat.com/browse/RHOAIENG-8288

Type of changes
Bug fix (non-breaking change which fixes an issue)

Feature/Issue validation/testing:

Please describe the tests that you ran to verify your changes and relevant result summary. Provide instructions so it can be reproduced.
Please also list any relevant details for your test configuration.

Test Setup:

  • Created a cluster
  • Installed Service Mesh, Serverless, Opendatahub operators (in that order)
  • Created a DSCI and waited for it to be Ready
  • Created a DSC and waited for it to be Ready
  • Scaled deployments -> opendatahub-operator-controller-manager down to zero in the openshift-operators namespace
  • Replaced the image in deployments -> kserve-controller with my local image in the opendatahub namespace
  • Created a serving runtime via yaml config
  • Created an ISVC via a yaml config

Test Cases:
storage.kserve.io/readonly: "false"
readonly_false

storage.kserve.io/readonly: "true"
readonly_true

storage.kserve.io/readonly was not provided
readonly_unset

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Checklist:

  • Have you added unit/e2e tests that prove your fix is effective or that this feature works?
  • Has code been commented, particularly in hard-to-understand areas?
  • Have you made corresponding changes to the documentation?

Release note:


Re-running failed tests

  • /rerun-all - rerun all failed workflows.
  • /rerun-workflow <workflow name> - rerun a specific failed workflow. Only one workflow name can be specified. Multiple /rerun-workflow commands are allowed per comment.

@hdefazio hdefazio marked this pull request as draft July 22, 2024 13:19
Copy link

openshift-ci bot commented Jul 22, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: hdefazio
Once this PR has been reviewed and has the lgtm label, please assign xaenalt for approval. 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

@spolti
Copy link
Member

spolti commented Aug 20, 2024

@terrytangyuan this changes looks ok, do you want to take another look?
And, @harshad16 before we propose it upstream, do you mind building the kserve image and test with ODH?

@harshad16
Copy link
Member

before we propose it upstream, do you mind building the kserve image and test with ODH?

@spolti do you mean to tag me here? not sure if this relate to the work i do.

@lazarotti lazarotti requested review from israel-hdez and removed request for VedantMahabaleshwarkar August 20, 2024 20:26
@terrytangyuan
Copy link
Member

This PR is still in draft. Is it ready for review?

@terrytangyuan
Copy link
Member

I mentioned previously that we'll need the upstream to review this as well. Do we have a PR in upstream?

expected: &v1.Pod{
ObjectMeta: metav1.ObjectMeta{
Annotations: map[string]string{
constants.StorageInitializerSourceUriInternalAnnotationKey: "gs://foo",
Copy link
Author

Choose a reason for hiding this comment

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

@spolti Just curious - does the readonly annotation key get dropped when the pod is created? Or should that field be here too? (the test isn't failing as-is)

@spolti
Copy link
Member

spolti commented Aug 21, 2024

before we propose it upstream, do you mind building the kserve image and test with ODH?

@spolti do you mean to tag me here? not sure if this relate to the work i do.

Sry, wrong tag =/

@hdefazio hdefazio marked this pull request as ready for review August 21, 2024 20:41
@hdefazio
Copy link
Author

This PR is still in draft. Is it ready for review?

@terrytangyuan This is ready for review now

@hdefazio
Copy link
Author

Closing in favor of kserve#3885

@hdefazio hdefazio closed this Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Allow PVC Model Mount in ReadWrite Mode
4 participants