-
Notifications
You must be signed in to change notification settings - Fork 1.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
Support IPV6_ONLY
configurations for compute API
#12283
base: main
Are you sure you want to change the base?
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @slevenick, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 1060 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
@@ -541,7 +541,8 @@ func ResourceComputeInstance() *schema.Resource { | |||
|
|||
"ipv6_access_config": { | |||
Type: schema.TypeList, | |||
Optional: true, | |||
Optional: true, | |||
Computed: true, |
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.
Why are we adding Computed on this field?
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.
As stated in PR's description, if the subnetwork
given to the network_interface
is a subnetwork of external IPv6 addresses ipv6_access_config
will get filled from the API without user's interaction
resource "google_compute_subnetwork" "test" {
name = "testing"
network = google_compute_network.test.self_link
stack_type = "IPV6_ONLY"
ipv6_access_type = "EXTERNAL"
}
resource "google_compute_instance" "test" {
name = "test"
machine_type = "n2-standard-2"
boot_disk {
initialize_params {
image = "debian-cloud/debian-11"
}
}
network_interface {
subnetwork = google_compute_subnetwork.test.self_link
stack_type = "IPV6_ONLY"
}
}
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
What does this fail on? TestAccComputeInstanceNetworkIntefaceWithSecurityPolicy Can't test this locally
|
|
related to b/360733056
This provides support to set external and internal IPV6 addresses only for VM's and templates
I'm not sure if changing
ipv6_access_config
toComputed: true
is a breaking change but it's needed because when providing external ipv6 subnetwork the field will be filled from API. CI tests should spot this if it is breaking but would love some feedback hereRelease Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.