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

feat: save storage secrets #1927

Merged
merged 2 commits into from
Aug 5, 2024
Merged

feat: save storage secrets #1927

merged 2 commits into from
Aug 5, 2024

Conversation

m-alisafaee
Copy link
Contributor

@m-alisafaee m-alisafaee commented Jul 8, 2024

/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

@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 8, 2024 00:27 — with GitHub Actions Inactive
@RenkuBot
Copy link
Contributor

RenkuBot commented Jul 8, 2024

You can access the deployment of this PR at https://renku-ci-nb-1927.dev.renku.ch

@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 8, 2024 12:29 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 8, 2024 12:49 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 8, 2024 14:07 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee force-pushed the pitch/save-storage-secrets branch from e9ae4e2 to 6abac17 Compare July 8, 2024 15:00
@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 8, 2024 15:00 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 8, 2024 21:34 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee force-pushed the pitch/save-storage-secrets branch from 6916eba to 3f874e2 Compare July 8, 2024 21:42
@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 8, 2024 21:43 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 10, 2024 23:07 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee force-pushed the pitch/save-storage-secrets branch from defd23b to b0e75ee Compare July 10, 2024 23:18
@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 10, 2024 23:18 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 12, 2024 16:10 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 12, 2024 16:28 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 12, 2024 17:00 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 12, 2024 17:15 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 12, 2024 20:46 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee force-pushed the pitch/save-storage-secrets branch from b0e75ee to 1ccaa7e Compare July 15, 2024 16:03
@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 15, 2024 16:03 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee marked this pull request as ready for review July 15, 2024 16:47
@m-alisafaee m-alisafaee requested a review from a team as a code owner July 15, 2024 16:47
@m-alisafaee m-alisafaee marked this pull request as draft July 15, 2024 16:47
@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 15, 2024 21:15 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee temporarily deployed to renku-ci-nb-1927 July 15, 2024 22:22 — with GitHub Actions Inactive
@m-alisafaee m-alisafaee marked this pull request as ready for review July 15, 2024 22:42
_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",
Copy link
Member

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?

Copy link
Contributor Author

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.

@m-alisafaee m-alisafaee merged commit 4c9e0d4 into master Aug 5, 2024
9 of 17 checks passed
@m-alisafaee m-alisafaee deleted the pitch/save-storage-secrets branch August 5, 2024 07:58
olevski pushed a commit to SwissDataScienceCenter/renku-data-services that referenced this pull request Dec 10, 2024
olevski pushed a commit to SwissDataScienceCenter/renku-data-services that referenced this pull request Dec 19, 2024
olevski pushed a commit to SwissDataScienceCenter/renku-data-services that referenced this pull request Dec 19, 2024
olevski pushed a commit to SwissDataScienceCenter/renku-data-services that referenced this pull request Dec 20, 2024
olevski pushed a commit to SwissDataScienceCenter/renku-data-services that referenced this pull request Dec 20, 2024
olevski added a commit to SwissDataScienceCenter/renku-data-services that referenced this pull request Dec 23, 2024
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants