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 3f8ffae commit f4cbd9b
Showing 1 changed file with 27 additions and 20 deletions.
47 changes: 27 additions & 20 deletions kubernetes/resource_kubernetes_daemon_set_v1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,9 @@ func testAccKubernetesDaemonSetV1ConfigWithTemplateMetadata(depName, imageName s
spec {
container {
image = "%s"
name = "containername"
image = "%s"
name = "containername"
command = ["sleep", "infinity"]
}
termination_grace_period_seconds = 1
}
Expand Down Expand Up @@ -770,8 +771,9 @@ func testAccKubernetesDaemonSetV1WithInitContainer(depName, imageName string) st
}
container {
image = "%s"
name = "containername"
image = "%s"
name = "containername"
command = ["sleep", "infinity"]
}
termination_grace_period_seconds = 1
}
Expand Down Expand Up @@ -803,8 +805,9 @@ func testAccKubernetesDaemonSetV1WithNoTopLevelLabels(depName, imageName string)
spec {
container {
image = "%s"
name = "containername"
image = "%s"
name = "containername"
command = ["sleep", "infinity"]
}
termination_grace_period_seconds = 1
}
Expand Down Expand Up @@ -857,8 +860,9 @@ func testAccKubernetesDaemonSetV1ConfigWithTolerations(rcName, imageName string,
}
container {
image = "%s"
name = "containername"
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 @@ -992,20 +998,19 @@ func testAccKubernetesDaemonSetV1ConfigWithResourceRequirements(deploymentName,
spec {
container {
image = "%s"
name = "containername"
image = "%s"
name = "containername"
command = ["sleep", "infinity"]
resources {
limits = {
cpu = "0.5"
memory = "512Mi"
"nvidia/gpu" = "1"
cpu = "0.5"
memory = "512Mi"
}
requests = {
cpu = "250m"
memory = "50Mi"
"nvidia/gpu" = "1"
cpu = "250m"
memory = "50Mi"
}
}
}
Expand Down Expand Up @@ -1043,8 +1048,9 @@ func testAccKubernetesDaemonSetV1ConfigWithEmptyResourceRequirements(deploymentN
spec {
container {
image = "%s"
name = "containername"
image = "%s"
name = "containername"
command = ["sleep", "infinity"]
resources {
limits = {}
Expand Down Expand Up @@ -1085,8 +1091,9 @@ func testAccKubernetesDaemonSetV1ConfigWithResourceRequirementsLimitsOnly(deploy
spec {
container {
image = "%s"
name = "containername"
image = "%s"
name = "containername"
command = ["sleep", "infinity"]
resources {
limits = {
Expand Down

0 comments on commit f4cbd9b

Please sign in to comment.