Skip to content

Commit

Permalink
Ignore region resourcerefs
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykarson committed Aug 27, 2019
1 parent 61f7bf3 commit 59b2d96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions build/kcc/servicemappings/compute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ spec:
name: name
idTemplate: "projects/{{project}}/regions/{{region}}/backendServices/{{name}}"
resourceReferences:
- key: regionRef
tfField: region
kind: Region
required: false
- name: google_compute_backend_service_signed_url_key
kind: ComputeBackendServiceSignedUrlKey
metadataMapping:
Expand Down Expand Up @@ -265,10 +261,6 @@ spec:
tfField: network
kind: Network
required: true
- key: regionRef
tfField: region
kind: Region
required: false
- name: google_compute_target_http_proxy
kind: ComputeTargetHttpProxy
metadataMapping:
Expand Down
2 changes: 1 addition & 1 deletion templates/kcc/product/service_mapping.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spec:
unless references.empty?
-%>
resourceReferences:
<%- references.each do |property| -%>
<%- references.reject { |p| p.name == 'region' }.each do |property| -%>
- key: <%= property.name.camelize(:lower) %>Ref
tfField: <%= property.name %>
kind: <%= property.resource %>
Expand Down

0 comments on commit 59b2d96

Please sign in to comment.