diff --git a/charts/graph-toolbox/Chart.yaml b/charts/graph-toolbox/Chart.yaml index 8ccdb822..f2f0caeb 100644 --- a/charts/graph-toolbox/Chart.yaml +++ b/charts/graph-toolbox/Chart.yaml @@ -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 diff --git a/charts/graph-toolbox/README.md b/charts/graph-toolbox/README.md index 0ee33c58..1ba812f5 100644 --- a/charts/graph-toolbox/README.md +++ b/charts/graph-toolbox/README.md @@ -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 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