Skip to content

Commit

Permalink
containerapps: fixing the build to account for the breaking change in A…
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Feb 8, 2023
1 parent a7d3145 commit 6557006
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/services/containerapps/helpers/container_apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func expandContainerAppIngressCustomDomain(input []CustomDomain) *[]containerapp
for _, v := range input {
customDomain := containerapps.CustomDomain{
Name: v.Name,
CertificateId: v.CertificateId,
CertificateId: pointer.To(v.CertificateId),
}
bindingType := containerapps.BindingType(v.CertBinding)
customDomain.BindingType = &bindingType
Expand All @@ -255,12 +255,14 @@ func flattenContainerAppIngressCustomDomain(input *[]containerapps.CustomDomain)

for _, v := range *input {
customDomain := CustomDomain{
CertificateId: v.CertificateId,
Name: v.Name,
Name: v.Name,
}
if v.BindingType != nil {
customDomain.CertBinding = string(*v.BindingType)
}
if v.CertificateId != nil {
customDomain.CertificateId = *v.CertificateId
}
result = append(result, customDomain)
}

Expand Down

0 comments on commit 6557006

Please sign in to comment.