Skip to content

Commit 3327c55

Browse files
feat: Add node role coordinating_only
1 parent ca016a1 commit 3327c55

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

  • deploy/helm/opensearch-operator/crds
  • rust/operator-binary/src/crd

deploy/helm/opensearch-operator/crds/crds.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,10 @@ spec:
136136
nodeRoles:
137137
items:
138138
enum:
139+
- cluster_manager
140+
- coordinating_only
139141
- data
140142
- ingest
141-
- cluster_manager
142143
- remote_cluster_client
143144
- warm
144145
- search
@@ -327,9 +328,10 @@ spec:
327328
nodeRoles:
328329
items:
329330
enum:
331+
- cluster_manager
332+
- coordinating_only
330333
- data
331334
- ingest
332-
- cluster_manager
333335
- remote_cluster_client
334336
- warm
335337
- search

rust/operator-binary/src/crd/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,14 @@ pub mod versioned {
8484
// see https://github.com/opensearch-project/OpenSearch/blob/3.0.0/server/src/main/java/org/opensearch/cluster/node/DiscoveryNodeRole.java#L341-L346
8585

8686
// TODO https://github.com/Peternator7/strum/issues/113
87+
#[strum(serialize = "cluster_manager")]
88+
ClusterManager,
89+
#[strum(serialize = "coordinating_only")]
90+
CoordinatingOnly,
8791
#[strum(serialize = "data")]
8892
Data,
8993
#[strum(serialize = "ingest")]
9094
Ingest,
91-
#[strum(serialize = "cluster_manager")]
92-
ClusterManager,
9395
#[strum(serialize = "remote_cluster_client")]
9496
RemoteClusterClient,
9597
#[strum(serialize = "warm")]

0 commit comments

Comments
 (0)