From ff39acbbb2d1edaed88a60cfd7800f6e7d130732 Mon Sep 17 00:00:00 2001 From: Andy Pliszka Date: Mon, 13 May 2024 23:27:50 -0400 Subject: [PATCH] feat: adds startScript to CRD --- api/v1/cosmosfullnode_types.go | 4 ++++ api/v1/zz_generated.deepcopy.go | 5 +++++ config/crd/bases/cosmos.strange.love_cosmosfullnodes.yaml | 3 +++ 3 files changed, 12 insertions(+) diff --git a/api/v1/cosmosfullnode_types.go b/api/v1/cosmosfullnode_types.go index fd364105..54f9be30 100644 --- a/api/v1/cosmosfullnode_types.go +++ b/api/v1/cosmosfullnode_types.go @@ -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 diff --git a/api/v1/zz_generated.deepcopy.go b/api/v1/zz_generated.deepcopy.go index 7a138c88..498cf500 100644 --- a/api/v1/zz_generated.deepcopy.go +++ b/api/v1/zz_generated.deepcopy.go @@ -69,6 +69,11 @@ func (in *ChainSpec) DeepCopyInto(out *ChainSpec) { *out = new(string) **out = **in } + if in.StartScript != nil { + in, out := &in.StartScript, &out.StartScript + *out = new(string) + **out = **in + } if in.AddrbookURL != nil { in, out := &in.AddrbookURL, &out.AddrbookURL *out = new(string) diff --git a/config/crd/bases/cosmos.strange.love_cosmosfullnodes.yaml b/config/crd/bases/cosmos.strange.love_cosmosfullnodes.yaml index 4f254c0a..69982006 100644 --- a/config/crd/bases/cosmos.strange.love_cosmosfullnodes.yaml +++ b/config/crd/bases/cosmos.strange.love_cosmosfullnodes.yaml @@ -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