-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TRD mainnet adaptations #514
Merged
Merged
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
01cf146
add network selector for tezos reward distributor
nicolasochem 8c264d1
add more missing params
nicolasochem 0217fab
introduce dedicated script for trd
nicolasochem 502f647
proper quoting of env vars
nicolasochem 252c141
fix typo in dry_run
nicolasochem bd583a4
save more failed jobs
nicolasochem bd1646e
add bucket uploader
nicolasochem 5fba7fb
add bucket report uploader for trd
nicolasochem 815e934
make sure 2 diff instances of trd can be deployed in the same ns
nicolasochem 7923dcf
Merge branch 'master' into trd_mainnet
nicolasochem 32beb62
manage aws secret key for upload as k8s secret
nicolasochem 728b4a3
create an export file for trd bucket upload secrets
nicolasochem 525a167
fix wrong path
nicolasochem File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
echo "Uploading TRD data to bucket" | ||
|
||
source /trd/config/bucket_upload_secrets | ||
if [ ! -z ${BUCKET_NAME} ];then | ||
aws s3 cp --recursive /trd/ s3://${BUCKET_NAME}/${BAKER_NAME} --endpoint $BUCKET_ENDPOINT_URL | ||
fi | ||
sleep 10 |
3 changes: 3 additions & 0 deletions
3
charts/tezos-reward-distributor/scripts/bucket_upload_secrets
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,3 @@ | ||
export AWS_ACCESS_KEY_ID="{{ .Values.bucket_upload_secrets.access_key_id }}" | ||
export AWS_SECRET_ACCESS_KEY="{{ .Values.bucket_upload_secrets.secret_access_key }}" | ||
export AWS_DEFAULT_REGION="{{ .Values.bucket_upload_secrets.default_region }}" |
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,19 @@ | ||
#!/bin/sh | ||
|
||
if [ "${DRY_RUN}" == "false" ]; then | ||
dry_run_arg="" | ||
else | ||
dry_run_arg="--dry_run" | ||
fi | ||
python src/main.py \ | ||
-M 2 \ | ||
--reward_data_provider ${REWARD_DATA_PROVIDER} \ | ||
--node_addr_public ${TEZOS_NODE_ADDR} \ | ||
--node_endpoint ${TEZOS_NODE_ADDR} \ | ||
--base_directory /trd \ | ||
--signer_endpoint ${SIGNER_ADDR} \ | ||
--release_override ${RELEASE_OVERRIDE} \ | ||
--initial_cycle ${INITIAL_CYCLE} \ | ||
-N ${NETWORK} \ | ||
${EXTRA_TRD_ARGS} \ | ||
${dry_run_arg} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: tezos-reward-distributor-config | ||
name: {{ include "tezos-reward-distributor.fullname" . }}-config | ||
data: | ||
config.yaml: |2+ | ||
{{ toYaml $.Values.trd_config |nindent 4}} |
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,6 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "tezos-reward-distributor.fullname" . }}-secret | ||
data: | ||
bucket_upload_secrets: {{ tpl (.Files.Get "scripts/bucket_upload_secrets") . | b64enc | quote }} |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems this is always run even if none of the aws and bucket vals are set