Skip to content

Commit

Permalink
Change CR Domain Mapping route name to string (#2889)
Browse files Browse the repository at this point in the history
Merged PR #2889.
  • Loading branch information
emilymye authored and modular-magician committed Dec 27, 2019
1 parent fb78675 commit 8fd7212
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
2 changes: 1 addition & 1 deletion build/terraform-mapper
4 changes: 1 addition & 3 deletions products/cloudrun/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,8 @@ objects:
It is recommended that the user leaves this empty to receive an error
warning about a potential conflict and only set it once the respective UI
has given such a warning.
- !ruby/object:Api::Type::ResourceRef
- !ruby/object:Api::Type::String
name: routeName
resource: Service
imports: name
required: true
description: |-
The name of the Cloud Run Service that this DomainMapping applies to.
Expand Down
3 changes: 3 additions & 0 deletions products/cloudrun/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ overrides: !ruby/object:Overrides::ResourceOverrides
custom_flatten: templates/terraform/custom_flatten/set_to_project.go.erb
metadata.name: !ruby/object:Overrides::Terraform::PropertyOverride
exclude: true
spec.routeName: !ruby/object:Overrides::Terraform::PropertyOverride
custom_expand: 'templates/terraform/custom_expand/resource_from_self_link.go.erb'
diff_suppress_func: 'compareSelfLinkOrResourceName'
Service: !ruby/object:Overrides::Terraform::ResourceOverride
id_format: "locations/{{location}}/namespaces/{{project}}/services/{{name}}"
import_format: ["locations/{{location}}/namespaces/{{project}}/services/{{name}}"]
Expand Down

0 comments on commit 8fd7212

Please sign in to comment.