fix: refactor postgres genereated files (#15)
Some checks failed
Publish / Check GoReleaser config (push) Successful in 4s
Release / goreleaser (push) Failing after 28s
Publish / Publish provider (push) Failing after 6m28s

## Description

<!-- **Please link some issue here describing what you are trying to achieve.**

In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->

relates to #1234

## Checklist

- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)

Reviewed-on: #15
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
Co-committed-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
This commit is contained in:
Marcel_Henselin 2026-01-30 10:37:50 +00:00 committed by Marcel_Henselin
parent a9df5b0ff5
commit f3d66c7569
Signed by: tf-provider.git.onstackit.cloud
GPG key ID: 6D7E8A1ED8955A9C
2 changed files with 18 additions and 6 deletions

View file

@ -20,6 +20,12 @@ import (
func InstanceDataSourceSchema(ctx context.Context) schema.Schema {
return schema.Schema{
Attributes: map[string]schema.Attribute{
"acl": schema.ListAttribute{
ElementType: types.StringType,
Computed: true,
Description: "List of IPV4 cidr.",
MarkdownDescription: "List of IPV4 cidr.",
},
"backup_schedule": schema.StringAttribute{
Computed: true,
Description: "The schedule for on what time and how often the database backup will be created. The schedule is written as a cron schedule.",
@ -74,8 +80,8 @@ func InstanceDataSourceSchema(ctx context.Context) schema.Schema {
},
},
Computed: true,
Description: "The configuration for instance's volume and backup storage encryption.\n\n⚠ **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
MarkdownDescription: "The configuration for instance's volume and backup storage encryption.\n\n⚠ **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
Description: "The configuration for instance's volume and backup storage encryption.\n\n⚠\ufe1d **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
MarkdownDescription: "The configuration for instance's volume and backup storage encryption.\n\n⚠\ufe1d **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
},
"flavor_id": schema.StringAttribute{
Computed: true,
@ -193,6 +199,7 @@ func InstanceDataSourceSchema(ctx context.Context) schema.Schema {
}
type InstanceModel struct {
Acl types.List `tfsdk:"acl"`
BackupSchedule types.String `tfsdk:"backup_schedule"`
ConnectionInfo ConnectionInfoValue `tfsdk:"connection_info"`
Encryption EncryptionValue `tfsdk:"encryption"`

View file

@ -22,6 +22,12 @@ import (
func InstanceResourceSchema(ctx context.Context) schema.Schema {
return schema.Schema{
Attributes: map[string]schema.Attribute{
"acl": schema.ListAttribute{
ElementType: types.StringType,
Computed: true,
Description: "List of IPV4 cidr.",
MarkdownDescription: "List of IPV4 cidr.",
},
"backup_schedule": schema.StringAttribute{
Required: true,
Description: "The schedule for on what time and how often the database backup will be created. The schedule is written as a cron schedule.",
@ -77,8 +83,8 @@ func InstanceResourceSchema(ctx context.Context) schema.Schema {
},
Optional: true,
Computed: true,
Description: "The configuration for instance's volume and backup storage encryption.\n\n⚠ **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
MarkdownDescription: "The configuration for instance's volume and backup storage encryption.\n\n⚠ **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
Description: "The configuration for instance's volume and backup storage encryption.\n\n⚠\ufe1d **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
MarkdownDescription: "The configuration for instance's volume and backup storage encryption.\n\n⚠\ufe1d **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
},
"flavor_id": schema.StringAttribute{
Required: true,
@ -128,11 +134,9 @@ func InstanceResourceSchema(ctx context.Context) schema.Schema {
MarkdownDescription: "List of IPV4 cidr.",
},
"instance_address": schema.StringAttribute{
Optional: true,
Computed: true,
},
"router_address": schema.StringAttribute{
Optional: true,
Computed: true,
},
},
@ -215,6 +219,7 @@ func InstanceResourceSchema(ctx context.Context) schema.Schema {
}
type InstanceModel struct {
Acl types.List `tfsdk:"acl"`
BackupSchedule types.String `tfsdk:"backup_schedule"`
ConnectionInfo ConnectionInfoValue `tfsdk:"connection_info"`
Encryption EncryptionValue `tfsdk:"encryption"`