diff --git a/charts/graph-toolbox/templates/toolbox/statefulset.yaml b/charts/graph-toolbox/templates/toolbox/statefulset.yaml index 252e93e3..3d86458e 100644 --- a/charts/graph-toolbox/templates/toolbox/statefulset.yaml +++ b/charts/graph-toolbox/templates/toolbox/statefulset.yaml @@ -53,8 +53,15 @@ spec: - -ac - | set -e + {{- if not (empty $values.aliases) }} + cat << 'EOF' >> ~/.bashrc {{- range $alias, $command := $values.aliases }} - echo "alias {{ $alias }}=\"{{ $command | trim }}\"" >> ~/.bashrc + alias {{ $alias }}=$(cat << 'EOA' + {{ $command | trim }} + EOA + ) + {{- end }} + EOF {{- end }} mkdir -p ~/.config/graph-cli echo "api = '{{ required "Missing configuration" $values.config.indexer.indexerAgentManagementUrl }}'" > ~/.config/graph-cli/indexing.toml