-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add spotVM for GKE Node Pools #5443
Conversation
Signed-off-by: Alex R <[email protected]>
Signed-off-by: Alex R <[email protected]>
Hello! I am a robot who works on Magic Modules PRs. I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. Thanks for your contribution! A human will be with you soon. @melinath, please review this PR or find an appropriate assignee. |
Unfortunately I have no permissions to check why $ git checkout master
$ make terraform VERSION=ga OUTPUT_PATH="$GOPATH/src/github.com/hashicorp/terraform-provider-google"
$ cd "$GOPATH/src/github.com/hashicorp/terraform-provider-google"
# too many unrelated files are changed:
$ git status | wc -l
44
$ make lint
==> Checking source code against linters...
ERRO [linters context] typechecking error: /home/i/gopath:/google/gopath/src/github.com/hashicorp/terraform-provider-google/google/resource_compute_subnetwork.go:40:22: undeclared name: cidr
make: *** [GNUmakefile:27: lint] Error 7 |
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.
It looks like the linting errors are related to missing fields on container.NodeConfig. Perhaps you need to update a dependency in go.mod?
I'm not able to reproduce the broken lint check you described on master.
Signed-off-by: Alex R <[email protected]>
Signed-off-by: Alex R <[email protected]>
I'm running just the impacted test to see if this is working as expected. This comment is just a link for my own reference, no need to take action. UPDATE: that passed. |
/gcbrun |
I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccCloudFunctionsFunction_vpcConnector|TestAccComputeInstanceFromMachineImage_basic|TestAccComputeInstanceFromMachineImage_overrideMetadataDotStartupScript|TestAccComputeInstanceFromMachineImage_diffProject|TestAccComputeRegionNetworkEndpointGroup_regionNetworkEndpointGroupAppengineExample|TestAccContainerNodePool_withWorkloadIdentityConfig|TestAccContainerNodePool_withInvalidUpgradeSettings|TestAccEventarcTrigger_BasicHandWritten|TestAccNetworkServicesEdgeCacheOrigin_networkServicesEdgeCacheOriginAdvancedExample|TestAccNetworkServicesEdgeCacheService_networkServicesEdgeCacheServiceAdvancedExample|TestAccSqlUser_postgresIAM You can view the result here: https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=219570 |
Sorry, what should I do now? |
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.
LGTM,I agree the test failures seem unrelated.
* Add spotVM for GKE Node Pools Signed-off-by: Alex R <[email protected]> * Add spot test Signed-off-by: Alex R <[email protected]> * Guard for beta only Signed-off-by: Alex R <[email protected]> * Add beta note to docs Signed-off-by: Alex R <[email protected]>
GKE Node Pools now support Spot VMs (not to be confused with Preemptible VMs):
https://cloud.google.com/kubernetes-engine/docs/concepts/spot-vms
This is not supported in web UI yet, but
gcloud
cli have it:https://cloud.google.com/kubernetes-engine/docs/how-to/spot-vms#create_a_node_pool_with_enabled
API field
spot
: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/NodeConfigMoved from: hashicorp/terraform-provider-google-beta#3833
part of hashicorp/terraform-provider-google#10309
Sorry, can't run acceptance tests. This has been tested via compiling
terraform-provider-google-beta
and we are using this custom compiled provider now to manage our spot vm node pools in gke.If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)