fix: #106 postgresflex flavor datasource

feat: support V2 and V3 flavor handling in postgresflex
This commit is contained in:
Marcel S. Henselin 2026-05-07 06:15:59 +02:00
parent b51d6369f2
commit b56a41dc04
34 changed files with 2986 additions and 604 deletions

View file

@ -16,7 +16,7 @@ import (
func mapGetInstanceResponseToModel(
ctx context.Context,
m *postgresflexalpharesource.InstanceModel,
m *LocalInstanceModel,
resp *postgresflex.GetInstanceResponse,
) error {
m.BackupSchedule = types.StringValue(resp.GetBackupSchedule())
@ -71,6 +71,8 @@ func mapGetInstanceResponseToModel(
m.Acl = netACL
// m.Labels = resp.GetLabels()
netInstAdd := types.StringValue("")
if instAdd, ok := resp.Network.GetInstanceAddressOk(); ok {
netInstAdd = types.StringValue(*instAdd)