Skip to content

Commit

Permalink
feat: adds startScript to CRD
Browse files Browse the repository at this point in the history
  • Loading branch information
AntiTyping committed May 14, 2024
1 parent d6fed55 commit ff39acb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/v1/cosmosfullnode_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,10 @@ type ChainSpec struct {
// +optional
InitScript *string `json:"initScript"`

// Specify shell (sh) script commands to start the chain
// +optional
StartScript *string `json:"startScript"`

// URL to address book file to download from the internet.
// The operator detects and properly handles the following file extensions:
// .json, .json.gz, .tar, .tar.gz, .tar.gzip, .zip
Expand Down
5 changes: 5 additions & 0 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions config/crd/bases/cosmos.strange.love_cosmosfullnodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ spec:
if the snapshot archive is unconventional or requires special
handling.'
type: string
startScript:
description: Specify shell (sh) script commands to start the chain
type: string
versions:
description: Versions of the chain and which height they should
be applied. When provided, the operator will automatically upgrade
Expand Down

0 comments on commit ff39acb

Please sign in to comment.