Skip to content

Commit

Permalink
fix: add env dns resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimanyubabbar committed Sep 18, 2024
1 parent 0006794 commit 423c1bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util/openfaas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const CUSTOM_NETWORK_POLICY_WORKSPACE_IDS = process.env.CUSTOM_NETWORK_POLICY_WO
const customNetworkPolicyWorkspaceIds = CUSTOM_NETWORK_POLICY_WORKSPACE_IDS.split(',');
const CUSTOMER_TIER = process.env.CUSTOMER_TIER || 'shared';
const FAAS_SCALE_DOWN_WINDOW = process.env.FAAS_SCALE_DOWN_WINDOW || ''; // Go time values are supported ( max 5m or 300s )
const FAAS_DNS_RESOLVER = process.env.FAAS_DNS_RESOLVER || 'false';

// Initialise node cache
const functionListCache = new NodeCache();
Expand Down Expand Up @@ -309,6 +310,7 @@ function buildOpenfaasFn(name, code, versionId, libraryVersionIDs, testMode, trM
const envVars = {
GUNICORN_WORKER_COUNT: FAAS_GUNICORN_WORKERS,
GUNICORN_THREAD_COUNT: FAAS_GUNICORN_THREADS,
dns_resolver: FAAS_DNS_RESOLVER,
};

if (FAAS_ENABLE_WATCHDOG_ENV_VARS.trim().toLowerCase() === 'true') {
Expand Down

0 comments on commit 423c1bb

Please sign in to comment.