Open scosman opened 2 years ago
Can you try to remove the required key? (false is the default) Maybe the parsing of the false
value is wrong.
@jamesward required is true by default according to https://github.com/GoogleCloudPlatform/cloud-run-button/blob/master/cmd/cloudshell_open/appfile.go#L112
Oh right. I got that backwards. I think that what might be needed to make this work is the default value which could (hopefully) be set to an empty string, like:
"value": ""
I'm still seeing the issue with "value": ""
. And not to nit, but an empty string might be handled differently than no value in some apps. An easy way to skip non-required ENV vars would be nice. Thank you!!
Test file: https://github.com/scosman/zipstreamer/blob/cloudrun_fix_required/app.json
I have an open source project using Cloud Run + app.json to specify env vars.
Even though required=false in app.json, in the console I get the error message
Sorry, your reply was invalid: Value is required
if I try to skip setting it (via enter). It looks like required=false isn't being respected?https://github.com/scosman/zipstreamer/tree/docker-docs