From 2749a796e2d3946881290bbe3d747bba7976c095 Mon Sep 17 00:00:00 2001 From: vimystic <122659254+vimystic@users.noreply.github.com> Date: Thu, 5 Dec 2024 00:37:55 -0700 Subject: [PATCH] Update the Ordinals description to match language similar to be similar to the Stateful Set description of Ordinals --- api/v1/cosmosfullnode_types.go | 4 ++-- config/crd/bases/cosmos.strange.love_cosmosfullnodes.yaml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/api/v1/cosmosfullnode_types.go b/api/v1/cosmosfullnode_types.go index 67fcb10d..0c7ecab0 100644 --- a/api/v1/cosmosfullnode_types.go +++ b/api/v1/cosmosfullnode_types.go @@ -32,7 +32,6 @@ const CosmosFullNodeController = "CosmosFullNode" // EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! // NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. -// Ordinal specifies the configuration for pod ordinal numbers type Ordinals struct { // start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, // or to orchestrate progressive movement of replicas from one CosmosFullnode spec to another. If set, replica indices will be in the range: @@ -48,7 +47,8 @@ type FullNodeSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file - // Ordinal specifies the configuration for pod ordinal numbers + // Ordinals controls the numbering of replica indices in a CosmosFullnode spec. + // The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested. Ordinals Ordinals `json:"ordinals,omitempty"` // Number of replicas to create. diff --git a/config/crd/bases/cosmos.strange.love_cosmosfullnodes.yaml b/config/crd/bases/cosmos.strange.love_cosmosfullnodes.yaml index f780a3f7..d20af7e6 100644 --- a/config/crd/bases/cosmos.strange.love_cosmosfullnodes.yaml +++ b/config/crd/bases/cosmos.strange.love_cosmosfullnodes.yaml @@ -556,7 +556,9 @@ spec: Used for debugging. type: object ordinals: - description: Ordinal specifies the configuration for pod ordinal numbers + description: |- + Ordinals controls the numbering of replica indices in a CosmosFullnode spec. + The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested. properties: start: description: |-