fix
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Steve McMaster 2024-07-20 13:34:19 -04:00
parent 69a3d8b20f
commit b63a39384c

View File

@ -404,14 +404,6 @@ resource "kubernetes_deployment" "main" {
}
}
toleration = data.coder_parameter.gpu.value == 0 ? [] : [
{
"key": "nvidia.com/gpu",
"operator": "Exists",
"effect": "NoSchedule"
}
]
template {
metadata {
labels = {
@ -427,6 +419,16 @@ resource "kubernetes_deployment" "main" {
}
{% endblock %}
{% block kubernetes_pod_main_tolerations %}
toleration = data.coder_parameter.gpu.value == 0 ? [] : [
{
"key": "nvidia.com/gpu",
"operator": "Exists",
"effect": "NoSchedule"
}
]
{% endblock %}
{% block kubernetes_pod_main_container %}
container {
name = "dev"