[Infra] Adapt pocket helm chart for DevNets#682
Conversation
There was a problem hiding this comment.
Missing changelog in module: build/
Latest date in charts/CHANGELOG.md is incorrect.
Latest: 2023-04-19, Current: 2023-04-18
Latest date in e2e/docs/CHANGELOG.md is incorrect.
Latest: 2023-04-14, Current: 2023-04-18
Latest date in p2p/CHANGELOG.md is incorrect.
Latest: 2023-04-17, Current: 2023-04-18
Changelog verification failed. See error messages for more detail.
Please update the relevant CHANGELOG.md files and ensure they follow the correct format.
There was a problem hiding this comment.
Missing changelog in module: build/
Missing changelog in module: e2e/
Latest date in p2p/CHANGELOG.md is incorrect.
Latest: 2023-04-17, Current: 2023-04-19
Changelog verification failed. See error messages for more detail.
Please update the relevant CHANGELOG.md files and ensure they follow the correct format.
There was a problem hiding this comment.
Missing changelog in module: build/
Missing changelog in module: e2e/
Latest date in p2p/CHANGELOG.md is incorrect.
Latest: 2023-04-17, Current: 2023-04-19
Changelog verification failed. See error messages for more detail.
Please update the relevant CHANGELOG.md files and ensure they follow the correct format.
There was a problem hiding this comment.
Latest date in p2p/CHANGELOG.md is incorrect.
Latest: 2023-04-17, Current: 2023-04-19
Changelog verification failed. See error messages for more detail.
Please update the relevant CHANGELOG.md files and ensure they follow the correct format.
There was a problem hiding this comment.
Missing changelog in module: runtime/
Latest date in p2p/CHANGELOG.md is incorrect.
Latest: 2023-04-17, Current: 2023-04-19
Changelog verification failed. See error messages for more detail.
Please update the relevant CHANGELOG.md files and ensure they follow the correct format.
There was a problem hiding this comment.
Latest date in p2p/CHANGELOG.md is incorrect.
Latest: 2023-04-17, Current: 2023-04-19
Changelog verification failed. See error messages for more detail.
Please update the relevant CHANGELOG.md files and ensure they follow the correct format.
|
Initially, I planned to also work on The parent issue (#674) will cover work related to |
dylanlott
left a comment
There was a problem hiding this comment.
This PR passed locally for me after an issue with Postgres persistent volume claims was resolved on my local. Otherwise, LGTM 👍✅
| labels: ${{ steps.meta.outputs.labels }} | ||
| # NB: Uncomment below if arm64 build is needed; arm64 builds are off by default because build times are significant. | ||
| platforms: linux/amd64 #,linux/arm64 | ||
| platforms: linux/amd64 #,linux/arm64 |
There was a problem hiding this comment.
Should we just remove arm?
| // it follows the pattern defined in the v1-validator template (/build/localnet/templates/v1-validator-template.yaml.tpl) | ||
| // it follows the pattern defined in the pocket helm chart. | ||
| func extractValidatorId(validatorName string) string { | ||
| if len(validatorName) >= 3 { |
There was a problem hiding this comment.
Move 3 into a constant and explain where the magic number came from.
| func extractValidatorId(validatorName string) string { | ||
| if len(validatorName) >= 3 { | ||
| return validatorName[len(validatorName)-3:] | ||
| re := regexp.MustCompile(`validator-(\d+)-pocket`) |
There was a problem hiding this comment.
Good candidate to put in an init
| serviceAccountName: debug-client-account | ||
| initContainers: | ||
| - name: wait-for-validator-001-pocket-validator | ||
| - name: wait-for-validator-001-pocket |
There was a problem hiding this comment.
I'm going to have GetSession implemented soon, which means that we're going to be able to have a "dispatch node".
- Do you think this would enable us to have a dispatch node rather than using validator001 for everything?
- If so, @okdas, can you create a ticket for it?
| "sh", | ||
| "-c", | ||
| 'until wget -q -O - "http://validator-001-pocket-validator:50832/v1/health" --timeout=2 --tries=2 --spider >/dev/null 2>&1; do echo waiting for validator-001-pocket-validator to be online and healthy...; sleep 2; done;', | ||
| 'until wget -q -O - "http://validator-001-pocket:50832/v1/health" --timeout=2 --tries=2 --spider >/dev/null 2>&1; do echo waiting for validator-001-pocket to be online and healthy...; sleep 2; done;', |
There was a problem hiding this comment.
Ditto, I think a ticket for s/validator-001/disaptch-node for everything in the infra would be appropriate. Thouhgts?
There was a problem hiding this comment.
@Olshansk would dispatch node be just another validator in that case? Just a node that is not staked as validator?
There was a problem hiding this comment.
It'd be a full node, not necessarily a validator.
* pokt/main: [E2E] adds in-cluster config for E2E tests (#689) [Makefile] fixes the localnet_db_cli target (#700) Update devlog6.md [CLI] Remove logging for end user focused messages (#698) [Testing (DUP)] Add /internal/testutil pkg & refactor mockdns test code (#696) [Infra] Adapt pocket helm chart for DevNets (#682) Update changelog-verify.yml (#691)
Description
This PR introduces changes to the helm chart and go code necessary to deploy the chart on remote networks, and for the community on their hardware.
Issue
#674
Type of change
Please mark the relevant option(s):
List of changes
pocket-validatorhelm chart topocket- as we've decided to use one artifact to host all protocol actors.Testing
make develop_test; if any code changes were madeRequired Checklist
godocformat comments on touched members (see: tip.golang.org/doc/comment)If Applicable Checklist
shared/docs/*if I updatedshared/*README(s)