1313# ## --repo <url> Specify the image repository url.
1414# ## --repo-user <user> Specify the username for the image repository.
1515# ## --sc, --storage-class <sc> Specify the storage class name.
16+ # ## --real-ip-mode Specify if and how to enable real-ip-forwarding, available option: off, proxy_protocol(default).
17+ # ## --disable-jwt Disable user data isolation.
1618# ## --skip-haproxy Skip HAProxy configuration.
1719# ## --skip-label-studio Skip Label Studio installation.
1820# ## --skip-load Skip loading images.
@@ -39,6 +41,7 @@ SKIP_LOAD=false
3941INSTALL_MILVUS=true
4042INSTALL_LABEL_STUDIO=true
4143EXECUTE_HAPROXY=true
44+ DATAMATE_JWT_ENABLE=true
4245REAL_IP_MODE=proxy_protocol
4346
4447
@@ -133,6 +136,10 @@ function read_value() {
133136 # Modify OMS_AUTH_ENABLED environment variable for gateway
134137 sed -i " /- name: OMS_AUTH_ENABLED/{n;s/value: \" .*\" /value: \" true\" /}" " $VALUES_FILE "
135138 fi
139+
140+ if [ " ${DATAMATE_JWT_ENABLE} " == ' true' ]; then
141+ sed -i ' ' ' /&DATAMATE_JWT_ENABLE/s/false/true/' " $VALUES_FILE "
142+ fi
136143}
137144
138145function read_storage_value() {
@@ -319,6 +326,7 @@ function main() {
319326 --skip-haproxy) EXECUTE_HAPROXY=false; shift ;;
320327 --node-port) NODE_PORT=" $2 " ; shift 2 ;;
321328 --real-ip-mode) REAL_IP_MODE=" $2 " ; shift 2 ;;
329+ --disenable-jwt) DATAMATE_JWT_ENABLE=false; shift ;;
322330 -h|--help) print_help " ${SCRIPT_PATH} " ; exit 0 ;;
323331 * ) log_info " 错误: 未知参数: $1 " ; shift ;;
324332 esac
0 commit comments