Skip to content

Commit

Permalink
feat(graph-toolbox): support aliases robustly without escaping (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjorge-graphops authored Dec 20, 2024
1 parent 53bb287 commit d1c42b3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/graph-toolbox/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.1.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/graph-toolbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Deploy a preconfigured toolbox container for to be used alongside the Graph Network Indexer stack

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: main](https://img.shields.io/badge/AppVersion-main-informational?style=flat-square)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: main](https://img.shields.io/badge/AppVersion-main-informational?style=flat-square)

## Introduction

Expand Down
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 d1c42b3

Please sign in to comment.