Skip to content
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

Align taints and labels #203

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

vradicevicds
Copy link
Contributor

@vradicevicds vradicevicds commented Mar 25, 2025

This PR aligns taints and labels of EKS nodegroups.

Terraform v1.9.4
on windows_amd64

  • provider registry.terraform.io/gavinbunney/kubectl v1.19.0
  • provider registry.terraform.io/hashicorp/aws v5.60.0
  • provider registry.terraform.io/hashicorp/helm v2.13.2
  • provider registry.terraform.io/hashicorp/http v3.4.3
  • provider registry.terraform.io/hashicorp/kubernetes v2.36.0
  • provider registry.terraform.io/hashicorp/random v3.6.2
  • provider registry.terraform.io/hashicorp/tls v4.0.5

gpu_operator_config = var.gpu_operator_config
gpu_operator_config = merge(
var.gpu_operator_config,
var.ivsGpuNodePool ? { driver_versions = distinct(concat([for driver in var.gpu_operator_config.driver_versions : driver], [var.ivsGpuDriverVersion])) } : {}
Copy link
Contributor

Choose a reason for hiding this comment

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

gpu_operator_config = merge(
  var.gpu_operator_config,
  var.ivsGpuNodePool ? {
    driver_versions = distinct(concat(var.gpu_operator_config.driver_versions, [var.ivsGpuDriverVersion]))
  } : {}
)

Copy link
Contributor

Choose a reason for hiding this comment

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

list comprehension unnecessary, var.gpu_operator_config.driver_versions is already a list

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed comprehension.

"product" = "ivs",
"purpose" = "gpu"
"product" = "ivs",
"gpu-driver" = var.ivsGpuDriverVersion
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need this label?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This label is used to install correct driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants