Skip to content

Commit fe777fd

Browse files
Remove leftover Postgresql code and documentation (#527)
* Remove leftover postgresql code * Remove examples * revert go.mod * Revert loadbalancer doc
1 parent a589409 commit fe777fd

13 files changed

Lines changed: 19 additions & 71 deletions

File tree

.github/workflows/tf-acc-test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
TF_ACC_OBSERVABILITY_CUSTOM_ENDPOINT: ${{ secrets.TF_ACC_OBSERVABILITY_CUSTOM_ENDPOINT }}
2626
TF_ACC_OPENSEARCH_CUSTOM_ENDPOINT: ${{ secrets.TF_ACC_OPENSEARCH_CUSTOM_ENDPOINT }}
2727
TF_ACC_POSTGRESFLEX_CUSTOM_ENDPOINT: ${{ secrets.TF_ACC_POSTGRESFLEX_CUSTOM_ENDPOINT }}
28-
TF_ACC_POSTGRESQL_CUSTOM_ENDPOINT: ${{ secrets.TF_ACC_POSTGRESQL_CUSTOM_ENDPOINT }}
2928
TF_ACC_RABBITMQ_CUSTOM_ENDPOINT: ${{ secrets.TF_ACC_RABBITMQ_CUSTOM_ENDPOINT }}
3029
TF_ACC_REDIS_CUSTOM_ENDPOINT: ${{ secrets.TF_ACC_REDIS_CUSTOM_ENDPOINT }}
3130
TF_ACC_RESOURCEMANAGER_CUSTOM_ENDPOINT: ${{ secrets.TF_ACC_RESOURCEMANAGER_CUSTOM_ENDPOINT }}

MIGRATION.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ resource "stackit_logme_credential" "example-credential" {
152152
| stackit_observability_instance | stackit_observability_instance | :white_check_mark: | [project_id],[instance_id] | |
153153
| stackit_observability_job | stackit_observability_scrapeconfig | :white_check_mark: | [project_id],[instance_id],[name] | |
154154
| stackit_opensearch_credential | stackit_opensearch_credential | :white_check_mark: | [project_id],[credentials_group_id],[credential_id] | |
155-
| stackit_opensearch_instance | stackit_opensearch_instance | :white_check_mark: | [project_id],[instance_id] | |
156-
| stackit_postgres_credential | stackit_postgresql_credential | :white_check_mark: | [project_id],[credentials_group_id],[credential_id] | |
155+
| stackit_opensearch_instance | stackit_opensearch_instance | :white_check_mark: | [project_id],[instance_id] | | |
157156
| stackit_postgres_flex_instance | stackit_postgresflex_instance | :white_check_mark: | [project_id],[instance_id] | |
158157
| stackit_postgres_flex_user | stackit_postgresflex_user | :warning: | [project_id],[instance_id],[user_id] | `password` field will be empty |
159-
| stackit_postgres_instance | stackit_postgresql_instance | :white_check_mark: | [project_id],[instance_id] | |
158+
| stackit_postgres_instance | | | | Resource deprecated |
159+
| stackit_postgres_credential | | | | Resource deprecated
160160
| stackit_project | stackit_resourcemanager_project | :white_check_mark: | [container_id] | |
161161
| stackit_rabbitmq_credential | stackit_rabbitmq_credential | :white_check_mark: | [project_id],[credentials_group_id],[credential_id] | |
162162
| stackit_rabbitmq_instance | stackit_rabbitmq_instance | :white_check_mark: | [project_id],[instance_id] | |

docs/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ Note: AWS specific checks must be skipped as they do not work on STACKIT. For de
165165
- `observability_custom_endpoint` (String) Custom endpoint for the Observability service
166166
- `opensearch_custom_endpoint` (String) Custom endpoint for the OpenSearch service
167167
- `postgresflex_custom_endpoint` (String) Custom endpoint for the PostgresFlex service
168-
- `postgresql_custom_endpoint` (String) Custom endpoint for the PostgreSQL service
169168
- `private_key` (String) Private RSA key used for authentication, relevant for the key flow. It takes precedence over the private key that is included in the service account key.
170169
- `private_key_path` (String) Path for the private RSA key used for authentication, relevant for the key flow. It takes precedence over the private key that is included in the service account key.
171170
- `rabbitmq_custom_endpoint` (String) Custom endpoint for the RabbitMQ service

docs/resources/loadbalancer.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,23 @@ description: |-
88
To automate the creation of load balancers, OpenStack can be used to setup the supporting infrastructure.
99
To set up the OpenStack provider, you can create a token through the STACKIT Portal, in your project's Infrastructure API page.
1010
There, the OpenStack user domain name, username, and password are generated and can be obtained. The provider can then be configured as follows:
11-
11+
```terraform
1212
terraform {
13-
required_providers {
14-
(...)
15-
openstack = {
16-
source = "terraform-provider-openstack/openstack"
17-
}
18-
}
13+
required_providers {
14+
(...)
15+
openstack = {
16+
source = "terraform-provider-openstack/openstack"
17+
}
18+
}
1919
}
20-
2120
provider "openstack" {
22-
user_domain_name = "{OpenStack user domain name}"
23-
user_name = "{OpenStack username}"
24-
password = "{OpenStack password}"
25-
region = "RegionOne"
26-
auth_url = "https://keystone.api.iaas.eu01.stackit.cloud/v3"
21+
user_domain_name = "{OpenStack user domain name}"
22+
user_name = "{OpenStack username}"
23+
password = "{OpenStack password}"
24+
region = "RegionOne"
25+
auth_url = "https://keystone.api.iaas.eu01.stackit.cloud/v3"
2726
}
28-
29-
27+
```
3028
Configuring the supporting infrastructure
3129
The example below uses OpenStack to create the network, router, a public IP address and a compute instance.
3230
---

examples/data-sources/stackit_postgresql_credential/data-source.tf

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/data-sources/stackit_postgresql_instance/data-source.tf

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/resources/stackit_postgresql_credential/resource.tf

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/resources/stackit_postgresql_instance/resource.tf

Lines changed: 0 additions & 9 deletions
This file was deleted.

stackit/internal/core/core.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ type ProviderData struct {
2929
ObservabilityCustomEndpoint string
3030
OpenSearchCustomEndpoint string
3131
PostgresFlexCustomEndpoint string
32-
PostgreSQLCustomEndpoint string
3332
RabbitMQCustomEndpoint string
3433
RedisCustomEndpoint string
3534
ResourceManagerCustomEndpoint string

stackit/internal/services/objectstorage/credential/datasource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ func (r *credentialDataSource) Configure(ctx context.Context, req datasource.Con
4848

4949
var apiClient *objectstorage.APIClient
5050
var err error
51-
if providerData.PostgreSQLCustomEndpoint != "" {
51+
if providerData.ObjectStorageCustomEndpoint != "" {
5252
apiClient, err = objectstorage.NewAPIClient(
5353
config.WithCustomAuth(providerData.RoundTripper),
54-
config.WithEndpoint(providerData.PostgreSQLCustomEndpoint),
54+
config.WithEndpoint(providerData.ObjectStorageCustomEndpoint),
5555
)
5656
} else {
5757
apiClient, err = objectstorage.NewAPIClient(

0 commit comments

Comments
 (0)