-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: save storage secrets #1927
Conversation
You can access the deployment of this PR at https://renku-ci-nb-1927.dev.renku.ch |
e9ae4e2
to
6abac17
Compare
6916eba
to
3f874e2
Compare
defd23b
to
b0e75ee
Compare
b0e75ee
to
1ccaa7e
Compare
renku_notebooks/api/notebooks.py
Outdated
_on_error(f"User secret could not be created {response.json()}") | ||
try: | ||
response = requests.post( | ||
config.user_secrets.secrets_storage_service_url + "/api/secrets/kubernetes", |
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.
suggestion: As this is used in 2 places now, we should make the path some constant defined maybe at the top of the file?
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.
I've refactored the duplicate code into a function.
Migrating SwissDataScienceCenter/renku-notebooks#1927 * feat: no http calls to data svc for cloud storage --------- Co-authored-by: Mohammad Alisafaee <mohammad.alisafaee@epfl.ch> Co-authored-by: Flora Thiebaut <flora.thiebaut@sdsc.ethz.ch>
/deploy renku-data-services=pitch/save-storage-credentials-save-secrets renku-ui=ciyer/storage-secrets-storage extra-values=csi-rclone.csiControllerRclone.rclone.image.repository=mohammadsdsc/csi-rclone,csi-rclone.csiControllerRclone.rclone.image.tag=v0.1.8-0.dev.git.102.hb496bd0,csi-rclone.csiNodepluginRclone.rclone.image.repository=mohammadsdsc/csi-rclone,csi-rclone.csiNodepluginRclone.rclone.image.tag=v0.1.8-0.dev.git.102.hb496bd0,global.csi-rclone.install=true,csi-rclone.storageClassName=test-csi-rclone,notebooks.cloudstorage.storageClass=test-csi-rclone,csi-rclone.csiNodepluginRclone.tolerations[0].key=CriticalAddonsOnly,csi-rclone.csiNodepluginRclone.tolerations[0].operator=Exists,csi-rclone.csiNodepluginRclone.tolerations[1].effect=NoSchedule,csi-rclone.csiNodepluginRclone.tolerations[1].key=nvidia.com/gpu,csi-rclone.csiNodepluginRclone.tolerations[1].operator=Exists,csi-rclone.csiNodepluginRclone.tolerations[2].effect=NoSchedule,csi-rclone.csiNodepluginRclone.tolerations[2].key=renku.io/dedicated,csi-rclone.csiNodepluginRclone.tolerations[2].operator=Equal,csi-rclone.csiNodepluginRclone.tolerations[2].value=user