From 8ba4d78e7898e33f7cf9785efb4bc6ff1a79b966 Mon Sep 17 00:00:00 2001 From: Mostafa Farghaly Date: Sat, 27 Apr 2024 21:13:20 +0300 Subject: [PATCH] stacks: update node default image --- apis/stacks/v1alpha1/defaults.go | 2 +- apis/stacks/v1alpha1/node.go | 3 ++- config/crd/bases/stacks.kotal.io_nodes.yaml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apis/stacks/v1alpha1/defaults.go b/apis/stacks/v1alpha1/defaults.go index a2d6d14e..b198fa73 100644 --- a/apis/stacks/v1alpha1/defaults.go +++ b/apis/stacks/v1alpha1/defaults.go @@ -13,7 +13,7 @@ const ( const ( // DefaultStacksNodeImage is the default Stacks node client image - DefaultStacksNodeImage = "kotalco/stacks:2.4.0.0.0" + DefaultStacksNodeImage = "kotalco/stacks:v2.5.0.0.3" ) // Resources diff --git a/apis/stacks/v1alpha1/node.go b/apis/stacks/v1alpha1/node.go index fd6f8cd4..7b19f009 100644 --- a/apis/stacks/v1alpha1/node.go +++ b/apis/stacks/v1alpha1/node.go @@ -11,6 +11,7 @@ type StacksNetwork string const ( Mainnet StacksNetwork = "mainnet" Testnet StacksNetwork = "testnet" + Xenon StacksNetwork = "xenon" ) // BitcoinNode is Bitcoin node @@ -37,7 +38,7 @@ type NodeSpec struct { // +kubebuilder:validation:Enum=0;1 Replicas *uint `json:"replicas,omitempty"` // Network is stacks network - // +kubebuilder:validation:Enum=mainnet;testnet + // +kubebuilder:validation:Enum=mainnet;testnet;xenon Network StacksNetwork `json:"network"` // RPC enables JSON-RPC server RPC bool `json:"rpc,omitempty"` diff --git a/config/crd/bases/stacks.kotal.io_nodes.yaml b/config/crd/bases/stacks.kotal.io_nodes.yaml index 2ff70302..afb07c3a 100644 --- a/config/crd/bases/stacks.kotal.io_nodes.yaml +++ b/config/crd/bases/stacks.kotal.io_nodes.yaml @@ -90,6 +90,7 @@ spec: enum: - mainnet - testnet + - xenon type: string nodePrivateKeySecretName: description: NodePrivateKeySecretName is k8s secret holding node private