Git Product home page Git Product logo

Comments (9)

YiannisGkoufas avatar YiannisGkoufas commented on June 14, 2024

Thanks for moving this forward @vpavlin !
For the read-only, a simple solution would be to extend the CRD to something like this:

apiVersion: com.ie.ibm.hpsys/v1alpha1
kind: Dataset
metadata:
  name: your-dataset
spec:
  local:
    type: "COS"
    accessKeyID: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
    secretAccessKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
    endpoint: "https://s3.eu.cloud-object-storage.appdomain.cloud"
    bucket: "kubeflow-yiannis"
    region: "" #it can be empty
    readonly: true

Regarding the labeling etc, the current way to mount in /mnt/datasets/* is as follows:

  labels:
    dataset.0.id: "your-dataset"
    dataset.0.useas: "mount"

Do you need a different functionality about the pods labeling convention?

from datashim.

vpavlin avatar vpavlin commented on June 14, 2024

@YiannisGkoufas The labels should be fine, I would suggest to move the readonly up to spec.readonly instead of spec.local.readonly - I believe the readonly option applies to all the backends so it makes more sense to make it more "global" on dataset level. WDYT?

from datashim.

YiannisGkoufas avatar YiannisGkoufas commented on June 14, 2024

Oh yes the local bit is going away in any case. Will work on this and update the current issue. Thanks @vpavlin

from datashim.

vpavlin avatar vpavlin commented on June 14, 2024

Is there any progress on readonly access?

from datashim.

YiannisGkoufas avatar YiannisGkoufas commented on June 14, 2024

Hey @vpavlin yes yes, not documented yet, but if you are feeling brave, try the following images for the dataset operator and csi-s3.

yiannisgkoufas/dataset-operator:readonly-amd64
yiannisgkoufas/csi-s3:readonly-amd64

Example readonly dataset (only working on COS)

apiVersion: com.ie.ibm.hpsys/v1alpha1
kind: Dataset
metadata:
  name: your-dataset
spec:
  local:
    type: "COS"
    accessKeyID: "xxxx"
    secretAccessKey: "xxxxxx"
    endpoint: "http://s3.eu.cloud-object-storage.appdomain.cloud"
    bucket: "kubeflow-yiannis"
    readonly: "true"
    region: "" #it can be empty

edit: removing the local bit is part of a bigger effort to restructure the CRD, but its on the pipeline

from datashim.

YiannisGkoufas avatar YiannisGkoufas commented on June 14, 2024

Hi @vpavlin can you check the branch https://github.com/IBM/dataset-lifecycle-framework/tree/readonly it support the readonly functionality in a Dataset as shown in the example

from datashim.

vpavlin avatar vpavlin commented on June 14, 2024

Hi @YiannisGkoufas we are pushing a release of ODH and trying to finish some changes in JupyterHub, which is preventing me from looking at this. Just wanted to let you know this is still on the list for me!

from datashim.

YiannisGkoufas avatar YiannisGkoufas commented on June 14, 2024

No worries @vpavlin ! thanks for letting me know. I have actually gathered some questions/ideas on ODH integration so would love discuss more when you have time

from datashim.

srikumar003 avatar srikumar003 commented on June 14, 2024

Closing this issue as this is stale

from datashim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.