Skip to content
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 13 commits into from
Mar 24, 2023
Merged

TRD mainnet adaptations #514

merged 13 commits into from
Mar 24, 2023

Conversation

nicolasochem
Copy link
Collaborator

@nicolasochem nicolasochem commented Dec 7, 2022

I deployed TRD against a mainnet baker with tezos-k8s and found a few missing parameters from the original work. Adding them.

Also, I am commenting out by default the TRD params in values.yaml, otherwise they get deep-merged by helm, which yields odd results.

I am also adding the option to upload the resulting data from trd to a bucket. Since TRD runs in a cronjob, it's hard to shell into it to look at the files. Uploading the entire PVC to a bucket is a nice substitute.

@nicolasochem nicolasochem marked this pull request as ready for review March 24, 2023 20:04
Copy link
Collaborator

@harryttd harryttd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When do the values get deep merged?

charts/tezos-reward-distributor/templates/cronjob.yaml Outdated Show resolved Hide resolved
Comment on lines +81 to +83
- name: report-uploader
image: {{ .Values.tezos_k8s_images.snapshotEngine }}
volumeMounts:
Copy link
Collaborator

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

@nicolasochem
Copy link
Collaborator Author

When do the values get deep merged?

When you pass custom values.yaml with TRD config, it gets merged with this dummy default config that was in the yaml. It's best to put nothing and let the user set the entire config in custom values.ayml

@harryttd
Copy link
Collaborator

ah understood. How about leaving the properties as actual values but leaving them empty or with empty strings for example. Especially for properties that must be set to indicate to the user they must set them

Copy link
Collaborator

@harryttd harryttd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome. looks good. i'm assuming it works

@nicolasochem nicolasochem merged commit b4f14fe into master Mar 24, 2023
@harryttd harryttd deleted the trd_mainnet branch March 26, 2023 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants