Skip to content

Commit 4562eb2

Browse files
authored
feat(edge-services): add default fqdn on dns stage (#3459)
* bump sdk go * feat(edge-services): add default fqdn on dns stage
1 parent e9e8231 commit 4562eb2

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

docs/resources/edge_services_dns_stage.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ In addition to all arguments above, the following attributes are exported:
3333

3434
- `id` - The ID of the DNS stage (UUID format).
3535
- `type` - The type of the stage.
36+
- `default_fqdn` - The Default Fully Qualified Domain Name attached to the stage.
3637
- `created_at` - The date and time of the creation of the DNS stage.
3738
- `updated_at` - The date and time of the last update of the DNS stage.
3839

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ require (
3030
github.com/nats-io/jwt/v2 v2.8.0
3131
github.com/nats-io/nats.go v1.46.1
3232
github.com/robfig/cron/v3 v3.0.1
33-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251015050748-12aafea99911
33+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251017125838-3eb0f2adaa94
3434
github.com/stretchr/testify v1.11.1
3535
golang.org/x/crypto v0.43.0
3636
golang.org/x/sync v0.17.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR
457457
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
458458
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
459459
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
460-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251015050748-12aafea99911 h1:puwRtGGoGw9Rw3qlB7ltimV2+uugkalN08DyVEL1VoE=
461-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251015050748-12aafea99911/go.mod h1:SVm1Zk6UpZtqZN6KtEQpjC+v+Lir4tyVfhQTU19q3PA=
460+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251017125838-3eb0f2adaa94 h1:39j+3zweuYVml1Ozahl7RVb0AtpaiQtRztjq4W3GvNM=
461+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251017125838-3eb0f2adaa94/go.mod h1:SVm1Zk6UpZtqZN6KtEQpjC+v+Lir4tyVfhQTU19q3PA=
462462
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
463463
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
464464
github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=

internal/services/edgeservices/dns_stage.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ func ResourceDNSStage() *schema.Resource {
6363
Computed: true,
6464
Description: "The type of the stage",
6565
},
66+
"default_fqdn": {
67+
Type: schema.TypeString,
68+
Computed: true,
69+
Description: "Default Fully Qualified Domain Name attached to the stage",
70+
},
6671
"created_at": {
6772
Type: schema.TypeString,
6873
Computed: true,
@@ -120,6 +125,7 @@ func ResourceDNSStageRead(ctx context.Context, d *schema.ResourceData, m any) di
120125
_ = d.Set("created_at", types.FlattenTime(dnsStage.CreatedAt))
121126
_ = d.Set("updated_at", types.FlattenTime(dnsStage.UpdatedAt))
122127
_ = d.Set("type", dnsStage.Type.String())
128+
_ = d.Set("default_fqdn", dnsStage.DefaultFqdn)
123129

124130
oldFQDNs := d.Get("fqdns").([]any)
125131
oldFQDNsSet := make(map[string]bool)

templates/resources/edge_services_dns_stage.md.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ In addition to all arguments above, the following attributes are exported:
3434

3535
- `id` - The ID of the DNS stage (UUID format).
3636
- `type` - The type of the stage.
37+
- `default_fqdn` - The Default Fully Qualified Domain Name attached to the stage.
3738
- `created_at` - The date and time of the creation of the DNS stage.
3839
- `updated_at` - The date and time of the last update of the DNS stage.
3940

0 commit comments

Comments
 (0)