1
0
Fork 0
mirror of synced 2024-06-26 18:10:51 +12:00

add environment variable

This commit is contained in:
Peter Clement 2022-04-13 10:23:40 +01:00
parent aa60f8697f
commit 47dcc24491
4 changed files with 6 additions and 2 deletions

View file

@ -114,6 +114,9 @@ spec:
value: {{ .Values.globals.google.clientId | quote }}
- name: GOOGLE_CLIENT_SECRET
value: {{ .Values.globals.google.secret | quote }}
- name: AUTOMATION_MAX_ITERATIONS
value: {{ .Values.globals.automationMaxIterations | quote }}
image: budibase/apps:{{ .Values.globals.appVersion }}
imagePullPolicy: Always
name: bbapps

View file

@ -103,6 +103,7 @@ globals:
google:
clientId: ""
secret: ""
automationMaxIterations: "0"
createSecrets: true # creates an internal API key, JWT secrets and redis password for you

View file

@ -59,10 +59,10 @@ module.exports = {
LOG_LEVEL: process.env.LOG_LEVEL,
AUTOMATION_DIRECTORY: process.env.AUTOMATION_DIRECTORY,
AUTOMATION_BUCKET: process.env.AUTOMATION_BUCKET,
AUTOMATION_MAX_ITERATIONS: process.env.AUTOMATION_MAX_ITERATIONS,
SENDGRID_API_KEY: process.env.SENDGRID_API_KEY,
DYNAMO_ENDPOINT: process.env.DYNAMO_ENDPOINT,
POSTHOG_TOKEN: process.env.POSTHOG_TOKEN,
AUTOMATION_MAX_ITERATIONS: process.env.AUTOMATION_MAX_ITERATIONS,
// old - to remove
CLIENT_ID: process.env.CLIENT_ID,
BUDIBASE_DIR: process.env.BUDIBASE_DIR,

View file

@ -172,7 +172,7 @@ class Orchestrator {
}
if (
index === env.AUTOMATION_MAX_ITERATIONS ||
index === parseInt(env.AUTOMATION_MAX_ITERATIONS) ||
index === loopStep.inputs.iterations
) {
this.updateContextAndOutput(loopStepNumber, step, tempOutput, {