@google-cloud/nodejs-common 1.9.2-alpha → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/install_functions.sh +4 -0
- package/package.json +1 -1
package/bin/install_functions.sh
CHANGED
|
@@ -1559,6 +1559,7 @@ set_cloud_functions_default_settings() {
|
|
|
1559
1559
|
default_cf_flag+=(--set-env-vars=PROJECT_NAMESPACE="${PROJECT_NAMESPACE}")
|
|
1560
1560
|
default_cf_flag+=(--set-env-vars=DEBUG="${DEBUG}")
|
|
1561
1561
|
default_cf_flag+=(--set-env-vars=IN_GCP="${IN_GCP}")
|
|
1562
|
+
default_cf_flag+=(--set-env-vars=DATABASE_ID="${DATABASE_ID}")
|
|
1562
1563
|
}
|
|
1563
1564
|
|
|
1564
1565
|
#######################################
|
|
@@ -1571,6 +1572,9 @@ set_cloud_functions_default_settings() {
|
|
|
1571
1572
|
#######################################
|
|
1572
1573
|
set_authentication_env_for_cloud_functions() {
|
|
1573
1574
|
local -n default_cf_flag=$1
|
|
1575
|
+
if [[ ! -z "${SECRET_NAME}" ]]; then
|
|
1576
|
+
cf_flag+=(--set-env-vars=SECRET_NAME="${SECRET_NAME}")
|
|
1577
|
+
fi
|
|
1574
1578
|
if [[ -f "${SA_KEY_FILE}" ]]; then
|
|
1575
1579
|
cf_flag+=(--set-env-vars=API_SERVICE_ACCOUNT="${SA_KEY_FILE}")
|
|
1576
1580
|
fi
|