Skip to content

Commit ed30392

Browse files
docs: fix inaccurate docs for Cloud Run environment variables (#11398) (#7982)
[upstream:dadeef857cb23c12b730459f36b9a4328ca4c9e9] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent 4db5a94 commit ed30392

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

.changelog/11398.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google-beta/services/cloudrunv2/resource_cloud_run_v2_job.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func ResourceCloudRunV2Job() *schema.Resource {
9898
"args": {
9999
Type: schema.TypeList,
100100
Optional: true,
101-
Description: `Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell`,
101+
Description: `Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run.`,
102102
Elem: &schema.Schema{
103103
Type: schema.TypeString,
104104
},
@@ -125,7 +125,7 @@ func ResourceCloudRunV2Job() *schema.Resource {
125125
"value": {
126126
Type: schema.TypeString,
127127
Optional: true,
128-
Description: `Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes`,
128+
Description: `Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.`,
129129
},
130130
"value_source": {
131131
Type: schema.TypeList,

google-beta/services/cloudrunv2/resource_cloud_run_v2_service.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ This field follows Kubernetes annotations' namespacing, limits, and rules.`,
101101
"args": {
102102
Type: schema.TypeList,
103103
Optional: true,
104-
Description: `Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell`,
104+
Description: `Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run.`,
105105
Elem: &schema.Schema{
106106
Type: schema.TypeString,
107107
},
@@ -131,12 +131,12 @@ This field follows Kubernetes annotations' namespacing, limits, and rules.`,
131131
"name": {
132132
Type: schema.TypeString,
133133
Required: true,
134-
Description: `Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.`,
134+
Description: `Name of the environment variable. Must be a C_IDENTIFIER, and may not exceed 32768 characters.`,
135135
},
136136
"value": {
137137
Type: schema.TypeString,
138138
Optional: true,
139-
Description: `Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes`,
139+
Description: `Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.`,
140140
},
141141
"value_source": {
142142
Type: schema.TypeList,

website/docs/r/cloud_run_v2_job.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ The following arguments are supported:
469469

470470
* `args` -
471471
(Optional)
472-
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
472+
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run.
473473

474474
* `env` -
475475
(Optional)
@@ -505,7 +505,7 @@ The following arguments are supported:
505505

506506
* `value` -
507507
(Optional)
508-
Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
508+
Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.
509509

510510
* `value_source` -
511511
(Optional)

website/docs/r/cloud_run_v2_service.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ The following arguments are supported:
630630

631631
* `args` -
632632
(Optional)
633-
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
633+
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run.
634634

635635
* `env` -
636636
(Optional)
@@ -676,11 +676,11 @@ The following arguments are supported:
676676

677677
* `name` -
678678
(Required)
679-
Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
679+
Name of the environment variable. Must be a C_IDENTIFIER, and may not exceed 32768 characters.
680680

681681
* `value` -
682682
(Optional)
683-
Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
683+
Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.
684684

685685
* `value_source` -
686686
(Optional)

0 commit comments

Comments
 (0)