Skip to content

Commit

Permalink
fix: tests failing due to duplicated providermessage. I.e
Browse files Browse the repository at this point in the history
     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
  • Loading branch information
alekc committed Sep 18, 2023
1 parent e243dc5 commit bf08d9a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions _examples/crds/couchbase.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
provider "kubectl" {
apply_retry_count = 5
}

resource "kubectl_manifest" "test" {
depends_on = ["kubectl_manifest.definecrd"]

Expand Down
2 changes: 0 additions & 2 deletions _examples/ingress_basic/basic_ingress.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
provider "kubectl" {}

resource "kubectl_manifest" "test" {
yaml_body = <<YAML
apiVersion: networking.k8s.io/v1
Expand Down
4 changes: 1 addition & 3 deletions _examples/ingress_complex/complex_ingress.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
provider "kubectl" {}

resource "kubectl_manifest" "test" {
yaml_body = <<YAML
apiVersion: networking.k8s.io/v1
Expand Down Expand Up @@ -29,4 +27,4 @@ spec:
hosts:
- bob
YAML
}
}

0 comments on commit bf08d9a

Please sign in to comment.