-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
providers/google: Add subnetwork_project field to enable cross-project networking in instance templates #11110
providers/google: Add subnetwork_project field to enable cross-project networking in instance templates #11110
Conversation
I do not know how to pass GOOGLE_XPN_HOST_PROJECT to travis. |
func TestAccComputeInstanceTemplate_subnet_xpn(t *testing.T) { | ||
var instanceTemplate compute.InstanceTemplate | ||
var xpn_host = os.Getenv("GOOGLE_XPN_HOST_PROJECT") | ||
if xpn_host == "" { |
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.
If you omit this check, then the travis build will pass - we have this already setup with the correct parameter
Hi @zbikmarc Thanks for the work here - I made a comment inline to remove the check for the XPN project - we have that handled in the provider tests That will make the build pass Paul |
Hi @zbikmarc
P. |
I hope this time everything will be ok ;) |
Hi @zbikmarc thanks for the work here so far, unfortunately, the test doesn't pass:
I believe this is because you are not setting the subnetwork_project id in the Read func - I am not 100% sure this is the case, but though i'd make a suggestions Thanks Paul |
I added subnetwork_project to Read. |
@stack72 |
Nice work @zbikmarc :)
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This change allows to use XPN feature with instance templates. It is an extension of #9662
One thing which is currently missing is showing subnetwork project in terraform show.