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: get secret from pvc annotation #20

Merged
merged 9 commits into from
Sep 4, 2024

Conversation

olevski
Copy link
Member

@olevski olevski commented Aug 30, 2024

A few changes to the driver.

Most notable is the change to the storage class which required the sidecar versions to be updated. Also because I could not get nix to work - I even undid go package updates because nix needed some manual step to update a single sha for handling the go packages. So because of this I added a dockerfile and made chartpress build and push the image rather than nix.

olevski and others added 2 commits August 28, 2024 21:44
This makes it os that the secret that contains the configuration for
rclone which is needed to mount this does not have to be named the same
as the PVC. But an annotation for the PVC makes the csi driver load the
secret automatically - this is common for csi drivers and it is
functionality you get for free. If no annotation is provided then the
driver uses the old method of loading a secret named the same as teh
PVC.
@olevski olevski requested a review from a team as a code owner August 30, 2024 23:14
@olevski olevski marked this pull request as draft August 30, 2024 23:14
@olevski olevski force-pushed the feat-get-secret-from-pvc-annotation branch 3 times, most recently from fd8bdd1 to 3aa87d6 Compare August 30, 2024 23:37
@olevski olevski force-pushed the feat-get-secret-from-pvc-annotation branch from 886b77e to 9538027 Compare August 31, 2024 09:36
@olevski olevski marked this pull request as ready for review August 31, 2024 12:53
Copy link
Member

@Panaetius Panaetius left a comment

Choose a reason for hiding this comment

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

thanks, the handling of the background process looks much cleaner now!
only had two minor comments

@olevski olevski requested a review from Panaetius September 2, 2024 08:16
@olevski olevski mentioned this pull request Sep 2, 2024
@olevski
Copy link
Member Author

olevski commented Sep 3, 2024

This change is part of the following stack:

Change managed by git-spice.

@olevski olevski merged commit c76e193 into master Sep 4, 2024
1 check passed
olevski added a commit that referenced this pull request Sep 30, 2024
In #20 we added different locations where the namespace and secret name
are held in the context. We missed this change needed to make it fully
compatible with old/existing volumes that were created in a cluster
prior to the rollout of #20.
olevski added a commit that referenced this pull request Sep 30, 2024
In #20 we added different locations where the namespace and secret name
are held in the context. We missed this change needed to make it fully
compatible with old/existing volumes that were created in a cluster
prior to the rollout of #20.
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.

2 participants