Skip to content

Commit

Permalink
feat(tke): tke health check policy
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-tx committed Sep 14, 2024
1 parent 081dd61 commit f978623
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ func TestAccTencentCloudKubernetesHealthCheckPolicyResource_basic(t *testing.T)
})
}

const testAccKubernetesHealthCheckPolicyCreate = testAccTkeCluster + `
// const testAccKubernetesHealthCheckPolicyCreate = testAccTkeCluster + `
const testAccKubernetesHealthCheckPolicyCreate = `

Check failure on line 48 in tencentcloud/services/tke/resource_tc_kubernetes_health_check_policy_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

other declaration of testAccKubernetesHealthCheckPolicyCreate (typecheck)
resource "tencentcloud_kubernetes_health_check_policy" "kubernetes_health_check_policy" {
cluster_id = tencentcloud_kubernetes_cluster.managed_cluster.id
cluster_id = "cls-eh0da110"
name = "example"
rules {
name = "OOMKilling"
Expand All @@ -62,10 +64,11 @@ resource "tencentcloud_kubernetes_health_check_policy" "kubernetes_health_check_
}
`

const testAccKubernetesHealthCheckPolicyUpdate = testAccTkeCluster + `
// const testAccKubernetesHealthCheckPolicyUpdate = testAccTkeCluster + `
const testAccKubernetesHealthCheckPolicyCreate = `

Check failure on line 68 in tencentcloud/services/tke/resource_tc_kubernetes_health_check_policy_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

`testAccKubernetesHealthCheckPolicyCreate` redeclared in this block (typecheck)
resource "tencentcloud_kubernetes_health_check_policy" "kubernetes_health_check_policy" {
cluster_id = tencentcloud_kubernetes_cluster.managed_cluster.id
cluster_id = "cls-eh0da110"
name = "example"
rules {
name = "OOMKilling"
Expand Down

0 comments on commit f978623

Please sign in to comment.