Skip to content

Commit 0b14f92

Browse files
committed
fix: crd field names
1 parent eecaf23 commit 0b14f92

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -729,21 +729,21 @@ spec:
729729
properties:
730730
ack:
731731
type: boolean
732-
extra_opts:
732+
extraOpts:
733+
default: []
733734
items:
734735
type: string
735736
type: array
736-
max_threads:
737+
maxThreads:
737738
format: uint16
738739
minimum: 0.0
739740
type: integer
740-
run_before_shutdown:
741+
runBeforeShutdown:
741742
type: boolean
742743
required:
743744
- ack
744-
- extra_opts
745-
- max_threads
746-
- run_before_shutdown
745+
- maxThreads
746+
- runBeforeShutdown
747747
type: object
748748
resources:
749749
default:
@@ -973,21 +973,21 @@ spec:
973973
properties:
974974
ack:
975975
type: boolean
976-
extra_opts:
976+
extraOpts:
977+
default: []
977978
items:
978979
type: string
979980
type: array
980-
max_threads:
981+
maxThreads:
981982
format: uint16
982983
minimum: 0.0
983984
type: integer
984-
run_before_shutdown:
985+
runBeforeShutdown:
985986
type: boolean
986987
required:
987988
- ack
988-
- extra_opts
989-
- max_threads
990-
- run_before_shutdown
989+
- maxThreads
990+
- runBeforeShutdown
991991
type: object
992992
resources:
993993
default:

rust/crd/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,10 +515,12 @@ impl Configuration for HbaseConfigFragment {
515515
}
516516

517517
#[derive(Clone, Debug, JsonSchema, PartialEq, Serialize, Deserialize)]
518+
#[serde(rename_all = "camelCase")]
518519
pub struct RegionMover {
519520
run_before_shutdown: bool,
520521
max_threads: u16,
521522
ack: bool,
523+
#[serde(default)]
522524
extra_opts: Vec<String>,
523525
}
524526

0 commit comments

Comments
 (0)