From bf08d9ae1694c008dc7ef013dfa2f5282e82030c Mon Sep 17 00:00:00 2001 From: Alexander Chernov Date: Mon, 18 Sep 2023 18:12:02 +0100 Subject: [PATCH] fix: tests failing due to duplicated providermessage. I.e resource_kubectl_examples_test.go:40: Step 1/1 error: Error running pre-apply refresh: exit status 1 Error: Duplicate provider configuration on terraform_plugin_test.tf line 2: 2: provider "kubectl" { A default (non-aliased) provider configuration for "kubectl" was already given at terraform_plugin_test.tf:1,1-19. If multiple configurations are required, set the "alias" argument for alternative configurations. testing_new.go:74: Error retrieving state, there may be dangling resources: exit status 1 --- _examples/crds/couchbase.tf | 4 ---- _examples/ingress_basic/basic_ingress.tf | 2 -- _examples/ingress_complex/complex_ingress.tf | 4 +--- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/_examples/crds/couchbase.tf b/_examples/crds/couchbase.tf index e08695a7..42934158 100644 --- a/_examples/crds/couchbase.tf +++ b/_examples/crds/couchbase.tf @@ -1,7 +1,3 @@ -provider "kubectl" { - apply_retry_count = 5 -} - resource "kubectl_manifest" "test" { depends_on = ["kubectl_manifest.definecrd"] diff --git a/_examples/ingress_basic/basic_ingress.tf b/_examples/ingress_basic/basic_ingress.tf index bb26df3e..fc96d96e 100644 --- a/_examples/ingress_basic/basic_ingress.tf +++ b/_examples/ingress_basic/basic_ingress.tf @@ -1,5 +1,3 @@ -provider "kubectl" {} - resource "kubectl_manifest" "test" { yaml_body = <