Skip to content

Commit 82be4b0

Browse files
Pawan Kumar Senapatiamandakarina
authored andcommitted
Update generated documentation after changes
1 parent fa7f18b commit 82be4b0

11 files changed

Lines changed: 60 additions & 374 deletions

File tree

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ module "cloud_run" {
5757
| container\_concurrency | Concurrent request limits to the service | `number` | `null` | no |
5858
| domain\_map\_annotations | Annotations to the domain map | `map(string)` | `{}` | no |
5959
| domain\_map\_labels | A set of key/value label pairs to assign to the Domain mapping | `map(string)` | `{}` | no |
60-
| build\_config | Optional Cloud Build Configuration for building a Cloud Run function | `object({ source_location = optional(string), function_target = optional(string), image_uri = optional(string), base_image = optional(string), enable_automatic_updates = optional(bool), worker_pool = optional(string), environment_variables = optional(map(string)), service_account = optional(string) })` | `{}` | no |
6160
| encryption\_key | CMEK encryption key self-link expected in the format projects/PROJECT/locations/LOCATION/keyRings/KEY-RING/cryptoKeys/CRYPTO-KEY. | `string` | `null` | no |
6261
| env\_secret\_vars | [Beta] Environment variables (Secret Manager) | <pre>list(object({<br> name = string<br> value_from = set(object({<br> secret_key_ref = map(string)<br> }))<br> }))</pre> | `[]` | no |
6362
| env\_vars | Environment variables (cleartext) | <pre>list(object({<br> value = string<br> name = string<br> }))</pre> | `[]` | no |
@@ -99,8 +98,6 @@ module "cloud_run" {
9998
| service\_status | Status of the created service |
10099
| service\_url | The URL on which the deployed service is available |
101100
| verified\_domain\_name | List of Custom Domain Name |
102-
| build\_name | The Cloud Build name of the latest successful deployment of the Service. |
103-
104101

105102
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
106103

examples/v2/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ This example assumes that below mentioned prerequisites are in place before cons
1818

1919
| Name | Description | Type | Default | Required |
2020
|------|-------------|------|---------|:--------:|
21+
| build\_config | Optional Cloud Build configuration for Cloud Run. This block enables building a container image from source using Cloud Build instead of specifying a prebuilt container image. | <pre>object({<br> source_location = optional(string)<br> function_target = optional(string)<br> image_uri = optional(string)<br> base_image = optional(string)<br> enable_automatic_updates = optional(bool)<br> worker_pool = optional(string)<br> environment_variables = optional(map(string))<br> service_account = optional(string)<br> })</pre> | `null` | no |
2122
| cloud\_run\_deletion\_protection | This field prevents Terraform from destroying or recreating the Cloud Run v2 Jobs and Services | `bool` | `true` | no |
2223
| project\_id | The project ID to deploy to | `string` | n/a | yes |
2324

metadata.yaml

Lines changed: 12 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,7 @@ spec:
9494
defaultValue: true
9595
- name: traffic_split
9696
description: Managing traffic routing to the service
97-
varType: |-
98-
list(object({
99-
latest_revision = bool
100-
percent = number
101-
revision_name = string
102-
tag = string
103-
}))
97+
varType: "list(object({\r\n latest_revision = bool\r\n percent = number\r\n revision_name = string\r\n tag = string\r\n }))"
10498
defaultValue:
10599
- latest_revision: true
106100
percent: 100
@@ -143,14 +137,7 @@ spec:
143137
defaultValue: ""
144138
- name: volumes
145139
description: "[Beta] Volumes needed for environment variables (when using secret)"
146-
varType: |-
147-
list(object({
148-
name = string
149-
secret = set(object({
150-
secret_name = string
151-
items = map(string)
152-
}))
153-
}))
140+
varType: "list(object({\r\n name = string\r\n secret = set(object({\r\n secret_name = string\r\n items = map(string)\r\n }))\r\n }))"
154141
defaultValue: []
155142
- name: limits
156143
description: Resource limits to the container
@@ -161,11 +148,7 @@ spec:
161148
defaultValue: {}
162149
- name: ports
163150
description: Port which the container listens to (http1 or h2c)
164-
varType: |-
165-
object({
166-
name = string
167-
port = number
168-
})
151+
varType: "object({\r\n name = string\r\n port = number\r\n })"
169152
defaultValue:
170153
name: http1
171154
port: 8080
@@ -178,79 +161,22 @@ spec:
178161
varType: list(string)
179162
defaultValue: []
180163
- name: startup_probe
181-
description: |
182-
Startup probe of application within the container.
183-
All other probes are disabled if a startup probe is provided, until it succeeds.
184-
Container will not be added to service endpoints if the probe fails.
185-
More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
186-
varType: |-
187-
object({
188-
failure_threshold = optional(number, null)
189-
initial_delay_seconds = optional(number, null)
190-
timeout_seconds = optional(number, null)
191-
period_seconds = optional(number, null)
192-
http_get = optional(object({
193-
path = optional(string)
194-
http_headers = optional(list(object({
195-
name = string
196-
value = string
197-
})), null)
198-
}), null)
199-
tcp_socket = optional(object({
200-
port = optional(number)
201-
}), null)
202-
grpc = optional(object({
203-
port = optional(number)
204-
service = optional(string)
205-
}), null)
206-
})
164+
description: "Startup probe of application within the container.\r\nAll other probes are disabled if a startup probe is provided, until it succeeds.\r\nContainer will not be added to service endpoints if the probe fails.\r\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\r\n"
165+
varType: "object({\r\n failure_threshold = optional(number, null)\r\n initial_delay_seconds = optional(number, null)\r\n timeout_seconds = optional(number, null)\r\n period_seconds = optional(number, null)\r\n http_get = optional(object({\r\n path = optional(string)\r\n http_headers = optional(list(object({\r\n name = string\r\n value = string\r\n })), null)\r\n }), null)\r\n tcp_socket = optional(object({\r\n port = optional(number)\r\n }), null)\r\n grpc = optional(object({\r\n port = optional(number)\r\n service = optional(string)\r\n }), null)\r\n })"
207166
- name: liveness_probe
208-
description: |
209-
Periodic probe of container liveness. Container will be restarted if the probe fails.
210-
More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
211-
varType: |-
212-
object({
213-
failure_threshold = optional(number, null)
214-
initial_delay_seconds = optional(number, null)
215-
timeout_seconds = optional(number, null)
216-
period_seconds = optional(number, null)
217-
http_get = optional(object({
218-
path = optional(string)
219-
http_headers = optional(list(object({
220-
name = string
221-
value = string
222-
})), null)
223-
}), null)
224-
grpc = optional(object({
225-
port = optional(number)
226-
service = optional(string)
227-
}), null)
228-
})
167+
description: "Periodic probe of container liveness. Container will be restarted if the probe fails.\r\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\r\n"
168+
varType: "object({\r\n failure_threshold = optional(number, null)\r\n initial_delay_seconds = optional(number, null)\r\n timeout_seconds = optional(number, null)\r\n period_seconds = optional(number, null)\r\n http_get = optional(object({\r\n path = optional(string)\r\n http_headers = optional(list(object({\r\n name = string\r\n value = string\r\n })), null)\r\n }), null)\r\n grpc = optional(object({\r\n port = optional(number)\r\n service = optional(string)\r\n }), null)\r\n })"
229169
- name: env_vars
230170
description: Environment variables (cleartext)
231-
varType: |-
232-
list(object({
233-
value = string
234-
name = string
235-
}))
171+
varType: "list(object({\r\n value = string\r\n name = string\r\n }))"
236172
defaultValue: []
237173
- name: env_secret_vars
238174
description: "[Beta] Environment variables (Secret Manager)"
239-
varType: |-
240-
list(object({
241-
name = string
242-
value_from = set(object({
243-
secret_key_ref = map(string)
244-
}))
245-
}))
175+
varType: "list(object({\r\n name = string\r\n value_from = set(object({\r\n secret_key_ref = map(string)\r\n }))\r\n }))"
246176
defaultValue: []
247177
- name: volume_mounts
248178
description: "[Beta] Volume Mounts to be attached to the container (when using secret)"
249-
varType: |-
250-
list(object({
251-
mount_path = string
252-
name = string
253-
}))
179+
varType: "list(object({\r\n mount_path = string\r\n name = string\r\n }))"
254180
defaultValue: []
255181
- name: verified_domain_name
256182
description: List of Custom Domain Name
@@ -323,13 +249,13 @@ spec:
323249
roles:
324250
- level: Project
325251
roles:
326-
- roles/cloudkms.admin
327-
- roles/resourcemanager.projectIamAdmin
328252
- roles/run.admin
329253
- roles/iam.serviceAccountAdmin
330254
- roles/artifactregistry.admin
331255
- roles/iam.serviceAccountUser
332256
- roles/serviceusage.serviceUsageViewer
257+
- roles/cloudkms.admin
258+
- roles/resourcemanager.projectIamAdmin
333259
services:
334260
- accesscontextmanager.googleapis.com
335261
- cloudbilling.googleapis.com

modules/job-exec/metadata.yaml

Lines changed: 7 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -104,24 +104,11 @@ spec:
104104
defaultValue: []
105105
- name: env_vars
106106
description: Environment variables (cleartext)
107-
varType: |-
108-
list(object({
109-
value = string
110-
name = string
111-
}))
107+
varType: "list(object({\r\n value = string\r\n name = string\r\n }))"
112108
defaultValue: []
113109
- name: env_secret_vars
114110
description: Environment variables (Secret Manager)
115-
varType: |-
116-
list(object({
117-
name = string
118-
value_source = set(object({
119-
secret_key_ref = object({
120-
secret = string
121-
version = optional(string, "latest")
122-
})
123-
}))
124-
}))
111+
varType: "list(object({\r\n name = string\r\n value_source = set(object({\r\n secret_key_ref = object({\r\n secret = string\r\n version = optional(string, \"latest\")\r\n })\r\n }))\r\n }))"
125112
defaultValue: []
126113
- name: launch_stage
127114
description: The launch stage. (see https://cloud.google.com/products#product-launch-stages). Defaults to GA.
@@ -142,18 +129,7 @@ spec:
142129
varType: number
143130
- name: volumes
144131
description: A list of Volumes to make available to containers.
145-
varType: |-
146-
list(object({
147-
name = string
148-
cloud_sql_instance = optional(object({
149-
instances = list(string)
150-
}))
151-
gcs = optional(object({
152-
bucket = string
153-
read_only = optional(bool)
154-
mount_options = optional(list(string))
155-
}))
156-
}))
132+
varType: "list(object({\r\n name = string\r\n cloud_sql_instance = optional(object({\r\n instances = list(string)\r\n }))\r\n gcs = optional(object({\r\n bucket = string\r\n read_only = optional(bool)\r\n mount_options = optional(list(string))\r\n }))\r\n }))"
157133
defaultValue: []
158134
connections:
159135
- source:
@@ -175,27 +151,15 @@ spec:
175151
outputExpr: "{\"name\": \"gcs-bucket-vol\", \"gcs\": { \"bucket\": name}}"
176152
- name: volume_mounts
177153
description: Volume to mount into the container's filesystem.
178-
varType: |-
179-
list(object({
180-
name = string
181-
mount_path = string
182-
}))
154+
varType: "list(object({\r\n name = string\r\n mount_path = string\r\n }))"
183155
defaultValue: []
184156
- name: vpc_access
185157
description: VPC Access configuration to use for this Task.
186-
varType: |-
187-
list(object({
188-
connector = string
189-
egress = string
190-
}))
158+
varType: "list(object({\r\n connector = string\r\n egress = string\r\n }))"
191159
defaultValue: []
192160
- name: limits
193161
description: Resource limits to the container
194-
varType: |-
195-
object({
196-
cpu = optional(string)
197-
memory = optional(string)
198-
})
162+
varType: "object({\r\n cpu = optional(string)\r\n memory = optional(string)\r\n })"
199163
- name: timeout
200164
description: Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers.
201165
varType: string
@@ -219,13 +183,13 @@ spec:
219183
roles:
220184
- level: Project
221185
roles:
222-
- roles/run.admin
223186
- roles/iam.serviceAccountAdmin
224187
- roles/artifactregistry.admin
225188
- roles/iam.serviceAccountUser
226189
- roles/serviceusage.serviceUsageViewer
227190
- roles/cloudkms.admin
228191
- roles/resourcemanager.projectIamAdmin
192+
- roles/run.admin
229193
services:
230194
- accesscontextmanager.googleapis.com
231195
- cloudbilling.googleapis.com

modules/secure-cloud-run-core/metadata.yaml

Lines changed: 10 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,7 @@ spec:
9090
required: true
9191
- name: default_rules
9292
description: Default rule for Cloud Armor.
93-
varType: |-
94-
map(object({
95-
action = string
96-
priority = string
97-
versioned_expr = string
98-
src_ip_ranges = list(string)
99-
description = string
100-
}))
93+
varType: "map(object({\r\n action = string\r\n priority = string\r\n versioned_expr = string\r\n src_ip_ranges = list(string)\r\n description = string\r\n }))"
10194
defaultValue:
10295
default_rule:
10396
action: allow
@@ -108,12 +101,7 @@ spec:
108101
versioned_expr: SRC_IPS_V1
109102
- name: owasp_rules
110103
description: These are additional Cloud Armor rules for SQLi, XSS, LFI, RCE, RFI, Scannerdetection, Protocolattack and Sessionfixation (requires Cloud Armor default_rule).
111-
varType: |-
112-
map(object({
113-
action = string
114-
priority = string
115-
expression = string
116-
}))
104+
varType: "map(object({\r\n action = string\r\n priority = string\r\n expression = string\r\n }))"
117105
defaultValue:
118106
rule_canary:
119107
action: deny(403)
@@ -153,11 +141,7 @@ spec:
153141
defaultValue: tf-cr-lb
154142
- name: env_vars
155143
description: Environment variables.
156-
varType: |-
157-
list(object({
158-
value = string
159-
name = string
160-
}))
144+
varType: "list(object({\r\n value = string\r\n name = string\r\n }))"
161145
defaultValue: []
162146
- name: members
163147
description: Users/SAs to be given invoker access to the service with the prefix `serviceAccount:' for SAs and `user:` for users.
@@ -169,13 +153,7 @@ spec:
169153
defaultValue: true
170154
- name: traffic_split
171155
description: Managing traffic routing to the service.
172-
varType: |-
173-
list(object({
174-
latest_revision = bool
175-
percent = number
176-
revision_name = string
177-
tag = string
178-
}))
156+
varType: "list(object({\r\n latest_revision = bool\r\n percent = number\r\n revision_name = string\r\n tag = string\r\n }))"
179157
defaultValue:
180158
- latest_revision: true
181159
percent: 100
@@ -198,14 +176,7 @@ spec:
198176
defaultValue: 120
199177
- name: volumes
200178
description: "[Beta] Volumes needed for environment variables (when using secret)."
201-
varType: |-
202-
list(object({
203-
name = string
204-
secret = set(object({
205-
secret_name = string
206-
items = map(string)
207-
}))
208-
}))
179+
varType: "list(object({\r\n name = string\r\n secret = set(object({\r\n secret_name = string\r\n items = map(string)\r\n }))\r\n }))"
209180
defaultValue: []
210181
- name: limits
211182
description: Resource limits to the container.
@@ -216,11 +187,7 @@ spec:
216187
defaultValue: {}
217188
- name: ports
218189
description: Port which the container listens to (http1 or h2c).
219-
varType: |-
220-
object({
221-
name = string
222-
port = number
223-
})
190+
varType: "object({\r\n name = string\r\n port = number\r\n })"
224191
defaultValue:
225192
name: http1
226193
port: 8080
@@ -234,11 +201,7 @@ spec:
234201
defaultValue: []
235202
- name: volume_mounts
236203
description: "[Beta] Volume Mounts to be attached to the container (when using secret)."
237-
varType: |-
238-
list(object({
239-
mount_path = string
240-
name = string
241-
}))
204+
varType: "list(object({\r\n mount_path = string\r\n name = string\r\n }))"
242205
defaultValue: []
243206
- name: verified_domain_name
244207
description: List of custom Domain Name.
@@ -281,11 +244,7 @@ spec:
281244
defaultValue: private-ranges-only
282245
- name: ssl_certificates
283246
description: A object with a list of domains to auto-generate SSL certificates or a list of SSL Certificates self-links in the pattern `projects/<PROJECT-ID>/global/sslCertificates/<CERT-NAME>` to be used by Load Balancer.
284-
varType: |-
285-
object({
286-
ssl_certificates_self_links = list(string)
287-
generate_certificates_for_domains = list(string)
288-
})
247+
varType: "object({\r\n ssl_certificates_self_links = list(string)\r\n generate_certificates_for_domains = list(string)\r\n })"
289248
required: true
290249
outputs:
291250
- name: domain_map_id
@@ -306,13 +265,13 @@ spec:
306265
roles:
307266
- level: Project
308267
roles:
309-
- roles/cloudkms.admin
310-
- roles/resourcemanager.projectIamAdmin
311268
- roles/run.admin
312269
- roles/iam.serviceAccountAdmin
313270
- roles/artifactregistry.admin
314271
- roles/iam.serviceAccountUser
315272
- roles/serviceusage.serviceUsageViewer
273+
- roles/cloudkms.admin
274+
- roles/resourcemanager.projectIamAdmin
316275
services:
317276
- accesscontextmanager.googleapis.com
318277
- cloudbilling.googleapis.com

0 commit comments

Comments
 (0)