From 8d37caac96c92f61efd06260a91f7a1999cb84f0 Mon Sep 17 00:00:00 2001 From: Vipin Vijaykumar Date: Wed, 25 Sep 2024 17:29:16 +0200 Subject: [PATCH] chore: Update references Update reference to cloudfoundry/cloudfoundry --- DEVELOPER.md | 4 ++-- assets/provider-config-local.txt | 2 +- docs/index.md | 2 +- docs/resources/app.md | 2 +- docs/resources/org_quota.md | 2 +- examples/provider/provider.tf | 2 +- examples/resources/cloudfoundry_app/resource.tf | 2 +- examples/resources/cloudfoundry_org_quota/resource.tf | 2 +- .../provider/fixtures/resource_mta_invalid_mta_path.yaml | 8 ++++---- main.go | 2 +- migration-guide/Readme.md | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/DEVELOPER.md b/DEVELOPER.md index d35cb12..9114cfd 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -44,7 +44,7 @@ The configuration should look similar to this: ```hcl provider_installation { dev_overrides { - "SAP/cloudfoundry" = "/path/to/go/bin" # the GOBIN directory can be found in the folder which `go env GOPATH` returns + "cloudfoundry/cloudfoundry" = "/path/to/go/bin" # the GOBIN directory can be found in the folder which `go env GOPATH` returns } direct {} @@ -90,7 +90,7 @@ If the setup was successful you should see the following message: │ Warning: Provider development overrides are in effect │ │ The following provider development overrides are set in the CLI configuration: -│ - SAP/cloudfoundry in /go/bin +│ - cloudfoundry/cloudfoundry in /go/bin │ │ The behavior may therefore not match any released version of the provider and applying changes may cause the state to become incompatible with published releases. ╵ diff --git a/assets/provider-config-local.txt b/assets/provider-config-local.txt index cce9ebb..63efe81 100644 --- a/assets/provider-config-local.txt +++ b/assets/provider-config-local.txt @@ -1,6 +1,6 @@ provider_installation { dev_overrides { - "SAP/cloudfoundry" = "/go/bin" + "cloudfoundry/cloudfoundry" = "/go/bin" } direct {} diff --git a/docs/index.md b/docs/index.md index 84918a3..c1bce3f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -14,7 +14,7 @@ The Cloud Foundry Terraform plugin is an integration that allows users to levera terraform { required_providers { cloudfoundry = { - source = "SAP/cloudfoundry" + source = "cloudfoundry/cloudfoundry" version = "1.0.0-rc1" } } diff --git a/docs/resources/app.md b/docs/resources/app.md index 1a6a96f..83a03bf 100644 --- a/docs/resources/app.md +++ b/docs/resources/app.md @@ -15,7 +15,7 @@ Provides a Cloud Foundry resource to manage applications. terraform { required_providers { cloudfoundry = { - source = "sap/cloudfoundry" + source = "cloudfoundry/cloudfoundry" } zipper = { source = "ArthurHlt/zipper" diff --git a/docs/resources/org_quota.md b/docs/resources/org_quota.md index ff96fc9..2ef80c5 100644 --- a/docs/resources/org_quota.md +++ b/docs/resources/org_quota.md @@ -15,7 +15,7 @@ Provides a Cloud Foundry resource to manage org quota definitions. terraform { required_providers { cloudfoundry = { - source = "SAP/cloudfoundry" + source = "cloudfoundry/cloudfoundry" } } } diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index 8ab92f8..55e1706 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -1,7 +1,7 @@ terraform { required_providers { cloudfoundry = { - source = "SAP/cloudfoundry" + source = "cloudfoundry/cloudfoundry" version = "1.0.0-rc1" } } diff --git a/examples/resources/cloudfoundry_app/resource.tf b/examples/resources/cloudfoundry_app/resource.tf index ef9bddb..e02ef04 100644 --- a/examples/resources/cloudfoundry_app/resource.tf +++ b/examples/resources/cloudfoundry_app/resource.tf @@ -1,7 +1,7 @@ terraform { required_providers { cloudfoundry = { - source = "sap/cloudfoundry" + source = "cloudfoundry/cloudfoundry" } zipper = { source = "ArthurHlt/zipper" diff --git a/examples/resources/cloudfoundry_org_quota/resource.tf b/examples/resources/cloudfoundry_org_quota/resource.tf index 361c6bd..218fea4 100644 --- a/examples/resources/cloudfoundry_org_quota/resource.tf +++ b/examples/resources/cloudfoundry_org_quota/resource.tf @@ -1,7 +1,7 @@ terraform { required_providers { cloudfoundry = { - source = "SAP/cloudfoundry" + source = "cloudfoundry/cloudfoundry" } } } diff --git a/internal/provider/fixtures/resource_mta_invalid_mta_path.yaml b/internal/provider/fixtures/resource_mta_invalid_mta_path.yaml index 98fd144..23a925b 100644 --- a/internal/provider/fixtures/resource_mta_invalid_mta_path.yaml +++ b/internal/provider/fixtures/resource_mta_invalid_mta_path.yaml @@ -74,7 +74,7 @@ interactions: host: deploy-service.x.x.x.x.com remote_addr: "" request_uri: "" - body: "--0c9d831b4dbdff020fb6b3042db286630dd7e319fc7637a67990119b2f46\r\nContent-Disposition: form-data; name=\"file\"; filename=\"provider-config-local.txt\"\r\nContent-Type: application/octet-stream\r\n\r\nprovider_installation {\n dev_overrides {\n \"SAP/cloudfoundry\" = \"/go/bin\"\n }\n\n direct {}\n}\r\n--0c9d831b4dbdff020fb6b3042db286630dd7e319fc7637a67990119b2f46--\r\n" + body: "--0c9d831b4dbdff020fb6b3042db286630dd7e319fc7637a67990119b2f46\r\nContent-Disposition: form-data; name=\"file\"; filename=\"provider-config-local.txt\"\r\nContent-Type: application/octet-stream\r\n\r\nprovider_installation {\n dev_overrides {\n \"cloudfoundry/cloudfoundry\" = \"/go/bin\"\n }\n\n direct {}\n}\r\n--0c9d831b4dbdff020fb6b3042db286630dd7e319fc7637a67990119b2f46--\r\n" form: {} headers: Authorization: @@ -582,7 +582,7 @@ interactions: host: deploy-service.x.x.x.x.com remote_addr: "" request_uri: "" - body: "--15e976bca81b9af843b9c73f3c865c3bebfb8a4a8d40d8ad5f3432708763\r\nContent-Disposition: form-data; name=\"file\"; filename=\"provider-config-local.txt\"\r\nContent-Type: application/octet-stream\r\n\r\nprovider_installation {\n dev_overrides {\n \"SAP/cloudfoundry\" = \"/go/bin\"\n }\n\n direct {}\n}\r\n--15e976bca81b9af843b9c73f3c865c3bebfb8a4a8d40d8ad5f3432708763--\r\n" + body: "--15e976bca81b9af843b9c73f3c865c3bebfb8a4a8d40d8ad5f3432708763\r\nContent-Disposition: form-data; name=\"file\"; filename=\"provider-config-local.txt\"\r\nContent-Type: application/octet-stream\r\n\r\nprovider_installation {\n dev_overrides {\n \"cloudfoundry/cloudfoundry\" = \"/go/bin\"\n }\n\n direct {}\n}\r\n--15e976bca81b9af843b9c73f3c865c3bebfb8a4a8d40d8ad5f3432708763--\r\n" form: {} headers: Authorization: @@ -853,7 +853,7 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"processId":"95cc8835-549e-11ef-9de9-eeee0a88e5d6","processType":"DEPLOY","startedAt":"2024-08-07T09:22:37.625Z[UTC]","endedAt":"2024-08-07T09:32:35.363Z[UTC]","spaceId":"02c0cc92-6ecc-44b1-b7b2-096ca19ee143","mtaId":"a.cf.app","user":"debaditya.ray@sap.com","acquiredLock":false,"state":"ABORTED","messages":[{"id":211713866,"text":"Operation ID: 95cc8835-549e-11ef-9de9-eeee0a88e5d6","timestamp":"2024-08-07T09:22:36.658Z[UTC]","type":"INFO"},{"id":211713880,"text":"Deploying in org \"PerformanceTeamBLR\" and space \"tf-space-1\"","timestamp":"2024-08-07T09:22:44.635Z[UTC]","type":"INFO"},{"id":211713899,"text":"Error processing MTA extension descriptors: org.cloudfoundry.multiapps.controller.persistence.services.FileStorageException: org.cloudfoundry.multiapps.common.ParsingException: Error while parsing YAML string: \nprovider_installation {\n dev_overrides {\n \"SAP/cloudfoundry\" = \"/go/bin\"\n }\n\n direct {}\n}\nclass java.lang.String cannot be cast to class java.util.Map (java.lang.String and java.util.Map are in module java.base of loader ''bootstrap'') ","timestamp":"2024-08-07T09:23:07.645Z[UTC]","type":"ERROR"}],"parameters":{}}' + body: '{"processId":"95cc8835-549e-11ef-9de9-eeee0a88e5d6","processType":"DEPLOY","startedAt":"2024-08-07T09:22:37.625Z[UTC]","endedAt":"2024-08-07T09:32:35.363Z[UTC]","spaceId":"02c0cc92-6ecc-44b1-b7b2-096ca19ee143","mtaId":"a.cf.app","user":"debaditya.ray@sap.com","acquiredLock":false,"state":"ABORTED","messages":[{"id":211713866,"text":"Operation ID: 95cc8835-549e-11ef-9de9-eeee0a88e5d6","timestamp":"2024-08-07T09:22:36.658Z[UTC]","type":"INFO"},{"id":211713880,"text":"Deploying in org \"PerformanceTeamBLR\" and space \"tf-space-1\"","timestamp":"2024-08-07T09:22:44.635Z[UTC]","type":"INFO"},{"id":211713899,"text":"Error processing MTA extension descriptors: org.cloudfoundry.multiapps.controller.persistence.services.FileStorageException: org.cloudfoundry.multiapps.common.ParsingException: Error while parsing YAML string: \nprovider_installation {\n dev_overrides {\n \"cloudfoundry/cloudfoundry\" = \"/go/bin\"\n }\n\n direct {}\n}\nclass java.lang.String cannot be cast to class java.util.Map (java.lang.String and java.util.Map are in module java.base of loader ''bootstrap'') ","timestamp":"2024-08-07T09:23:07.645Z[UTC]","type":"ERROR"}],"parameters":{}}' headers: Cache-Control: - no-cache, no-store, max-age=0, must-revalidate @@ -1045,7 +1045,7 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"processId":"fca0e28d-549f-11ef-84bc-eeee0a83078e","processType":"DEPLOY","startedAt":"2024-08-07T09:32:38.686Z[UTC]","spaceId":"02c0cc92-6ecc-44b1-b7b2-096ca19ee143","mtaId":"a.cf.app","user":"debaditya.ray@sap.com","acquiredLock":true,"state":"ERROR","errorType":"CONTENT","messages":[{"id":211715479,"text":"Operation ID: fca0e28d-549f-11ef-84bc-eeee0a83078e","timestamp":"2024-08-07T09:32:38.674Z[UTC]","type":"INFO"},{"id":211715482,"text":"Deploying in org \"PerformanceTeamBLR\" and space \"tf-space-1\"","timestamp":"2024-08-07T09:32:38.846Z[UTC]","type":"INFO"},{"id":211715485,"text":"Error processing MTA extension descriptors: org.cloudfoundry.multiapps.controller.persistence.services.FileStorageException: org.cloudfoundry.multiapps.common.ParsingException: Error while parsing YAML string: \nprovider_installation {\n dev_overrides {\n \"SAP/cloudfoundry\" = \"/go/bin\"\n }\n\n direct {}\n}\nclass java.lang.String cannot be cast to class java.util.Map (java.lang.String and java.util.Map are in module java.base of loader ''bootstrap'') ","timestamp":"2024-08-07T09:32:39.273Z[UTC]","type":"ERROR"}],"parameters":{}}' + body: '{"processId":"fca0e28d-549f-11ef-84bc-eeee0a83078e","processType":"DEPLOY","startedAt":"2024-08-07T09:32:38.686Z[UTC]","spaceId":"02c0cc92-6ecc-44b1-b7b2-096ca19ee143","mtaId":"a.cf.app","user":"debaditya.ray@sap.com","acquiredLock":true,"state":"ERROR","errorType":"CONTENT","messages":[{"id":211715479,"text":"Operation ID: fca0e28d-549f-11ef-84bc-eeee0a83078e","timestamp":"2024-08-07T09:32:38.674Z[UTC]","type":"INFO"},{"id":211715482,"text":"Deploying in org \"PerformanceTeamBLR\" and space \"tf-space-1\"","timestamp":"2024-08-07T09:32:38.846Z[UTC]","type":"INFO"},{"id":211715485,"text":"Error processing MTA extension descriptors: org.cloudfoundry.multiapps.controller.persistence.services.FileStorageException: org.cloudfoundry.multiapps.common.ParsingException: Error while parsing YAML string: \nprovider_installation {\n dev_overrides {\n \"cloudfoundry/cloudfoundry\" = \"/go/bin\"\n }\n\n direct {}\n}\nclass java.lang.String cannot be cast to class java.util.Map (java.lang.String and java.util.Map are in module java.base of loader ''bootstrap'') ","timestamp":"2024-08-07T09:32:39.273Z[UTC]","type":"ERROR"}],"parameters":{}}' headers: Cache-Control: - no-cache, no-store, max-age=0, must-revalidate diff --git a/main.go b/main.go index 1d0a4fa..abcb654 100644 --- a/main.go +++ b/main.go @@ -29,7 +29,7 @@ func main() { flag.Parse() opts := providerserver.ServeOpts{ - Address: "registry.terraform.io/SAP/cloudfoundry", + Address: "registry.terraform.io/cloudfoundry/cloudfoundry", Debug: debug, } diff --git a/migration-guide/Readme.md b/migration-guide/Readme.md index f053828..c75a2cd 100644 --- a/migration-guide/Readme.md +++ b/migration-guide/Readme.md @@ -96,7 +96,7 @@ terraform { #Add new provider cloudfoundry-v3-new = { - source = "SAP/cloudfoundry" + source = "cloudfoundry/cloudfoundry" version = "0.2.0-beta" } }