Skip to content

Commit a4b136e

Browse files
committed
update annotations
1 parent c08d80a commit a4b136e

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

tencentcloud/services/tke/resource_tc_kubernetes_native_node_pool.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ resource "tencentcloud_kubernetes_native_node_pool" "kubernetes_native_node_pool
8282
}
8383
8484
annotations {
85-
name = "cluster-autoscaler.kubernetes.io/scale-down-disabled"
86-
value = "true"
85+
name = "node.tke.cloud.tencent.com/test-anno"
86+
value = "test"
8787
}
8888
annotations {
89-
name = "node.tke.cloud.tencent.com/security-agent"
90-
value = "false"
89+
name = "node.tke.cloud.tencent.com/test-label"
90+
value = "test"
9191
}
9292
}
9393
```

tencentcloud/services/tke/resource_tc_kubernetes_native_node_pool_test.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ func TestAccTencentCloudKubernetesNativeNodePoolResource_basic(t *testing.T) {
6767
resource.TestCheckResourceAttr("tencentcloud_kubernetes_native_node_pool.native_node_pool_test", "native.0.data_disks.0.mount_target", "/var/lib/containerd"),
6868
resource.TestCheckResourceAttr("tencentcloud_kubernetes_native_node_pool.native_node_pool_test", "native.0.data_disks.0.auto_format_and_mount", "false"),
6969
resource.TestCheckResourceAttr("tencentcloud_kubernetes_native_node_pool.native_node_pool_test", "native.0.key_ids.#", "1"),
70-
resource.TestCheckResourceAttr("tencentcloud_kubernetes_native_node_pool.native_node_pool_test", "annotations.#", "0"),
71-
//resource.TestCheckResourceAttrSet("tencentcloud_kubernetes_native_node_pool.native_node_pool_test", "annotations.0.name"),
72-
//resource.TestCheckResourceAttrSet("tencentcloud_kubernetes_native_node_pool.native_node_pool_test", "annotations.0.value"),
70+
resource.TestCheckResourceAttr("tencentcloud_kubernetes_native_node_pool.native_node_pool_test", "annotations.#", "1"),
71+
resource.TestCheckResourceAttrSet("tencentcloud_kubernetes_native_node_pool.native_node_pool_test", "annotations.0.name"),
72+
resource.TestCheckResourceAttrSet("tencentcloud_kubernetes_native_node_pool.native_node_pool_test", "annotations.0.value"),
7373
),
7474
},
7575
{
@@ -107,7 +107,7 @@ func TestAccTencentCloudKubernetesNativeNodePoolResource_basic(t *testing.T) {
107107
resource.TestCheckResourceAttr("tencentcloud_kubernetes_native_node_pool.native_node_pool_test", "native.0.data_disks.0.disk_size", "60"),
108108
resource.TestCheckResourceAttr("tencentcloud_kubernetes_native_node_pool.native_node_pool_test", "native.0.data_disks.0.auto_format_and_mount", "true"),
109109
resource.TestCheckResourceAttr("tencentcloud_kubernetes_native_node_pool.native_node_pool_test", "native.0.key_ids.#", "2"),
110-
resource.TestCheckResourceAttr("tencentcloud_kubernetes_native_node_pool.native_node_pool_test", "annotations.#", "0"),
110+
resource.TestCheckResourceAttr("tencentcloud_kubernetes_native_node_pool.native_node_pool_test", "annotations.#", "2"),
111111
),
112112
},
113113
{
@@ -299,10 +299,10 @@ resource "tencentcloud_kubernetes_native_node_pool" "native_node_pool_test" {
299299
key_ids = [tencentcloud_key_pair.key_pair1.id]
300300
}
301301
302-
//annotations {
303-
// name = "cluster-autoscaler.kubernetes.io/scale-down-disabled"
304-
// value = "true"
305-
//}
302+
annotations {
303+
name = "node.tke.cloud.tencent.com/test-anno"
304+
value = "test"
305+
}
306306
}
307307
`
308308

@@ -386,13 +386,13 @@ resource "tencentcloud_kubernetes_native_node_pool" "native_node_pool_test" {
386386
key_ids = [local.ssh1, local.ssh2]
387387
}
388388
389-
//annotations {
390-
// name = "cluster-autoscaler.kubernetes.io/scale-down-disabled"
391-
// value = "true"
392-
//}
393-
//annotations {
394-
// name = "node.tke.cloud.tencent.com/security-agent"
395-
// value = "false"
396-
//}
389+
annotations {
390+
name = "node.tke.cloud.tencent.com/test-anno"
391+
value = "test"
392+
}
393+
annotations {
394+
name = "node.tke.cloud.tencent.com/test-label"
395+
value = "test"
396+
}
397397
}
398398
`

website/docs/r/kubernetes_native_node_pool.html.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ resource "tencentcloud_kubernetes_native_node_pool" "kubernetes_native_node_pool
9393
}
9494
9595
annotations {
96-
name = "cluster-autoscaler.kubernetes.io/scale-down-disabled"
97-
value = "true"
96+
name = "node.tke.cloud.tencent.com/test-anno"
97+
value = "test"
9898
}
9999
annotations {
100-
name = "node.tke.cloud.tencent.com/security-agent"
101-
value = "false"
100+
name = "node.tke.cloud.tencent.com/test-label"
101+
value = "test"
102102
}
103103
}
104104
```

0 commit comments

Comments
 (0)