Skip to content

Commit

Permalink
Fix kubernetes_daemon_set_v1 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sbocinec committed Feb 19, 2024
1 parent c2d8efb commit fde82c2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions kubernetes/resource_kubernetes_daemon_set_v1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,7 @@ func testAccKubernetesDaemonSetV1ConfigWithTemplateMetadata(depName, imageName s
container {
image = "%s"
name = "containername"
command = ["sleep", "infinity"]
}
termination_grace_period_seconds = 1
}
Expand Down Expand Up @@ -772,6 +773,7 @@ func testAccKubernetesDaemonSetV1WithInitContainer(depName, imageName string) st
container {
image = "%s"
name = "containername"
command = ["sleep", "infinity"]
}
termination_grace_period_seconds = 1
}
Expand Down Expand Up @@ -805,6 +807,7 @@ func testAccKubernetesDaemonSetV1WithNoTopLevelLabels(depName, imageName string)
container {
image = "%s"
name = "containername"
command = ["sleep", "infinity"]
}
termination_grace_period_seconds = 1
}
Expand Down Expand Up @@ -859,6 +862,7 @@ func testAccKubernetesDaemonSetV1ConfigWithTolerations(rcName, imageName string,
container {
image = "%s"
name = "containername"
command = ["sleep", "infinity"]
}
termination_grace_period_seconds = 1
}
Expand Down Expand Up @@ -912,6 +916,7 @@ func testAccKubernetesDaemonSetV1ConfigWithContainerSecurityContextSeccompProfil
}
}
}
wait_for_rollout = false
}
`, deploymentName, seccompProfileType, imageName, seccompProfileType)
}
Expand Down Expand Up @@ -962,6 +967,7 @@ func testAccKubernetesDaemonSetV1ConfigWithContainerSecurityContextSeccompProfil
}
}
}
wait_for_rollout = false
}
`, deploymentName, imageName)
}
Expand Down Expand Up @@ -994,18 +1000,17 @@ func testAccKubernetesDaemonSetV1ConfigWithResourceRequirements(deploymentName,
container {
image = "%s"
name = "containername"
command = ["sleep", "infinity"]
resources {
limits = {
cpu = "0.5"
memory = "512Mi"
"nvidia/gpu" = "1"
}
requests = {
cpu = "250m"
memory = "50Mi"
"nvidia/gpu" = "1"
}
}
}
Expand Down Expand Up @@ -1045,6 +1050,7 @@ func testAccKubernetesDaemonSetV1ConfigWithEmptyResourceRequirements(deploymentN
container {
image = "%s"
name = "containername"
command = ["sleep", "infinity"]
resources {
limits = {}
Expand Down Expand Up @@ -1087,6 +1093,7 @@ func testAccKubernetesDaemonSetV1ConfigWithResourceRequirementsLimitsOnly(deploy
container {
image = "%s"
name = "containername"
command = ["sleep", "infinity"]
resources {
limits = {
Expand Down

0 comments on commit fde82c2

Please sign in to comment.