Skip to content

Commit 44c6a68

Browse files
author
Anthony Berger
committed
fix : add testAccCloudProjectKubeNodePoolConfigWithoutMaxMin
1 parent e406dfc commit 44c6a68

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

ovh/resource_cloud_project_kube_nodepool_test.go

+39
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,45 @@ resource "ovh_cloud_project_kube_nodepool" "pool" {
290290
291291
`
292292

293+
var testAccCloudProjectKubeNodePoolConfigWithoutMaxMin = `
294+
resource "ovh_cloud_project_kube" "cluster" {
295+
service_name = "%s"
296+
name = "%s"
297+
region = "%s"
298+
version = "%s"
299+
}
300+
301+
resource "ovh_cloud_project_kube_nodepool" "pool" {
302+
service_name = ovh_cloud_project_kube.cluster.service_name
303+
kube_id = ovh_cloud_project_kube.cluster.id
304+
name = ovh_cloud_project_kube.cluster.name
305+
flavor_name = "b2-7"
306+
desired_nodes = 1
307+
template {
308+
metadata {
309+
annotations = {
310+
a1 = "av1"
311+
}
312+
finalizers = ["finalizer.extensions/v1beta1"]
313+
labels = {
314+
l1 = "lv1"
315+
}
316+
}
317+
spec {
318+
unschedulable = false
319+
taints = [
320+
{
321+
effect = "PreferNoSchedule"
322+
key = "t1"
323+
value = "tv1"
324+
}
325+
]
326+
}
327+
}
328+
}
329+
330+
`
331+
293332
func TestAccCloudProjectKubeNodePoolRessource(t *testing.T) {
294333
name := acctest.RandomWithPrefix(test_prefix)
295334
region := os.Getenv("OVH_CLOUD_PROJECT_KUBE_REGION_TEST")

0 commit comments

Comments
 (0)