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

CSI: Snapshot volume create should use vol.Secrets #10840

Merged
merged 2 commits into from
Jul 2, 2021

Conversation

ggriffiths
Copy link
Contributor

Signed-off-by: Grant Griffiths ggriffiths@purestorage.com

Fixes #10639

Signed-off-by: Grant Griffiths <ggriffiths@purestorage.com>
@ggriffiths
Copy link
Contributor Author

tested on my dev cluster

[root@ip-70-0-76-58 ~]# nomad version
Nomad v1.1.3-dev (1eff6fd07e2908b495f97b30a95034e331c1b1b6+CHANGES)
[root@ip-70-0-76-58 ~]# nomad volume snapshot create pxvol2 snap4
Snapshot ID         Volume ID     Size    Create Time           Ready?
800687039846414825  283728768536  10 GiB  1970-01-01T00:00:01Z  true

@tgross tgross self-requested a review July 2, 2021 12:15
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

Thanks @ggriffiths! LGTM!

I think in the future it's worth considering if we want to let the user provide snapshot-specific secrets via the API (or from Vault, see #7978), but this will fix the bug at hand and doesn't close off that path for us.

@tgross
Copy link
Member

tgross commented Jul 2, 2021

The fix for this will ship in Nomad 1.1.3. Snapshots are new for 1.1.0, so no backport required.

@ggriffiths
Copy link
Contributor Author

I think in the future it's worth considering if we want to let the user provide snapshot-specific secrets via the API

Agreed, that would also make sense too.

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nomad snapshot create does use persisted secrets
2 participants