Skip to content

Commit

Permalink
sort keys in ingress params
Browse files Browse the repository at this point in the history
  • Loading branch information
jon77p committed Sep 17, 2024
1 parent 2e93cee commit c3e945d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cdktf/oci/tunnel/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,28 +116,28 @@ export class Tunnel extends Construct {
}`

const sshRecord = new cloudflare.record.Record(this, `ssh_app_${name}`, {
comment: RecordComment,
content: tunnelDomain,
name: `${
instance.instance.is_subdomain ? `ssh-${instance.name}` : "ssh"
}`,
proxied: true,
type: "CNAME",
content: tunnelDomain,
zoneId: this.cloudflareZones.zones.get(0).id,
comment: RecordComment,
})

const tunnelRecord = new cloudflare.record.Record(
this,
`tunnel_app_${name}`,
{
comment: RecordComment,
content: this.tunnel.cname,
name: `${
instance.instance.is_subdomain ? `tunnel-${instance.name}` : "tunnel"
}`,
proxied: true,
type: "CNAME",
content: this.tunnel.cname,
zoneId: this.cloudflareZones.zones.get(0).id,
comment: RecordComment,
}
)

Expand Down Expand Up @@ -233,12 +233,12 @@ export class Tunnel extends Construct {
}

new cloudflare.record.Record(this, `ingress_record_${name}`, {
comment: RecordComment,
content: tunnelDomain,
name: ingress.hostname,
proxied: true,
type: "CNAME",
content: tunnelDomain,
zoneId: zoneId,
comment: RecordComment,
})
})
}
Expand Down

0 comments on commit c3e945d

Please sign in to comment.