Skip to content

Commit

Permalink
feat(graph-toolbox): support robust aliases without escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
cjorge-graphops committed Dec 17, 2024
1 parent 0e3fe4c commit 5ebb4ba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion charts/graph-toolbox/templates/toolbox/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ebb4ba

Please sign in to comment.