-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #346 from StatCan/trino-cli
add: trino wrapper script
- Loading branch information
Showing
17 changed files
with
144 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
output/docker-stacks-datascience-notebook/trino-wrapper.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Get token from default service account | ||
GET_TOKEN="$(kubectl describe secret default-token | grep 'token:' | sed 's/^.*://')" | ||
|
||
#todo: Change server when deployed on dev. Placeholder for now | ||
SERVER=https://trino.example.com | ||
|
||
# Trino client pass in server, access token and additional options the user can configures | ||
# todo: remove user option | ||
trino-original --server $SERVER --insecure --access-token $GET_TOKEN --user default "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Get token from default service account | ||
GET_TOKEN="$(kubectl describe secret default-token | grep 'token:' | sed 's/^.*://')" | ||
|
||
#todo: Change server when deployed on dev. Placeholder for now | ||
SERVER=https://trino.example.com | ||
|
||
# Trino client pass in server, access token and additional options the user can configures | ||
# todo: remove user option | ||
trino-original --server $SERVER --insecure --access-token $GET_TOKEN --user default "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Get token from default service account | ||
GET_TOKEN="$(kubectl describe secret default-token | grep 'token:' | sed 's/^.*://')" | ||
|
||
#todo: Change server when deployed on dev. Placeholder for now | ||
SERVER=https://trino.example.com | ||
|
||
# Trino client pass in server, access token and additional options the user can configures | ||
# todo: remove user option | ||
trino-original --server $SERVER --insecure --access-token $GET_TOKEN --user default "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Get token from default service account | ||
GET_TOKEN="$(kubectl describe secret default-token | grep 'token:' | sed 's/^.*://')" | ||
|
||
#todo: Change server when deployed on dev. Placeholder for now | ||
SERVER=https://trino.example.com | ||
|
||
# Trino client pass in server, access token and additional options the user can configures | ||
# todo: remove user option | ||
trino-original --server $SERVER --insecure --access-token $GET_TOKEN --user default "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Get token from default service account | ||
GET_TOKEN="$(kubectl describe secret default-token | grep 'token:' | sed 's/^.*://')" | ||
|
||
#todo: Change server when deployed on dev. Placeholder for now | ||
SERVER=https://trino.example.com | ||
|
||
# Trino client pass in server, access token and additional options the user can configures | ||
# todo: remove user option | ||
trino-original --server $SERVER --insecure --access-token $GET_TOKEN --user default "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Get token from default service account | ||
GET_TOKEN="$(kubectl describe secret default-token | grep 'token:' | sed 's/^.*://')" | ||
|
||
#todo: Change server when deployed on dev. Placeholder for now | ||
SERVER=https://trino.example.com | ||
|
||
# Trino client pass in server, access token and additional options the user can configures | ||
# todo: remove user option | ||
trino-original --server $SERVER --insecure --access-token $GET_TOKEN --user default "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Get token from default service account | ||
GET_TOKEN="$(kubectl describe secret default-token | grep 'token:' | sed 's/^.*://')" | ||
|
||
#todo: Change server when deployed on dev. Placeholder for now | ||
SERVER=https://trino.example.com | ||
|
||
# Trino client pass in server, access token and additional options the user can configures | ||
# todo: remove user option | ||
trino-original --server $SERVER --insecure --access-token $GET_TOKEN --user default "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Get token from default service account | ||
GET_TOKEN="$(kubectl describe secret default-token | grep 'token:' | sed 's/^.*://')" | ||
|
||
#todo: Change server when deployed on dev. Placeholder for now | ||
SERVER=https://trino.example.com | ||
|
||
# Trino client pass in server, access token and additional options the user can configures | ||
# todo: remove user option | ||
trino-original --server $SERVER --insecure --access-token $GET_TOKEN --user default "$@" |