Skip to content

Commit 54fbd78

Browse files
committed
fix amaca liveness probe issue in high scale mode
1 parent c41071c commit 54fbd78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kubernetes/linux/main.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,10 +494,10 @@ source common_agent_config_env_var
494494

495495
# check if high log scale mode enabled
496496
if isHighLogScaleMode; then
497-
echo "Enabled High Log Scale Mode"
498-
export IS_HIGH_LOG_SCALE_MODE=true
499-
echo "export IS_HIGH_LOG_SCALE_MODE=$IS_HIGH_LOG_SCALE_MODE" >>~/.bashrc
500-
source ~/.bashrc
497+
echo "Enabled High Log Scale Mode"
498+
setGlobalEnvVar IS_HIGH_LOG_SCALE_MODE true
499+
else
500+
setGlobalEnvVar IS_HIGH_LOG_SCALE_MODE false
501501
fi
502502

503503
#Parse the configmap to set the right environment variables for agent config.

0 commit comments

Comments
 (0)