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

feature: generate yaml from yaml #291

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# General files for the project
pkg/*
*.pyc
bin/*
**bin/
Expand Down Expand Up @@ -40,4 +39,4 @@ Session.vim
.history

# Ignore docs site created
**/site/
**/site/
71 changes: 0 additions & 71 deletions charts/devnet/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -600,77 +600,6 @@ defaultChains:
png: https://raw.githubusercontent.com/cosmos/chain-registry/master/neutron/images/ntrn.png
svg: https://raw.githubusercontent.com/cosmos/chain-registry/master/neutron/images/ntrn.svg
coingecko_id: neutron
eth:
storageClassName: hostpath
genesisStateUrl: https://github.com/eth-clients/merge-testnets/blob/main/sepolia/genesis.ssz
joinNetwork: false
prysmCtl:
image: gcr.io/prysmaticlabs/prysm/cmd/prysmctl:local-devnet
command: ["/app/cmd/prysmctl/prysmctl"]
args:
- testnet
- generate-genesis
- --fork=capella
- --num-validators=64
- --output-ssz=/ethereum/consensus/genesis.ssz
- --chain-config-file=/etc/config/config.yml
- --geth-genesis-json-in=/etc/config/genesis.json
- --geth-genesis-json-out=/ethereum/consensus/genesis.json
geth:
image: ethereum/client-go:latest
args:
- --nodiscover
- --http
- --http.api=eth,net,web3,debug
- --http.addr=0.0.0.0
- --http.corsdomain=*
- --ws
- --ws.api=eth,net,web3
- --ws.addr=0.0.0.0
- --ws.origins=*
- --http.vhosts=*
- --authrpc.vhosts=*
- --authrpc.addr=0.0.0.0
- --authrpc.jwtsecret=/etc/secrets/jwt.hex
- --datadir=/ethereum/execution
- --allow-insecure-unlock
- --unlock=0x123463a4B065722E99115D6c222f267d9cABb524
- --password=/dev/null
- --syncmode=full
- --networkid=32382
beaconChain:
image: gcr.io/prysmaticlabs/prysm/beacon-chain:v4.0.8
command: ["/app/cmd/beacon-chain/beacon-chain"]
args:
- --datadir=/ethereum/consensus/beacon
- --min-sync-peers=0
- --genesis-state=/ethereum/consensus/genesis.ssz
- --bootstrap-node=
- --interop-eth1data-votes
- --chain-config-file=/etc/config/config.yml
- --chain-id=32382
- --rpc-host=0.0.0.0
- --contract-deployment-block=0
- --grpc-gateway-host=0.0.0.0
- --execution-endpoint=http://localhost:8551
- --accept-terms-of-use
- --jwt-secret=/etc/secrets/jwt.hex
- --suggested-fee-recipient=0x123463a4B065722E99115D6c222f267d9cABb524
- --minimum-peers-per-subnet=0
- --enable-debug-rpc-endpoints
validator:
enabled: false
image: gcr.io/prysmaticlabs/prysm/validator:v4.0.8
command: ["/app/cmd/validator/validator"]
args:
- --accept-terms-of-use
- --beacon-rpc-provider=localhost:4000
- --datadir=/ethereum/consensus/validator
- --interop-num-validators=64
- --interop-start-index=0
- --force-clear-db
- --chain-config-file=/etc/config/config.yml
- --suggested-fee-recipient=0x0C46c2cAFE097b4f7e1BB868B89e5697eE65f934

defaultRelayers:
ts-relayer:
Expand Down
1 change: 1 addition & 0 deletions charts/devnet/templates/chains/cosmos/genesis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ spec:
value: "{{ $chain.numValidators }}"
command:
- bash
-
- "-c"
- |
VAL_INDEX=${HOSTNAME##*-}
Expand Down
7 changes: 6 additions & 1 deletion cmd/starship/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ all: build run

.PHONY: build
build:
CGO_ENABLED=0 go build -mod=readonly -o $(CURDIR)/build/ ./...
CGO_ENABLED=0 go build -o $(CURDIR)/build/ ./...

RUN_ARGS = "../../tests/e2e/configs/two-chain.yaml"
.PHONY: run
run:
CGO_ENABLED=0 go run -mod=readonly ./... generate $(RUN_ARGS)

.PHONY: build-linux
build-linux:
Expand Down
31 changes: 16 additions & 15 deletions cmd/starship/go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
module github.com/cosmology-tech/starship/cmd/starship

go 1.19
go 1.21.0

replace github.com/cosmology-tech/starship => ../../

require (
github.com/cosmology-tech/starship v0.0.0
github.com/gofrs/flock v0.8.1
github.com/urfave/cli/v2 v2.25.3
go.uber.org/zap v1.24.0
go.uber.org/zap v1.26.0
gopkg.in/yaml.v3 v3.0.1
helm.sh/helm/v3 v3.12.0
sigs.k8s.io/yaml v1.3.0
)
Expand All @@ -20,7 +24,6 @@ require (
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
github.com/Masterminds/squirrel v1.5.3 // indirect
github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535 // indirect
github.com/benbjohnson/clock v1.3.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/chai2010/gettext-go v1.0.2 // indirect
Expand All @@ -41,7 +44,7 @@ require (
github.com/fatih/color v1.13.0 // indirect
github.com/go-errors/errors v1.4.2 // indirect
github.com/go-gorp/gorp/v3 v3.0.5 // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/jsonreference v0.20.1 // indirect
Expand Down Expand Up @@ -113,34 +116,32 @@ require (
go.opentelemetry.io/otel v1.14.0 // indirect
go.opentelemetry.io/otel/trace v1.14.0 // indirect
go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.10.0 // indirect
golang.org/x/crypto v0.7.0 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/crypto v0.14.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/oauth2 v0.6.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/term v0.6.0 // indirect
golang.org/x/text v0.9.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/term v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/time v0.1.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230320184635-7606e756e683 // indirect
google.golang.org/grpc v1.53.0 // indirect
google.golang.org/protobuf v1.29.1 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/api v0.27.1 // indirect
k8s.io/api v0.27.7 // indirect
k8s.io/apiextensions-apiserver v0.27.1 // indirect
k8s.io/apimachinery v0.27.1 // indirect
k8s.io/apimachinery v0.27.7 // indirect
k8s.io/apiserver v0.27.1 // indirect
k8s.io/cli-runtime v0.27.1 // indirect
k8s.io/client-go v0.27.1 // indirect
k8s.io/component-base v0.27.1 // indirect
k8s.io/klog/v2 v2.90.1 // indirect
k8s.io/klog/v2 v2.100.1 // indirect
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
k8s.io/kubectl v0.27.1 // indirect
k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 // indirect
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect
oras.land/oras-go v1.2.3 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/kustomize/api v0.13.2 // indirect
Expand Down
Loading