Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add serviceDirectoryRegistrations message to resource google_compute_global_forwarding_rule #9485

Merged
merged 3 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions mmv1/products/compute/GlobalForwardingRule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,37 @@ properties:
update_verb: :POST
update_url: 'projects/{{project}}/global/forwardingRules/{{name}}/setTarget'
diff_suppress_func: 'tpgresource.CompareSelfLinkRelativePaths'
- !ruby/object:Api::Type::Array
name: 'serviceDirectoryRegistrations'
description: |
Service Directory resources to register this forwarding rule with.

Currently, only supports a single Service Directory resource.
min_size: 0
max_size: 1
immutable: true
default_from_api: true
item_type: !ruby/object:Api::Type::NestedObject
properties:
- !ruby/object:Api::Type::String
name: 'namespace'
description: |
Service Directory namespace to register the forwarding rule under.
immutable: true
default_from_api: true
- !ruby/object:Api::Type::String
name: 'service'
arnabadg-google marked this conversation as resolved.
Show resolved Hide resolved
description: |
Service Directory service to register the forwarding rule under.
immutable: true
- !ruby/object:Api::Type::String
name: 'serviceDirectoryRegion'
description: |
[Optional] Service Directory region to register this global forwarding rule under.
Default to "us-central1". Only used for PSC for Google APIs. All PSC for
Google APIs Forwarding Rules on the same network should use the same Service
Directory region.
immutable: true
- !ruby/object:Api::Type::Array
name: sourceIpRanges
description: If not empty, this Forwarding Rule will only forward the traffic when the source IP address matches one of the IP addresses or CIDR ranges set here. Note that a Forwarding Rule can only have up to 64 source IP ranges, and this field can only be used with a regional Forwarding Rule whose scheme is EXTERNAL. Each sourceIpRange entry should be either an IP address (for example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@ resource "google_compute_global_forwarding_rule" "default" {
network = google_compute_network.network.id
ip_address = google_compute_global_address.default.id
load_balancing_scheme = ""
service_directory_registrations {
namespace = "sd-namespace"
service_directory_region = "europe-west3"
}
}
# [END compute_forwarding_rule_private_access]
Loading