Skip to content

Commit 7e4e766

Browse files
oliver-hohnDawid212
authored andcommitted
Set a default value for envs in Cloud Run Job (GoogleCloudPlatform#13487)
1 parent ef00902 commit 7e4e766

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mmv1/products/cloudrunv2/Job.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@ properties:
349349
required: true
350350
- name: 'value'
351351
type: String
352+
# env is a set.
353+
# The env.value has value "" in Terraform state, but it has value nil in Terraform plan,
354+
# which causes the diffs for unchanged env. default_value: "" is to suppress the diffs.
355+
default_value: ""
352356
description: |-
353357
Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.
354358
# exactly_one_of:

0 commit comments

Comments
 (0)