-
Notifications
You must be signed in to change notification settings - Fork 11
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
keyvault: update keyvault to use release/v1 secret protocol #41
Conversation
Signed-off-by: Yingrong Zhao <[email protected]>
3ee2101
to
b9bfd63
Compare
Signed-off-by: Yingrong Zhao <[email protected]>
b9bfd63
to
d51705a
Compare
8443f34
to
4e59112
Compare
@VinozzZ Would you please fill out the PR with a description of the change and link to the relevant issue? |
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.
One way to get some tests, even if they aren't part of CI would be to have a bash script that you could execute before checking in that would validate a few scenarios, and use the az cli to check that the values were persisted properly.
Signed-off-by: Yingrong Zhao <[email protected]>
4e59112
to
581d1f1
Compare
Signed-off-by: Yingrong Zhao <[email protected]>
ecdc6eb
to
5195b75
Compare
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.
Can you update the readme to make it clear that the vault in the secrets config is also written to by porter?
tests/integration/script.sh
Outdated
|
||
PORTER_HOME=${TMP}/bin/ | ||
git fetch --no-tags --progress -- https://github.com/getporter/porter.git +refs/heads/release/v1:refs/remotes/origin/release/v1 | ||
git worktree add -f "$PORTER_HOME" "release/v1" |
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.
I received the following error when I ran the script:
$ ./tests/integration/script.sh carolynvs
remote: Enumerating objects: 28196, done.
remote: Counting objects: 100% (833/833), done.
remote: Compressing objects: 100% (612/612), done.
remote: Total 28196 (delta 375), reused 476 (delta 209), pack-reused 27363
Receiving objects: 100% (28196/28196), 34.61 MiB | 60.68 MiB/s, done.
Resolving deltas: 100% (16262/16262), done.
From https://github.com/getporter/porter
* [new branch] release/v1 -> origin/release/v1
fatal: invalid reference: release/v1
EXIT STATUS: 128
cleaned up test successfully
Instead of implementing here in a script installing porter, you can use the https://github.com/getporter/magefiles target porter.EnsurePorter
. How about you add a target called TestIntegration
and have it depend on EnsurePorter. Then it can call the bash script here.
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.
From my understanding, the EnsurePorter
only works for published release versions? In this case, the test would fail since the new secret protocol is not in a release yet.
What's your git version?
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.
I'm on 2.32
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.
I changed the reference to use the remote branch. Let me know if it still causes trouble for u
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 script is expecting me to set PORTER_HOME and when I set that to $PWD/bin
it complains that it's not a working tree. Is this supposed to be the path to the porter repository or something that is set internally in the script and not by me?
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.
That's odd. What error do you get that prompt you to set PORTER_HOME manually? It should do that automatically by the script
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.
I finally got it to work by setting export PORTER_HOME='
. Maybe just remove the set -u
flag, or move up the declaration of PORTER_HOME above cleanup?
5195b75
to
fb2ffad
Compare
Signed-off-by: Yingrong Zhao <[email protected]>
fb2ffad
to
6690f31
Compare
Signed-off-by: Yingrong Zhao <[email protected]>
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.
Thanks for updating the plugin to work with the new changes!
This PR does three things:
This PR closes #40