Skip to content

Commit

Permalink
Merge pull request #19462 from jakesmith/HPCC-33306-helm-start-withou…
Browse files Browse the repository at this point in the history
…t-debug

HPCC-33306 Fix issue starting 9.10 without a debug plane
  • Loading branch information
jakesmith authored Jan 28, 2025
2 parents 2551454 + c962f64 commit d8b7a9c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion helm/hpcc/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -1933,9 +1933,10 @@ lifecycle:
{{- if $postRun -}}
{{- $args = append $args "-p" -}}
{{- end -}}
{{- $args = concat $args (list "-d" $prefix "-c" $containerName "--") -}}
{{- $args = concat $args (list "-d" $prefix "-c" $containerName) -}}
{{- $_ := set .lifeCycleCtx "containers" (append .lifeCycleCtx.containers (dict "name" $containerName "process" .process "config" $configCtx.name)) -}}
{{- end -}}
{{- $args = append $args "--" -}}
{{- $args = append $args .process -}}
{{- $args = append $args (include "hpcc.configArg" $configCtx) -}}
{{- $args = append $args (include "hpcc.daliArg" .) -}}
Expand Down
18 changes: 12 additions & 6 deletions initfiles/bin/check_executes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
eval set -- "$1"

usage() {
echo "Usage: check_executes [options] -- cmd args"
echo "Usage: check_executes.sh [options] -- cmd args"
echo " -c <name> The name of the container"
echo " -d <directory> Mounted directory to store post-mortem info in"
echo " -f <file> Specifies a file to preserve on post-mortem"
echo " -a Always collect post-mortem info, even if the process exits cleanly"
echo " -v Run the process under valgrind"
echo " -p This is a postrun sidecar container"
}

PMD_DIRECTORYBASE=$(pwd)
PMD_DIRECTORYBASE=
PMD_PROGNAME=
PMD_DALISERVER=
PMD_WORKUNIT=
Expand Down Expand Up @@ -152,9 +154,13 @@ if [ $PMD_ALWAYS = true ] || [ $retVal -ne 0 ]; then
if [[ -n "$PMD_WORKUNIT" ]]; then
extraArgs+=("--workunit=$PMD_WORKUNIT")
fi
echo "Collecting post mortem info"
collect_postmortem.sh "--directory=${PMD_DIRECTORYBASE}" "--daliServer=${PMD_DALISERVER}" "--container=${PMD_CONTAINERNAME}" "--process=${PMD_PROGNAME}" "${extraArgs[@]}"
echo "Post mortem collection completed"
if [[ -n "$PMD_DIRECTORYBASE" ]]; then
echo "Collecting post mortem info"
collect_postmortem.sh "--directory=${PMD_DIRECTORYBASE}" "--daliServer=${PMD_DALISERVER}" "--container=${PMD_CONTAINERNAME}" "--process=${PMD_PROGNAME}" "${extraArgs[@]}"
echo "Post mortem collection completed"
else
echo "Post mortem directory not provided, unable to collect post mortem info"
fi
else
echo "Process exited cleanly (code=0)"
fi
Expand Down

0 comments on commit d8b7a9c

Please sign in to comment.