Skip to content

Commit

Permalink
change cloud run domain route name resourceref to string
Browse files Browse the repository at this point in the history
  • Loading branch information
emilymye committed Dec 27, 2019
1 parent ebaad44 commit a6ba216
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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 a6ba216

Please sign in to comment.