-
Notifications
You must be signed in to change notification settings - Fork 2k
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: Add secrets flag support for delete volume #11245
Conversation
94c55d7
to
9928ff2
Compare
Tested this on my cluster. The scenario is that a PX volume has been created with a token that expires in one minute. Deleting will fail after a minute because this token is expired,
Because the stored token has expired as seen above, we must generate a new token:
After that, pass it to the volume delete command:
|
9928ff2
to
f1b1783
Compare
f1b1783
to
069d1c6
Compare
069d1c6
to
a468ca0
Compare
A few flakey tests seem to be failing, but I think that's unrelated. Ready for review |
Thank you @ggriffiths! I review this soon 🙂 |
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.
The PR looks good @ggriffiths.
Some minor comments, but the bigger blocker is on me to have the Nomad API accept and pass the secrets as HTTP headers instead of query params, as this is a safer option.
I will let you know once that PR is up and then you can adjust your work here 🙂
c51ce21
to
48eb5a2
Compare
@ggriffiths I've just merged #12144 which has that change to use HTTP headers. If you'd like to rebase this PR on |
Cool, I'll rebase this PR. Thanks @tgross ! |
Signed-off-by: Grant Griffiths <[email protected]>
48eb5a2
to
6c54198
Compare
Hi @ggriffiths! We're getting very close to releasing the Nomad 1.3.0 beta, so I've carried this PR to rebase it and bring it up to date with the other secrets-related PRs we've done recently. I'm going to make sure this is green in CI and then probably tap @lgfa29 for a review of the extra commits I've added before we get it merged in. |
6c54198
to
4cc25e1
Compare
sounds good, thanks @tgross! |
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.
Glad to see this moving forward, thank you for taking care of it @tgross and sorry for the delay in getting this merged @ggriffiths.
Not a problem @lgfa29, thanks! |
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. |
Fixes #10997
Signed-off-by: Grant Griffiths [email protected]