Skip to content

Commit

Permalink
Adds documentation for the name overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
silent-lad committed May 24, 2024
1 parent e398138 commit e692064
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions charts/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

# If you want to have multiple Trino Clusters in same namespace

Check failure on line 5 in charts/trino/values.yaml

View workflow job for this annotation

GitHub Actions / lint

5:64 [trailing-spaces] trailing spaces
# override the following values to avoid naming conflicts
# Example:
# coordinatorNameOverride: trino-adhoc

Check failure on line 8 in charts/trino/values.yaml

View workflow job for this annotation

GitHub Actions / lint

8:39 [trailing-spaces] trailing spaces
# workerNameOverride: trino-adhoc

Check failure on line 9 in charts/trino/values.yaml

View workflow job for this annotation

GitHub Actions / lint

9:34 [trailing-spaces] trailing spaces
# nameOverride: trino-adhoc

image:
# -- Image registry, defaults to empty, which results in DockerHub usage
registry: ""
Expand Down
6 changes: 3 additions & 3 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare -A testCases=(
[default]=""
[single_node]="--set server.workers=0"
[complete_values]="--values test-values.yaml"
[multiple_clusters]="--set coordinatorNameOverride=overriden --set workerNameOverride=overriden --set nameOverride=overriden"
[multiple_clusters]="--set coordinatorNameOverride=overriden,workerNameOverride=overriden,nameOverride=overriden"
)

function join_by {
Expand Down Expand Up @@ -82,12 +82,12 @@ for test_name in "${TEST_NAMES[@]}"; do
echo "🧪 Running test $test_name"
echo "${testCases[$test_name]}"
if [ "$test_name" == "multiple_clusters" ]; then
time ct install "${CT_ARGS[@]}" --helm-extra-set-args "$HELM_EXTRA_SET_ARGS ${testCases[default]}"
time ct install "${CT_ARGS[@]}" --helm-extra-set-args "$HELM_EXTRA_SET_ARGS ${testCases[default]}" --skip-clean-up
time ct install "${CT_ARGS[@]}" --helm-extra-set-args "$HELM_EXTRA_SET_ARGS ${testCases[$test_name]}"
else
time ct install "${CT_ARGS[@]}" --helm-extra-set-args "$HELM_EXTRA_SET_ARGS ${testCases[$test_name]}"
fi

echo "Test $test_name completed"
done

Expand Down

0 comments on commit e692064

Please sign in to comment.