Skip to content

Commit 41e8806

Browse files
authored
fix amaca liveness probe issue in high scale mode (#1530)
1 parent 9dcd86c commit 41e8806

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

kubernetes/linux/main.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ startAMACoreAgent() {
7979
echo "export PA_CONFIG_PORT=$PA_CONFIG_PORT"
8080
echo "export CounterDataReportFrequencyInMinutes=$CounterDataReportFrequencyInMinutes"
8181
echo "export AMACALogFilePath=$AMACALogFilePath"
82-
} >> ~/.bashrc
82+
} >> ~/.bashrc
8383

8484
if isOpenTelemetryLogsEnabled; then
8585
export PA_AMCS_PROTOCOL="HttpProtobuf"
@@ -92,7 +92,7 @@ startAMACoreAgent() {
9292
export PA_AMCS_PORT=$port_int
9393
fi
9494
fi
95-
95+
9696
{
9797
echo "export PA_AMCS_PROTOCOL=$PA_AMCS_PROTOCOL"
9898
echo "export PA_AMCS_PORT=$PA_AMCS_PORT"
@@ -522,9 +522,9 @@ source common_agent_config_env_var
522522
# check if high log scale mode enabled
523523
if isHighLogScaleMode; then
524524
echo "Enabled High Log Scale Mode"
525-
export IS_HIGH_LOG_SCALE_MODE=true
526-
echo "export IS_HIGH_LOG_SCALE_MODE=$IS_HIGH_LOG_SCALE_MODE" >>~/.bashrc
527-
source ~/.bashrc
525+
setGlobalEnvVar IS_HIGH_LOG_SCALE_MODE true
526+
else
527+
setGlobalEnvVar IS_HIGH_LOG_SCALE_MODE false
528528
fi
529529

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

0 commit comments

Comments
 (0)