Skip to content

Commit 26acc79

Browse files
authored
feat: update qa job for tagging (#21)
- Added new CLI options for configuring static node parameters, including domain, namespace, service name, pod prefix, and ConfigMap names for genesis and static nodes. - Updated descriptions for existing options to enhance clarity and usability. ## Summary by Sourcery Add new CLI options for configuring static node parameters and genesis/static-nodes ConfigMaps, and update the QA workflow tagging job to grant write permissions and correctly use the GitHub token and commit user metadata. New Features: - Introduce --static-node-domain, --static-node-namespace, --static-node-service-name, and --static-node-pod-prefix CLI options for constructing static node hostnames - Add --genesis-configmap-name and --static-nodes-configmap-name CLI options to specify ConfigMap names for generated payloads - Add --faucet-artifact-prefix CLI option to configure prefixes for faucet ConfigMaps and Secrets Enhancements: - Grant write permission on contents in the QA workflow - Rename commit_author_name/email to commit_user_name/email in the release step - Expose GITHUB_TOKEN via the PAT_TOKEN environment variable for the release action
1 parent 0ff1b3c commit 26acc79

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/qa.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
(github.event_name == 'pull_request' && github.event.action != 'closed') ||
3434
github.event_name == 'pull_request_review'
3535
permissions:
36-
contents: read
36+
contents: write
3737
pull-requests: write
3838
issues: write
3939
security-events: write
@@ -136,9 +136,10 @@ jobs:
136136
commit_message: "chore(release): sync generated assets [skip ci]"
137137
branch: main
138138
file_pattern: 'package.json **/package.json charts/**/Chart.yaml charts/**/README.md README.md'
139-
github_token: ${{ env.PAT_TOKEN }}
140-
commit_author_name: 'SettleMint Release Bot'
141-
commit_author_email: 'support@settlemint.com'
139+
commit_user_name: 'SettleMint Release Bot'
140+
commit_user_email: 'support@settlemint.com'
141+
env:
142+
GITHUB_TOKEN: ${{ env.PAT_TOKEN }}
142143

143144
- name: Docker meta
144145
if: github.event_name == 'pull_request' || github.event_name == 'push'

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,16 @@ Usage: network-bootstrapper generate [options]
151151
Generate node identities, configure consensus, and emit a Besu genesis.
152152
153153
Options:
154+
--static-node-domain <domain> DNS suffix appended to validator peer hostnames for static-nodes entries.
155+
--static-node-namespace <name> Namespace segment inserted between service name and domain for static-nodes entries.
156+
--static-node-service-name <name> Headless Service name used when constructing static-nodes hostnames.
157+
--static-node-pod-prefix <prefix> StatefulSet prefix used when constructing validator pod hostnames.
158+
--genesis-configmap-name <name> ConfigMap name that stores the generated genesis.json payload.
159+
--static-nodes-configmap-name <name> ConfigMap name that stores the generated static-nodes.json payload.
160+
--faucet-artifact-prefix <prefix> Prefix applied to faucet ConfigMaps and Secrets.
154161
-v, --validators <count> Number of validator nodes to generate. (default: 4)
155162
-a, --allocations <file> Path to a genesis allocations JSON file. (default: none)
156163
-o, --outputType <type> Output target (screen, file, kubernetes). (default: "screen")
157-
--static-node-domain <domain> DNS suffix appended to validator peer hostnames for static-nodes entries.
158-
--static-node-namespace <name> Namespace segment inserted between service name and domain for static-nodes entries.
159164
--static-node-port <number> P2P port used for static-nodes enode URIs. (default: 30303)
160165
--static-node-discovery-port <number> Discovery port used for static-nodes enode URIs. (default: 30303)
161166
--consensus <algorithm> Consensus algorithm (IBFTv2, QBFT). (default: QBFT)

0 commit comments

Comments
 (0)