Skip to content

Conversation

umeshkumhar
Copy link
Contributor

  • Updated guest_accelerator to add gpu driver installation
@umeshkumhar umeshkumhar requested review from a team, Jberlinsky and ericyz as code owners October 11, 2023 19:38
@bharathkkb
Copy link
Member

/gcbrun

@ericyz
Copy link
Collaborator

ericyz commented Oct 15, 2023

Please review the logs below
gpu_driver_version = lookup(each.value, "gpu_driver_version", "")

  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") 
@umeshkumhar
Copy link
Contributor Author

@ericyz @bharathkkb Updated the fix.

@ericyz
Copy link
Collaborator

ericyz commented Oct 23, 2023

/gcbrun

@ericyz
Copy link
Collaborator

ericyz commented Oct 23, 2023

@umeshkumhar - please find error logs below

--- old/cluster.tf
+++ new/cluster.tf
@@ -528,11 +528,11 @@
type = lookup(each.value, "accelerator_type", "")
count = lookup(each.value, "accelerator_count", 0)
gpu_partition_size = lookup(each.value, "gpu_partition_size", null)

  •  dynamic "gpu_driver_installation_config" { for_each = lookup(each.value, "gpu_driver_version", "") != "" ? [1] : [] content { 
  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") 
  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") } } } 

@@ -727,7 +727,7 @@
dynamic "gpu_driver_installation_config" {
for_each = lookup(each.value, "gpu_driver_version", "") != "" ? [1] : []
content {

  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") 
  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") } } } 

Error: terraform fmt failed with exit code 3
Check the output for diffs and correct using terraform fmt


modules/beta-private-cluster-update-variant/cluster.tf
--- old/modules/beta-private-cluster-update-variant/cluster.tf
+++ new/modules/beta-private-cluster-update-variant/cluster.tf
@@ -739,7 +739,7 @@
dynamic "gpu_driver_installation_config" {
for_each = lookup(each.value, "gpu_driver_version", "") != "" ? [1] : []
content {

  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") 
  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") } } } 

@@ -974,7 +974,7 @@
dynamic "gpu_driver_installation_config" {
for_each = lookup(each.value, "gpu_driver_version", "") != "" ? [1] : []
content {

  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") 
  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") } } 

Error: terraform fmt failed with exit code 3
Check the output for diffs and correct using terraform fmt


}
modules/beta-public-cluster/cluster.tf
--- old/modules/beta-public-cluster/cluster.tf
+++ new/modules/beta-public-cluster/cluster.tf
@@ -626,7 +626,7 @@
dynamic "gpu_driver_installation_config" {
for_each = lookup(each.value, "gpu_driver_version", "") != "" ? [1] : []
content {

  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") 
  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") } } } 

@@ -860,7 +860,7 @@
dynamic "gpu_driver_installation_config" {
for_each = lookup(each.value, "gpu_driver_version", "") != "" ? [1] : []
content {

  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") 
  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") } } } 

Error: terraform fmt failed with exit code 3
Check the output for diffs and correct using terraform fmt


modules/private-cluster/cluster.tf
--- old/modules/private-cluster/cluster.tf
+++ new/modules/private-cluster/cluster.tf
@@ -551,7 +551,7 @@
dynamic "gpu_driver_installation_config" {
for_each = lookup(each.value, "gpu_driver_version", "") != "" ? [1] : []
content {

  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") 
  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") } } } 

@@ -746,7 +746,7 @@
dynamic "gpu_driver_installation_config" {
for_each = lookup(each.value, "gpu_driver_version", "") != "" ? [1] : []
content {

  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") 
  •  gpu_driver_version = lookup(each.value, "gpu_driver_version", "") } } } 

Error: terraform fmt failed with exit code 3

@umeshkumhar
Copy link
Contributor Author

umeshkumhar commented Oct 26, 2023

@ericyz I hope this should fix lints now, can we rerun the testcases again?

@apeabody
Copy link
Collaborator

/gcbrun

@ericyz
Copy link
Collaborator

ericyz commented Oct 27, 2023

Notes for myself. feature added in v4.75.0

Copy link
Collaborator

@ericyz ericyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants