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

Promote Server Tls Policy to V1 #11538

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 0 additions & 6 deletions mmv1/products/networksecurity/ServerTlsPolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
name: 'ServerTlsPolicy'
base_url: 'projects/{{project}}/locations/{{location}}/serverTlsPolicies'
create_url: 'projects/{{project}}/locations/{{location}}/serverTlsPolicies?serverTlsPolicyId={{name}}'
min_version: beta
update_verb: :PATCH
update_mask: true
description: |
Expand Down Expand Up @@ -47,26 +46,21 @@ import_format:
['projects/{{project}}/locations/{{location}}/serverTlsPolicies/{{name}}']
examples:
- !ruby/object:Provider::Terraform::Examples
min_version: beta
name: 'network_security_server_tls_policy_basic'
skip_vcr: true
primary_resource_id: 'default'
vars:
resource_name: 'my-server-tls-policy'
- !ruby/object:Provider::Terraform::Examples
min_version: beta
name: 'network_security_server_tls_policy_advanced'
primary_resource_id: 'default'
vars:
resource_name: 'my-server-tls-policy'
- !ruby/object:Provider::Terraform::Examples
min_version: beta
name: 'network_security_server_tls_policy_server_cert'
primary_resource_id: 'default'
vars:
resource_name: 'my-server-tls-policy'
- !ruby/object:Provider::Terraform::Examples
min_version: beta
name: 'network_security_server_tls_policy_mtls'
primary_resource_id: 'default'
vars:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
resource "google_network_security_server_tls_policy" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]['resource_name'] %>"
labels = {
foo = "bar"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
resource "google_network_security_server_tls_policy" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]['resource_name'] %>"
labels = {
foo = "bar"
Expand All @@ -17,16 +16,6 @@ resource "google_network_security_server_tls_policy" "<%= ctx[:primary_resource_
target_uri = "unix:mypath"
}
}
client_validation_ca {
grpc_endpoint {
target_uri = "unix:abc/mypath"
}
}
client_validation_ca {
certificate_provider_instance {
plugin_instance = "google_cloud_private_spiffe"
}
}
melinath marked this conversation as resolved.
Show resolved Hide resolved
}
}

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
data "google_project" "project" {
provider = google-beta
}

resource "google_network_security_server_tls_policy" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]['resource_name'] %>"

description = "my description"
Expand All @@ -21,7 +19,6 @@ resource "google_network_security_server_tls_policy" "<%= ctx[:primary_resource_
}

resource "google_certificate_manager_trust_config" "default" {
provider = google-beta
name = "<%= ctx[:vars]['trust_config_name'] %>"
description = "sample trust config description"
location = "global"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
resource "google_network_security_server_tls_policy" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]['resource_name'] %>"
labels = {
foo = "bar"
Expand Down