Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
openstack backend #170
base: master
Are you sure you want to change the base?
openstack backend #170
Changes from all commits
b4dfab2
99a6884
ccd286b
81ec212
6adfc24
b08c9ca
e0052c3
c82e63f
b741ae6
ba946a3
5e22375
5c7f2bb
0e4f033
8fbae16
c83cc17
b17804a
8aa5ae9
6c293f0
2d98f1b
463c503
d82abf5
c9bd783
e0fe707
94519f6
417feb6
f1209f3
8c3401c
c3762f2
7aed549
cbd1b4b
90ff9a9
b06d4b9
cb5957e
f20de8f
8d5f947
5104e7b
6b1df95
c74a8e9
5703817
78edd9b
12e2fad
bca797c
1b481f0
0eb485d
7578146
391f32e
e93ff91
8a2c853
5cb6810
b18bfde
15c7274
da9a266
ec72ad6
d2d54a3
0484ab2
5f673c8
755dc0e
86b398d
701600c
027ba48
58c7fad
7f84982
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
In addition to the above, which of those variables have a direct equivalent in the Google backend setup?
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.
In google we use the env var SPREAD_GOOGLE_KEY which has a link to the file with the following data:
"type"
"project_id"
"private_key_id"
"private_key"
"client_email"
"client_id"
"auth_uri"
"token_uri"
"auth_provider_x509_cert_url"
"client_x509_cert_url"
I updated the list of environment variables in the docs and I understand that the equivalent are:
project_id <-> OS_PROJECT_ID
auth_uri <-> OS_AUTH_URL
private_key_id <-> OS_ACCESS_KEY
private_key <-> OS_SECRET_KEY
client_id <-> ( OS_PROJECT_DOMAIN_NAME | OS_USER_DOMAIN_NAME )
Large diffs are not rendered by default.
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.
This is adding a fake method, with a real internal type that has been renamed to be public, and then before calling the internal type it actually changes the call signature by cooking another internal type over with a fake object as well. To close it all, some methods are defined in the type that has been renamed, and some methods are defined in the original internal type name.
It would be nice to have a cleaner API 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.
Good point, Thank you!
I updated to use a simpler signature only exposing params relevant to the tests:
OpenstackWaitProvision(p Provider, ctx context.Context, serverID, serverName string)
OpenstackWaitServerBoot(p Provider, ctx context.Context, serverID, serverName string, serverNetworks []string)