Skip to content

Commit 40fc488

Browse files
committed
chore: Bump to stackable-operator 0.106.1
1 parent 8abeb42 commit 40fc488

8 files changed

Lines changed: 454 additions & 392 deletions

File tree

Cargo.lock

Lines changed: 111 additions & 98 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.nix

Lines changed: 305 additions & 260 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ edition = "2024"
1010
repository = "https://github.com/stackabletech/opensearch-operator"
1111

1212
[workspace.dependencies]
13-
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.105.0", features = ["telemetry", "versioned", "webhook"] }
13+
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.106.1", features = ["telemetry", "versioned", "webhook"] }
1414

1515
built = { version = "0.8.0", features = ["chrono", "git2"] }
1616
clap = "4.5"
1717
futures = { version = "0.3", features = ["compat"] }
1818
pretty_assertions = "1.4"
1919
regex = "1.11"
2020
rstest = "0.26"
21-
schemars = { version = "1.0.0", features = ["url2"] } # same as in operator-rs
2221
serde = { version = "1.0", features = ["derive"] }
2322
serde_json = "1.0"
2423
snafu = "0.8"
@@ -27,5 +26,5 @@ tokio = { version = "1.47", features = ["full"] }
2726
tracing = "0.1"
2827
uuid = "1.18"
2928

30-
#[patch."https://github.com/stackabletech/operator-rs"]
29+
[patch."https://github.com/stackabletech/operator-rs"]
3130
# stackable-operator = { git = "https://github.com/stackabletech//operator-rs.git", branch = "main" }

crate-hashes.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extra/crds.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,12 @@ spec:
294294
- ERROR
295295
- FATAL
296296
- NONE
297+
- null
297298
nullable: true
298299
type: string
299300
type: object
300301
custom:
301-
description: Log configuration provided in a ConfigMap
302+
description: Custom log configuration provided in a ConfigMap
302303
properties:
303304
configMap:
304305
description: ConfigMap containing the log configuration files
@@ -321,6 +322,7 @@ spec:
321322
- ERROR
322323
- FATAL
323324
- NONE
325+
- null
324326
nullable: true
325327
type: string
326328
type: object
@@ -340,6 +342,7 @@ spec:
340342
- ERROR
341343
- FATAL
342344
- NONE
345+
- null
343346
nullable: true
344347
type: string
345348
type: object
@@ -407,15 +410,15 @@ spec:
407410
Cores are specified either as a decimal point number or as milli units.
408411
For example:`1.5` will be 1.5 cores, also written as `1500m`.
409412
nullable: true
410-
type: string
413+
x-kubernetes-int-or-string: true
411414
min:
412415
description: |-
413416
The minimal amount of CPU cores that Pods need to run.
414417
Equivalent to the `request` for Pod resource configuration.
415418
Cores are specified either as a decimal point number or as milli units.
416419
For example:`1.5` will be 1.5 cores, also written as `1500m`.
417420
nullable: true
418-
type: string
421+
x-kubernetes-int-or-string: true
419422
type: object
420423
memory:
421424
properties:
@@ -428,7 +431,7 @@ spec:
428431
For example, the following represent roughly the same value:
429432
`128974848, 129e6, 129M, 128974848000m, 123Mi`
430433
nullable: true
431-
type: string
434+
x-kubernetes-int-or-string: true
432435
runtimeLimits:
433436
description: Additional options that can be specified.
434437
type: object
@@ -442,7 +445,7 @@ spec:
442445
capacity:
443446
description: "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` <quantity> ::= <signedNumber><suffix>\n\n\t(Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation."
444447
nullable: true
445-
type: string
448+
x-kubernetes-int-or-string: true
446449
selectors:
447450
description: A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
448451
nullable: true
@@ -660,11 +663,12 @@ spec:
660663
- ERROR
661664
- FATAL
662665
- NONE
666+
- null
663667
nullable: true
664668
type: string
665669
type: object
666670
custom:
667-
description: Log configuration provided in a ConfigMap
671+
description: Custom log configuration provided in a ConfigMap
668672
properties:
669673
configMap:
670674
description: ConfigMap containing the log configuration files
@@ -687,6 +691,7 @@ spec:
687691
- ERROR
688692
- FATAL
689693
- NONE
694+
- null
690695
nullable: true
691696
type: string
692697
type: object
@@ -706,6 +711,7 @@ spec:
706711
- ERROR
707712
- FATAL
708713
- NONE
714+
- null
709715
nullable: true
710716
type: string
711717
type: object
@@ -773,15 +779,15 @@ spec:
773779
Cores are specified either as a decimal point number or as milli units.
774780
For example:`1.5` will be 1.5 cores, also written as `1500m`.
775781
nullable: true
776-
type: string
782+
x-kubernetes-int-or-string: true
777783
min:
778784
description: |-
779785
The minimal amount of CPU cores that Pods need to run.
780786
Equivalent to the `request` for Pod resource configuration.
781787
Cores are specified either as a decimal point number or as milli units.
782788
For example:`1.5` will be 1.5 cores, also written as `1500m`.
783789
nullable: true
784-
type: string
790+
x-kubernetes-int-or-string: true
785791
type: object
786792
memory:
787793
properties:
@@ -794,7 +800,7 @@ spec:
794800
For example, the following represent roughly the same value:
795801
`128974848, 129e6, 129M, 128974848000m, 123Mi`
796802
nullable: true
797-
type: string
803+
x-kubernetes-int-or-string: true
798804
runtimeLimits:
799805
description: Additional options that can be specified.
800806
type: object
@@ -808,7 +814,7 @@ spec:
808814
capacity:
809815
description: "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` <quantity> ::= <signedNumber><suffix>\n\n\t(Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation."
810816
nullable: true
811-
type: string
817+
x-kubernetes-int-or-string: true
812818
selectors:
813819
description: A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
814820
nullable: true

rust/operator-binary/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ stackable-operator.workspace = true
1515
clap.workspace = true
1616
futures.workspace = true
1717
regex.workspace = true
18-
schemars.workspace = true
1918
serde.workspace = true
2019
serde_json.workspace = true
2120
snafu.workspace = true

rust/operator-binary/src/framework/macros/attributed_string_type.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ macro_rules! attributed_string_type {
169169
}
170170

171171
// The JsonSchema implementation requires `max_length`.
172-
impl schemars::JsonSchema for $name {
172+
impl stackable_operator::schemars::JsonSchema for $name {
173173
fn schema_name() -> std::borrow::Cow<'static, str> {
174174
std::stringify!($name).into()
175175
}
176176

177-
fn json_schema(_generator: &mut schemars::generate::SchemaGenerator) -> schemars::Schema {
178-
schemars::json_schema!({
177+
fn json_schema(_generator: &mut stackable_operator::schemars::generate::SchemaGenerator) -> stackable_operator::schemars::Schema {
178+
stackable_operator::schemars::json_schema!({
179179
"type": "string",
180180
"minLength": $name::MIN_LENGTH,
181181
"maxLength": if $name::MAX_LENGTH != usize::MAX {
@@ -489,7 +489,7 @@ pub const fn max(x: usize, y: usize) -> usize {
489489
mod tests {
490490
use std::str::FromStr;
491491

492-
use schemars::{JsonSchema, SchemaGenerator};
492+
use stackable_operator::schemars::{JsonSchema, SchemaGenerator};
493493
use serde_json::{Number, Value, json};
494494
use uuid::uuid;
495495

0 commit comments

Comments
 (0)