Skip to content

Commit c3e168e

Browse files
authored
Merge pull request #782 from vishnoianil/fix-secret-template
Revert the secret template file to fix the installer
2 parents 8efe218 + 2148029 commit c3e168e

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

deploy/podman/native/secret.yaml.example

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1+
# NOTE: update the installer if you update this file.
12
apiVersion: v1
23
data:
3-
IL_UI_ADMIN_PASSWORD: ""
4-
IL_UI_ADMIN_USERNAME: ""
5-
IL_UI_DEPLOYMENT: ""
6-
IL_ENABLE_DEV_MODE: ""
7-
IL_ENABLE_DOC_CONVERSION: ""
8-
NEXT_PUBLIC_EXPERIMENTAL_FEATURES: ""
9-
NEXT_PUBLIC_TAXONOMY_ROOT_DIR: ""
10-
NEXTAUTH_URL: ""
11-
NEXTAUTH_SECRET: ""
12-
NEXT_PUBLIC_API_SERVER: ""
4+
IL_UI_ADMIN_PASSWORD: <PASSWORD>
5+
IL_UI_ADMIN_USERNAME: <USERNAME>
6+
IL_UI_DEPLOYMENT: <UI_DEPLOYMENT>
7+
IL_ENABLE_DEV_MODE: <DEV_MODE>
8+
IL_ENABLE_DOC_CONVERSION: <DOC_CONVERSION>
9+
NEXT_PUBLIC_EXPERIMENTAL_FEATURES: <EXPERIMENTAL_FEATURES>
10+
NEXT_PUBLIC_TAXONOMY_ROOT_DIR: <TAXONOMY_ROOT_DIR>
11+
NEXTAUTH_URL: <AUTH_URL>
12+
NEXTAUTH_SECRET: <AUTH_SECRET>
13+
NEXT_PUBLIC_API_SERVER: <API_SERVER_URL>
1314

1415
kind: Secret
1516
metadata:

installers/podman/ilab-ui-native-installer.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ declare USER_TAXONOMY_DIR
1515
declare AUTH_URL="http://localhost:3000"
1616
declare AUTH_SECRET="your_super_secret_random_string"
1717
declare DEV_MODE="false"
18+
declare DOC_CONVERSION="true"
1819
declare EXPERIMENTAL_FEATURES=""
1920
declare PYENV_DIR=""
2021
declare API_SERVER_URL=""
@@ -434,6 +435,7 @@ if [[ "$COMMAND" == "install" ]]; then
434435
AUTH_URL_B64=$(echo -n "$AUTH_URL" | base64)
435436
AUTH_SECRET_B64=$(echo -n "$AUTH_SECRET" | base64)
436437
DEV_MODE_B64=$(echo -n "$DEV_MODE" | base64)
438+
DOC_CONVERSION_B64=$(echo -n "$DOC_CONVERSION" | base64)
437439

438440
if [[ "$EXPERIMENTAL_FEATURES" == "" ]]; then
439441
if [[ "$IS_ILAB_INSTALLED" == "true" ]]; then
@@ -478,6 +480,7 @@ if [[ "$COMMAND" == "install" ]]; then
478480
sed -i "" "s|<AUTH_URL>|$AUTH_URL_B64|g" secret.yaml
479481
sed -i "" "s|<AUTH_SECRET>|$AUTH_SECRET_B64|g" secret.yaml
480482
sed -i "" "s|<DEV_MODE>|$DEV_MODE_B64|g" secret.yaml
483+
sed -i "" "s|<DOC_CONVERSION>|$DOC_CONVERSION_B64|g" secret.yaml
481484
sed -i "" "s|<EXPERIMENTAL_FEATURES>|$EXPERIMENTAL_FEATURES_B64|g" secret.yaml
482485
sed -i "" "s|<API_SERVER_URL>|$API_SERVER_URL_B64|g" secret.yaml
483486
else
@@ -488,6 +491,7 @@ if [[ "$COMMAND" == "install" ]]; then
488491
sed -i "s|<AUTH_URL>|$AUTH_URL_B64|g" secret.yaml
489492
sed -i "s|<AUTH_SECRET>|$AUTH_SECRET_B64|g" secret.yaml
490493
sed -i "s|<DEV_MODE>|$DEV_MODE_B64|g" secret.yaml
494+
sed -i "s|<DOC_CONVERSION>|$DOC_CONVERSION_B64|g" secret.yaml
491495
sed -i "s|<EXPERIMENTAL_FEATURES>|$EXPERIMENTAL_FEATURES_B64|g" secret.yaml
492496
sed -i "s|<API_SERVER_URL>|$API_SERVER_URL_B64|g" secret.yaml
493497
fi

0 commit comments

Comments
 (0)