From 2148029e4e3a4036c33d8f2cf8c61428f8a21594 Mon Sep 17 00:00:00 2001 From: Anil Vishnoi Date: Fri, 2 May 2025 13:12:41 -0700 Subject: [PATCH] Revert the secret template file to fix the installer Also add the document conversion flag to enable document convertion for native mode. Signed-off-by: Anil Vishnoi --- deploy/podman/native/secret.yaml.example | 21 ++++++++++--------- installers/podman/ilab-ui-native-installer.sh | 4 ++++ 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/deploy/podman/native/secret.yaml.example b/deploy/podman/native/secret.yaml.example index 11f2df61..fec2f395 100644 --- a/deploy/podman/native/secret.yaml.example +++ b/deploy/podman/native/secret.yaml.example @@ -1,15 +1,16 @@ +# NOTE: update the installer if you update this file. apiVersion: v1 data: - IL_UI_ADMIN_PASSWORD: "" - IL_UI_ADMIN_USERNAME: "" - IL_UI_DEPLOYMENT: "" - IL_ENABLE_DEV_MODE: "" - IL_ENABLE_DOC_CONVERSION: "" - NEXT_PUBLIC_EXPERIMENTAL_FEATURES: "" - NEXT_PUBLIC_TAXONOMY_ROOT_DIR: "" - NEXTAUTH_URL: "" - NEXTAUTH_SECRET: "" - NEXT_PUBLIC_API_SERVER: "" + IL_UI_ADMIN_PASSWORD: + IL_UI_ADMIN_USERNAME: + IL_UI_DEPLOYMENT: + IL_ENABLE_DEV_MODE: + IL_ENABLE_DOC_CONVERSION: + NEXT_PUBLIC_EXPERIMENTAL_FEATURES: + NEXT_PUBLIC_TAXONOMY_ROOT_DIR: + NEXTAUTH_URL: + NEXTAUTH_SECRET: + NEXT_PUBLIC_API_SERVER: kind: Secret metadata: diff --git a/installers/podman/ilab-ui-native-installer.sh b/installers/podman/ilab-ui-native-installer.sh index c365e81b..52f0f54c 100755 --- a/installers/podman/ilab-ui-native-installer.sh +++ b/installers/podman/ilab-ui-native-installer.sh @@ -15,6 +15,7 @@ declare USER_TAXONOMY_DIR declare AUTH_URL="http://localhost:3000" declare AUTH_SECRET="your_super_secret_random_string" declare DEV_MODE="false" +declare DOC_CONVERSION="true" declare EXPERIMENTAL_FEATURES="" declare PYENV_DIR="" declare API_SERVER_URL="" @@ -434,6 +435,7 @@ if [[ "$COMMAND" == "install" ]]; then AUTH_URL_B64=$(echo -n "$AUTH_URL" | base64) AUTH_SECRET_B64=$(echo -n "$AUTH_SECRET" | base64) DEV_MODE_B64=$(echo -n "$DEV_MODE" | base64) + DOC_CONVERSION_B64=$(echo -n "$DOC_CONVERSION" | base64) if [[ "$EXPERIMENTAL_FEATURES" == "" ]]; then if [[ "$IS_ILAB_INSTALLED" == "true" ]]; then @@ -478,6 +480,7 @@ if [[ "$COMMAND" == "install" ]]; then sed -i "" "s||$AUTH_URL_B64|g" secret.yaml sed -i "" "s||$AUTH_SECRET_B64|g" secret.yaml sed -i "" "s||$DEV_MODE_B64|g" secret.yaml + sed -i "" "s||$DOC_CONVERSION_B64|g" secret.yaml sed -i "" "s||$EXPERIMENTAL_FEATURES_B64|g" secret.yaml sed -i "" "s||$API_SERVER_URL_B64|g" secret.yaml else @@ -488,6 +491,7 @@ if [[ "$COMMAND" == "install" ]]; then sed -i "s||$AUTH_URL_B64|g" secret.yaml sed -i "s||$AUTH_SECRET_B64|g" secret.yaml sed -i "s||$DEV_MODE_B64|g" secret.yaml + sed -i "s||$DOC_CONVERSION_B64|g" secret.yaml sed -i "s||$EXPERIMENTAL_FEATURES_B64|g" secret.yaml sed -i "s||$API_SERVER_URL_B64|g" secret.yaml fi