|
53 | 53 | "description": "The erasure code settings", |
54 | 54 | "properties": { |
55 | 55 | "algorithm": { |
56 | | - "description": "The algorithm for erasure coding", |
| 56 | + "description": "The algorithm for erasure coding.\nIf absent, defaults to the plugin specified in osd_pool_default_erasure_code_profile.", |
| 57 | + "enum": [ |
| 58 | + "isa", |
| 59 | + "jerasure" |
| 60 | + ], |
57 | 61 | "type": "string" |
58 | 62 | }, |
59 | 63 | "codingChunks": { |
|
86 | 90 | "type": "boolean" |
87 | 91 | }, |
88 | 92 | "mode": { |
89 | | - "description": "Mode is the mirroring mode: either pool or image", |
| 93 | + "description": "Mode is the mirroring mode: pool, image or init-only.", |
| 94 | + "enum": [ |
| 95 | + "pool", |
| 96 | + "image", |
| 97 | + "init-only" |
| 98 | + ], |
90 | 99 | "type": "string" |
91 | 100 | }, |
92 | 101 | "peers": { |
|
217 | 226 | }, |
218 | 227 | "targetSizeRatio": { |
219 | 228 | "description": "TargetSizeRatio gives a hint (%) to Ceph in terms of expected consumption of the total cluster capacity", |
| 229 | + "minimum": 0, |
220 | 230 | "type": "number" |
221 | 231 | } |
222 | 232 | }, |
|
259 | 269 | "status": { |
260 | 270 | "description": "CephBlockPoolStatus represents the mirroring status of Ceph Storage Pool", |
261 | 271 | "properties": { |
| 272 | + "cephx": { |
| 273 | + "description": "PeerTokenCephxStatus represents the cephx key rotation status for peer tokens", |
| 274 | + "properties": { |
| 275 | + "peerToken": { |
| 276 | + "description": "PeerToken shows the rotation status of the peer token associated with the `rbd-mirror-peer` user.", |
| 277 | + "properties": { |
| 278 | + "keyCephVersion": { |
| 279 | + "description": "KeyCephVersion reports the Ceph version that created the current generation's keys. This is\nsame string format as reported by `CephCluster.status.version.version` to allow them to be\ncompared. E.g., `20.2.0-0`.\nFor all newly-created resources, this field set to the version of Ceph that created the key.\nThe special value \"Uninitialized\" indicates that keys are being created for the first time.\nAn empty string indicates that the version is unknown, as expected in brownfield deployments.", |
| 280 | + "type": "string" |
| 281 | + }, |
| 282 | + "keyGeneration": { |
| 283 | + "description": "KeyGeneration represents the CephX key generation for the last successful reconcile.\nFor all newly-created resources, this field is set to `1`.\nWhen keys are rotated due to any rotation policy, the generation is incremented or updated to\nthe configured policy generation.\nGeneration `0` indicates that keys existed prior to the implementation of key tracking.", |
| 284 | + "format": "int32", |
| 285 | + "type": "integer" |
| 286 | + } |
| 287 | + }, |
| 288 | + "type": "object", |
| 289 | + "additionalProperties": false |
| 290 | + } |
| 291 | + }, |
| 292 | + "type": "object", |
| 293 | + "additionalProperties": false |
| 294 | + }, |
262 | 295 | "conditions": { |
263 | 296 | "items": { |
264 | 297 | "description": "Condition represents a status condition on any Rook-Ceph Custom Resource.", |
|
375 | 408 | "description": "DaemonHealth is the health of the mirroring daemon", |
376 | 409 | "type": "string" |
377 | 410 | }, |
| 411 | + "group_health": { |
| 412 | + "description": "GroupHealth is the health of the mirrored image group", |
| 413 | + "nullable": true, |
| 414 | + "type": "string" |
| 415 | + }, |
| 416 | + "group_states": { |
| 417 | + "description": "GroupStates is the various state for all mirrored image groups", |
| 418 | + "nullable": true, |
| 419 | + "properties": { |
| 420 | + "error": { |
| 421 | + "description": "Error is when the mirroring state is errored", |
| 422 | + "type": "integer" |
| 423 | + }, |
| 424 | + "replaying": { |
| 425 | + "description": "Replaying is when the replay of the mirroring journal is on-going", |
| 426 | + "type": "integer" |
| 427 | + }, |
| 428 | + "starting_replay": { |
| 429 | + "description": "StartingReplay is when the replay of the mirroring journal starts", |
| 430 | + "type": "integer" |
| 431 | + }, |
| 432 | + "stopped": { |
| 433 | + "description": "Stopped is when the mirroring state is stopped", |
| 434 | + "type": "integer" |
| 435 | + }, |
| 436 | + "stopping_replay": { |
| 437 | + "description": "StopReplaying is when the replay of the mirroring journal stops", |
| 438 | + "type": "integer" |
| 439 | + }, |
| 440 | + "syncing": { |
| 441 | + "description": "Syncing is when the image is syncing", |
| 442 | + "type": "integer" |
| 443 | + }, |
| 444 | + "unknown": { |
| 445 | + "description": "Unknown is when the mirroring state is unknown", |
| 446 | + "type": "integer" |
| 447 | + } |
| 448 | + }, |
| 449 | + "type": "object", |
| 450 | + "additionalProperties": false |
| 451 | + }, |
378 | 452 | "health": { |
379 | 453 | "description": "Health is the mirroring health", |
380 | 454 | "type": "string" |
|
383 | 457 | "description": "ImageHealth is the health of the mirrored image", |
384 | 458 | "type": "string" |
385 | 459 | }, |
| 460 | + "image_states": { |
| 461 | + "description": "ImageStates is the various state for all mirrored images", |
| 462 | + "nullable": true, |
| 463 | + "properties": { |
| 464 | + "error": { |
| 465 | + "description": "Error is when the mirroring state is errored", |
| 466 | + "type": "integer" |
| 467 | + }, |
| 468 | + "replaying": { |
| 469 | + "description": "Replaying is when the replay of the mirroring journal is on-going", |
| 470 | + "type": "integer" |
| 471 | + }, |
| 472 | + "starting_replay": { |
| 473 | + "description": "StartingReplay is when the replay of the mirroring journal starts", |
| 474 | + "type": "integer" |
| 475 | + }, |
| 476 | + "stopped": { |
| 477 | + "description": "Stopped is when the mirroring state is stopped", |
| 478 | + "type": "integer" |
| 479 | + }, |
| 480 | + "stopping_replay": { |
| 481 | + "description": "StopReplaying is when the replay of the mirroring journal stops", |
| 482 | + "type": "integer" |
| 483 | + }, |
| 484 | + "syncing": { |
| 485 | + "description": "Syncing is when the image is syncing", |
| 486 | + "type": "integer" |
| 487 | + }, |
| 488 | + "unknown": { |
| 489 | + "description": "Unknown is when the mirroring state is unknown", |
| 490 | + "type": "integer" |
| 491 | + } |
| 492 | + }, |
| 493 | + "type": "object", |
| 494 | + "additionalProperties": false |
| 495 | + }, |
386 | 496 | "states": { |
387 | 497 | "description": "States is the various state for all mirrored images", |
388 | 498 | "nullable": true, |
|
0 commit comments