feat:TSG-18751

This commit is contained in:
linxin
2024-01-22 19:02:18 +08:00
committed by 付明卫
parent 8d743ecb8c
commit 4acb7424dd
6 changed files with 30 additions and 0 deletions

View File

@@ -39,8 +39,13 @@
{{- define "mrzcpd.prestart" -}}
{{- if eq .Values.mrzcpd.debug.enable_prestart_script .Values.define_enable_val_yes }}
echo WARNING: PRESTART.sh is enable, the commands in PRESTART.sh is:
cat /opt/tsg/scripts/prestart.sh
chmod 0755 /opt/tsg/scripts/prestart.sh
/opt/tsg/scripts/prestart.sh
echo PRESTART.sh has been exec......
{{- end }}
{{- end -}}

View File

@@ -112,7 +112,12 @@
{{- define "traffic-engine.inject_adapter.prestart" -}}
{{- if eq .Values.debug.inject_adapter.enable_prestart_script .Values.define_enable_val_yes }}
echo WARNING: PRESTART.sh is enable, the commands in PRESTART.sh is:
cat /opt/tsg/scripts/prestart.sh
chmod 0755 /opt/tsg/scripts/prestart.sh
/opt/tsg/scripts/prestart.sh
echo PRESTART.sh has been exec......
{{- end }}
{{- end -}}

View File

@@ -56,8 +56,13 @@ spec:
sed -Ei -c "s|SD_POLICY_LOCAL_CACHE_IP_LOCATION|${SD_POLICY_LOCAL_CACHE_IP?}|g" /opt/tsg/sapp/tsgconf/maat.conf
{{- end }}
{{- if eq .Values.debug.firewall.enable_prestart_script .Values.define_enable_val_yes }}
echo WARNING: PRESTART.sh is enable, the commands in PRESTART.sh is:
cat /opt/tsg/scripts/prestart.sh
chmod 0755 /opt/tsg/scripts/prestart.sh
/opt/tsg/scripts/prestart.sh
echo PRESTART.sh has been exec......
{{- end }}
{{- if eq .Values.debug.firewall.enable_interactive_startup .Values.define_enable_val_yes }}
while true; do sleep 10;done

View File

@@ -52,8 +52,13 @@ spec:
sed -Ei -c "s|CM_POLICY_LOCAL_CACHE_IP_LOCATION|${CM_POLICY_LOCAL_CACHE_IP?}|g" /opt/tsg/tfe/conf/tfe/tfe.conf
{{- end }}
{{- if eq .Values.debug.proxy.enable_prestart_script .Values.define_enable_val_yes }}
echo WARNING: PRESTART.sh is enable, the commands in PRESTART.sh is:
cat /opt/tsg/scripts/prestart.sh
chmod 0755 /opt/tsg/scripts/prestart.sh
/opt/tsg/scripts/prestart.sh
echo PRESTART.sh has been exec......
{{- end }}
{{- if eq .Values.debug.proxy.enable_interactive_startup .Values.define_enable_val_yes }}
while true; do sleep 10;done

View File

@@ -52,8 +52,13 @@ spec:
sed -Ei -c "s|CM_POLICY_LOCAL_CACHE_IP_LOCATION|${CM_POLICY_LOCAL_CACHE_IP?}|g" /opt/tsg/sce/conf/sce.conf
{{- end }}
{{- if eq .Values.debug.service_chaining.enable_prestart_script .Values.define_enable_val_yes }}
echo WARNING: PRESTART.sh is enable, the commands in PRESTART.sh is:
cat /opt/tsg/scripts/prestart.sh
chmod 0755 /opt/tsg/scripts/prestart.sh
/opt/tsg/scripts/prestart.sh
echo PRESTART.sh has been exec......
{{- end }}
{{- if eq .Values.debug.service_chaining.enable_interactive_startup .Values.define_enable_val_yes }}
while true; do sleep 10;done

View File

@@ -62,8 +62,13 @@ spec:
sed -Ei -c "s|CLUSTER_ANNOUNCE_PORT_LOCATION|${CLUSTER_ANNOUNCE_PORT?}|g" /opt/tsg/shaping_engine/conf/shaping.conf
sed -Ei -c "s|HEALTH_CHECK_ANNOUNCE_PORT_LOCATION|${HEALTH_CHECK_ANNOUNCE_PORT?}|g" /opt/tsg/shaping_engine/conf/shaping.conf
{{- if eq .Values.debug.shaping.enable_prestart_script .Values.define_enable_val_yes }}
echo WARNING: PRESTART.sh is enable, the commands in PRESTART.sh is:
cat /opt/tsg/scripts/prestart.sh
chmod 0755 /opt/tsg/scripts/prestart.sh
/opt/tsg/scripts/prestart.sh
echo PRESTART.sh has been exec......
{{- end }}
{{- if eq .Values.debug.shaping.enable_interactive_startup .Values.define_enable_val_yes }}
while true; do sleep 10;done