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

This commit is contained in:
Steve McMaster 2024-07-20 13:47:25 -04:00
parent b63a39384c
commit 8479613654

View File

@ -420,13 +420,12 @@ resource "kubernetes_deployment" "main" {
{% endblock %} {% endblock %}
{% block kubernetes_pod_main_tolerations %} {% block kubernetes_pod_main_tolerations %}
toleration = data.coder_parameter.gpu.value == 0 ? [] : [ toleration {
{ for_each = data.coder_parameter.gpu.value == 0 ? [] : [1]
"key": "nvidia.com/gpu", key = "nvidia.com/gpu"
"operator": "Exists", operator = "Exists"
"effect": "NoSchedule" effect = "NoSchedule"
} }
]
{% endblock %} {% endblock %}
{% block kubernetes_pod_main_container %} {% block kubernetes_pod_main_container %}