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

Create a secret for Onyxia's services configuration #424

Merged
merged 28 commits into from
Jun 10, 2024
Merged

Conversation

fcomte
Copy link
Contributor

@fcomte fcomte commented May 15, 2024

This PR is intend to manage metadata of an onyxia release inside a secret with a owner reference pointing on the helm secret to ensure that those metadata will be remove when the release is deleted.

 onyxia@vscode-python-81650-0:~/work$ kubectl get secrets
user-xxxxx                  sh.onyxia.release.v1.jupyter-pyspark-706716                  onyxia.sh/release.v1

This PR also create two endpoint to modify the friendly name and the shared status of an existing release.
This PR also modify attributes of a release ( to add thoses metadata : owner , share, friendlyname and catalogID ) and the body of the request when a user create a release.

@fcomte fcomte requested a review from olevitt May 15, 2024 16:37
@johnksv
Copy link
Contributor

johnksv commented May 16, 2024

Hi! Can you give a brief description of what this PR introduce? 😊

@fcomte
Copy link
Contributor Author

fcomte commented May 16, 2024

This PR modify how we manage metadata for specific onyxia information. Before this PR those metadata (owner, share, friendly name) was kept inside helm values. This PR manage those metadata inside onyxia specific secrets. Those secrets are deleted if thé release IS delete without onyxia because of the ownerReference referencing the helm release secrets

@fcomte
Copy link
Contributor Author

fcomte commented May 16, 2024

It will also enable the modification of friendly name ans the sharing status without update the release

@github-actions github-actions bot added the helm-wrapper Related to the helm-wrapper library label May 21, 2024
@olevitt
Copy link
Contributor

olevitt commented May 21, 2024

This looks ok to me.
@johnksv any remark on this PR ?

Copy link

Quality Gate Passed Quality Gate passed

Issues
9 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@olevitt olevitt self-requested a review June 10, 2024 12:55
@olevitt olevitt added enhancement New feature or request and removed helm-wrapper Related to the helm-wrapper library labels Jun 10, 2024
@olevitt olevitt changed the title Secretonyxia Create a secret for Onyxia's service configuration Jun 10, 2024
@olevitt olevitt changed the title Create a secret for Onyxia's service configuration Create a secret for Onyxia's services configuration Jun 10, 2024
@olevitt olevitt merged commit 39e78f0 into main Jun 10, 2024
8 checks passed
@olevitt olevitt deleted the secretonyxia branch June 10, 2024 13:19
@olevitt olevitt mentioned this pull request Jun 11, 2024
@olevitt olevitt mentioned this pull request Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants